Login Form



Who's Online

We have 20 guests online

Statistics

OS : Linux t
PHP : 5.2.17
MySQL : 5.6.33
Time : 20:05
Caching : Disabled
GZIP : Enabled
Members : 3138
Content : 170
Web Links : 6
Content View Hits : 165855

 
Camper PDF Print E-mail
Written by Mithrandir   
Wednesday, 10 February 2010 13:36

NPC outside cursed forest. Talks then says a different text and sends a VO when it receives a VO. Disappears when it receives another VO.

 

STATE_MACHINE
{
KEY { pnj2txtvrObjDiss }
COMMENT [NPC outside cursed forest. Talks then says a different text and sends a vrObj when it receives a vrObj. Disappears when it recieves another vrObj. ]

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

PARAM
{
KEY { 2 }
TYPE {TEXT}
COMMENT [Greeting + info:]
}


PARAM
{
KEY { 3 }
TYPE {TEXT}
COMMENT [Final text :]
}

PARAM
{
KEY {5}
TYPE {SKELFILE}
COMMENT [Skelfile..for editor only: ]
}

PARAM
{
KEY {6}
TYPE {SKELNAME}
COMMENT [Skelname..for editor only: ]
DISPLAY {}
}

PARAM
{
KEY {7}
TYPE {OBJECT}
COMMENT [Virtual Object to detect for next sequence: ]
IN  {}
}

PARAM
{
KEY {8}
TYPE {OBJECT}
COMMENT [Virtual Object to detect for dissappear: ]
IN {}
}

PARAM
{
KEY {9}
TYPE {OBJECT}
COMMENT [Virtual Object to send: ]
OUT {}
}

CODE
[

TRAP
{
KEY  { %0 }
FLAG { LIGHTBUFFER|LIGHT|ACTIVE|SIDEDETECT|NEEDPOS }
NAME { %1 }

SKELFILE { MULTIPNJ }

STATE
{
KEY { static }
SKELNAME { ecuyer }
SKELANIM { static }
SETCOLLID { 1 }
MULTI
{
CONDITION
{
OBJECT {%7}
GOTO {static2}
}
CONDITION
{
CLICK {}
GOTO {parle1}
}
}
}

STATE
{
KEY { parle1 }
SKELNAME { ecuyer }
SKELANIM { static }
SETCOLLID { 1 }
TEXTPANEL { %2 }
MULTI
{
CONDITION
{
CLOSEPANEL {}
GOTO {static}
}
}
}

STATE
{
KEY { static2 }
SKELNAME { ecuyer }
SKELANIM { static }
SETCOLLID { 1 }
MULTI
{
CONDITION
{
CLICK {}
GOTO {parle2}
}
}
}

STATE
{
KEY { parle2 }
SKELNAME { ecuyer }
SKELANIM { static }
SETCOLLID { 1 }
TEXTPANEL { %3 }
ACTION
{
OBJECT {%9}
}
MULTI
{
CONDITION
{
CLOSEPANEL {}
GOTO {staticFin}
}
}
}
STATE
{
KEY { staticFin }
SKELNAME { ecuyer }
SKELANIM { static }
SETCOLLID { 1 }
MULTI
{
CONDITION
{
OBJECT {%8}
GOTO {fin}
}
CONDITION
{
CLICK {}
GOTO {parleFin}
}
}
}

STATE
{
KEY { parleFin }
SKELNAME { ecuyer }
SKELANIM { static }
SETCOLLID { 1 }
TEXTPANEL { %3 }
MULTI
{
CONDITION
{
CLOSEPANEL {}
GOTO {staticFin}
}
}
}

STATE
{
KEY {fin}
CLEARCOLLID { 1 }
}
}
]
}