Login Form



Who's Online

We have 8 guests online

Statistics

OS : Linux t
PHP : 5.3.29
MySQL : 5.6.36
Time : 06:02
Caching : Disabled
GZIP : Enabled
Members : 3138
Content : 171
Web Links : 6
Content View Hits : 222289

 
Leper's Spider door from Elric's Legacy PDF Print E-mail
Written by Mithrandir   
Wednesday, 10 February 2010 09:47

Now that is a cool looking machine.... Is it just me or does everyone get a sense of well being after constructing a nice machine? - Leper.

STATE_MACHINE 

KEY { DoorObjAttHitex } 
COMMENT [Door is opened when attacked while wearing an object. If object is not worn player recieves damage.] 
PARAM 

KEY     {1} 
TYPE     {FRAME} 
COMMENT  [3D object: initial close] 
DEFAULT   {1EL_CAVEDOOR} 
DISPLAY   {} 


PARAM  

KEY    { 2 } 
TYPE    {OBJECT} 
COMMENT  [Object you must wear to be able to smash the door:] 
IN     {} 


PARAM  

KEY    { 3 } 
TYPE    {INT} 
COMMENT  [Range of detection of this object:] 
DEFAULT   {4} 

PARAM  

KEY    { 4 } 
TYPE    {INT} 
COMMENT  [Damage:] 
DEFAULT   {1000} 


PARAM  

KEY    { 5 } 
TYPE    {INT} 
COMMENT  [Range of damage:] 
DEFAULT   {2} 


PARAM  

KEY    { 6 } 
TYPE    {SOUND} 
COMMENT  [Sound to play when it explodes:] 
DEFAULT   {BURN} 


CODE 

TRAP 

KEY    { %0 } 
FLAG  { LIGHTBUFFER|LIGHT|ACTIVE|NEEDPOS|SIDEDETECT|ATTACK }
STATE                

KEY    { door } 
FRAME    { %1 }      
SETCOLLID  { 1 }        
MULTI 

CONDITION 

CLICK  { } 
GOTO  { test }  



STATE                

KEY    { test } 
FRAME    { %1 }      
SETCOLLID  { 1 }        

MULTI 

CONDITION 

SENSEWEAR  { %2,%3 } 
GOTO  { open }  

CONDITION 

TIMER  { 0 } 
GOTO  { explode }  




STATE 

KEY    { explode } 
FRAME    { %1 } 
SETCOLLID  { 1 } 
ACTION 

EFFECT  { explode } 
EFFECT  { fumee } 
HITEX  { %4, %5 } 
SOUND  { %6 }  

MULTI 

CONDITION 

TIMER  { 0 } 
GOTO  { door }  




STATE 

KEY  {open}  
CLEARCOLLID  { 1 } 
ACTION 

EFFECT  { nostone } 
EFFECT  { fumee }  

MULTI 

CONDITION 

TIMER  { 100 } 
GOTO  { destruct }  



STATE                  
{                  
KEY  { destruct } 
CLEARCOLLID  { 1 }  



}