Login Form



Who's Online

We have 14 guests online

Statistics

OS : Linux t
PHP : 5.2.17
MySQL : 5.6.36
Time : 09:12
Caching : Disabled
GZIP : Enabled
Members : 3138
Content : 170
Web Links : 6
Content View Hits : 170181

 
State Machines


Freeze Monsters DSM PDF Print E-mail
Written by Mithrandir   
Thursday, 11 February 2010 08:24

Created by Luberon, this has been posted many times.

STATE_MACHINE
{
KEY { Freeze }

COMMENT [Freezes all monsters in a defined radius (like in the quest with the snakes).]

PARAM
{
KEY {1}
TYPE {frame}
COMMENT[3D object represent this invisible machine:]
DISPLAY {}
}

PARAM
{
KEY {2}
TYPE {INT}
COMMENT[Message number to activate the machine:]
DEFAULT{1}
}

PARAM
{
KEY {3}
TYPE {INT}
COMMENT[Radius to freeze:]
DEFAULT{20}
}

PARAM
{
KEY {4}
TYPE {INT}
COMMENT[Time to freeze:]
DEFAULT{8000}
}

CODE
[
TRAP
{
KEY{ %0 }
FLAG{ ACTIVE|LIGHTBUFFER|LIGHT|TRANSMIT }
STATE
{

KEY{ wait }
CLEARCOLLID {1}
MULTI
{
CONDITION
{
MSG { %2 }
GOTO{ freeze }
}
}
}

STATE
{
KEY{ freeze }
CLEARCOLLID {1}
ACTION
{
FREEZE{ %3,%4 }
}
MULTI
{
CONDITION
{
TIMER{ 0 }
GOTO{ wait }
}
}
}

STATE
{
KEY{ fin }
}
}
]
}

 

 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 9 of 63