Pedestal with beam - disappears with VO Print
Written by Mithrandir   
Wednesday, 10 February 2010 17:09

Part of Leper's Dragon Prison (Shurangar)

STATE_MACHINE
{
KEY { PedPrism2 }
COMMENT [Locker...causes a beam to reflect when mounted: Beam Dissappears when it recieves a vrOBj]

PARAM
{
KEY { 1 }
TYPE {TEXT}
COMMENT [Name of Pedestal:]
}

PARAM 

KEY  {2}
TYPE  {frame}
COMMENT [3D object: initial open]
DEFAULT {PIEDPRISME_O}
}

PARAM 

KEY  {3}
TYPE  {frame}
COMMENT [3D object: final close]
DEFAULT {PIEDPRISME4_C}
DISPLAY  {} 
}
PARAM 

KEY  {4}
TYPE  {frame}
COMMENT [3D object: vrOpen]
DEFAULT {PIEDPRISMEH_O}
}

PARAM 

KEY  {5}
TYPE  {frame}
COMMENT [3D object: Object Mounted]
DEFAULT {PIEDPRISME_C}
}

PARAM 

KEY  {6}
TYPE  {object}
COMMENT [Key object to mount:]
IN  {}
}

PARAM 

KEY  {7}
TYPE  {object}
COMMENT [Virtual Object to detect :]
IN  {}
}

PARAM 

KEY  {8}
TYPE  {object}
COMMENT [Virtual Object to send:]
OUT  {}
}

PARAM 

KEY  {9}
TYPE  {frame}
COMMENT [3D object: Object Closed]
DEFAULT {1EL_PIEDPRISME_E}
}

PARAM 

KEY  {10}
TYPE  {object}
COMMENT [vrOBject to disable machine(vrdragonfree):]
IN  {}
}

PARAM 

KEY  {11}
TYPE  {object}
COMMENT [vrOBject to remove Glow (vrhalo):]
IN  {}
}

CODE
[

TRAP
{
KEY { %0 }
NAME { %1 }
FLAG { ACTIVE|LIGHTBUFFER|LIGHT|SIDEDETECT|CLEARMOUSE|HANDLE }
STATE
{
KEY { vide }
SETCOLLID { 1 }
FRAME { %2 }
MULTI
{
CONDITION
{
OBJECT { %10 } 
GOTO { fin }
}
CONDITION
{
OBJECT { %7 } 
GOTO { previousOkVide }
}
CONDITION
{
OBJECT { %6 } 
GOTO { soundplein }
}
}
}

STATE
{
KEY { previousOkVide }
SETCOLLID { 1 }
FRAME { %4 }
MULTI
{
CONDITION
{
OBJECT { %10 } 
GOTO { fin }
}
CONDITION
{
OBJECT { %6 } 
GOTO { soundpreviousOkplein }
}
CONDITION
{
OBJECT { %7 } 
GOTO { previousOkVide }
}
CONDITION
{
TIMER { 0 } 
GOTO { vide }
}
}
}

STATE
{
KEY { soundpreviousOkplein }
SETCOLLID { 1 }
FRAME { %3 }
ACTION
{
SOUND {CLIC3}
}
MULTI
{
CONDITION
{
OBJECT { %10 } 
GOTO { fin }
}
CONDITION
{
TIMER { 0 } 
GOTO { previousOkplein }
}
}
}

STATE
{
KEY { previousOkplein }
SETCOLLID { 1 }
FRAME { %3 }
ACTION
{
OBJECT { %8 }
}
MULTI
{
CONDITION
{
OBJECT { %10 } 
GOTO { fin }
}
CONDITION
{
CLICK {} 
GOTO { previousOkrevide }
}
CONDITION
{
OBJECT { %7 } 
GOTO { previousOkplein }
}
CONDITION
{
TIMER { 0 } 
GOTO { plein }
}
}
}

STATE
{
KEY { previousOkrevide }
SETCOLLID { 1 }
FRAME { %3 }
ACTION
{
SOUND { S_GRAB }
OBJECTMOUSE { %6 }
REMOVEOBJECT { %8 }
}
MULTI
{
CONDITION
{
OBJECT { %10 } 
GOTO { fin }
}
CONDITION
{
TIMER {0} 
GOTO { previousOkVide }
}
}
}

STATE
{
KEY { soundplein }
SETCOLLID { 1 }
FRAME { %2 }
ACTION
{
SOUND {CLIC3}
}
MULTI
{
CONDITION
{
TIMER { 0 } 
GOTO { plein }
}
}
}

STATE
{
KEY { plein }
SETCOLLID { 1 }
FRAME { %5 }
ACTION
{
REMOVEOBJECT { %8 }
}
MULTI
{
CONDITION
{
OBJECT { %10 } 
GOTO { fin }
}
CONDITION
{
OBJECT { %7 } 
GOTO { previousOkplein }
}
CONDITION
{
CLICK {} 
GOTO { revide }
}
}
}

STATE
{
KEY { revide }
SETCOLLID { 1 }
FRAME { %2 }
ACTION
{
SOUND { S_GRAB }
OBJECTMOUSE { %6 }
}
MULTI
{
CONDITION
{
OBJECT { %10 } 
GOTO { fin }
}
CONDITION
{
TIMER {0} 
GOTO { vide }
}
}
}

STATE
{
KEY { fin }
SETCOLLID { 1 }
FRAME { %9 }
MULTI
{
CONDITION
{
OBJECT { %11 } 
GOTO { fin }
}
CONDITION
{
TIMER {0} 
GOTO { finfin }
}
}
}
STATE
{
KEY { finfin }
SETCOLLID { 1 }
FRAME { %5 }
MULTI
{
CONDITION
{
OBJECT { %11 } 
GOTO { fin }
}
CONDITION
{
TIMER {0} 
GOTO { finfin }
}
}
}
}
]
}