Login Form



Who's Online

We have 54 guests online

Statistics

OS : Linux t
PHP : 5.2.17
MySQL : 5.6.36
Time : 16:39
Caching : Disabled
GZIP : Enabled
Members : 3138
Content : 170
Web Links : 6
Content View Hits : 169247

 
containerMsg2 PDF Print E-mail
Written by Mithrandir   
Thursday, 11 February 2010 08:28
STATE_MACHINE
{
KEY { containerMsg2 }

COMMENT [This container activate when it receives a message, gives an object when clicked.]

PARAM 

KEY  {1}
TYPE  {frame}
COMMENT [3D object: initial close]
DISPLAY {}
}

PARAM 

KEY  {2}
TYPE  {frame}
COMMENT [3D object: final open]
}

PARAM 

KEY  {3}
TYPE  {object}
COMMENT [Received object:]
OUT {}
}

PARAM 

KEY  {4}
TYPE  {sound}
COMMENT [Sound to play when object is given:]
}

PARAM 

KEY  {5}
TYPE  {INT}
COMMENT [Message number that gives object:]
}

PARAM 

KEY  {6}
TYPE  {TEXT}
COMMENT [Text to describe cart. ]
}


CODE
[
TRAP
{
KEY { %0 }
FLAG { ACTIVE|LIGHTBUFFER|LIGHT|NEEDPOS|SIDEDETECT }
STATE
{
KEY { init }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
MSG { %5} 
GOTO { close }
}
CONDITION
{
CLICK { } 
GOTO { parle }
}
}
}
STATE
{
KEY { parle }
SETCOLLID { 1 }
FRAME { %1 }
TEXT { %6 }
MULTI
{
CONDITION
{
TIMER { 0} 
GOTO { init }
}
}
}
STATE
{
KEY { close }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
CLICK {} 
GOTO { open }
}
}
}

STATE
{
KEY { open }
SETCOLLID { 1 }
FRAME { %2 }
ACTION
{
OBJECTMOUSE { %3 }
SOUND { %4 }
}
JUMP { init }
}
}
]
}