Posted: 20th Jul 2006 22:16
Below is code, will this work? look, when you press enter after 3rd diologue the game will quit.
;Created by Benjamin Aeilkema
;Header
desc = game conversation
;walk up to an character and he will display a messages. when the user presses enter the next message will be shown
;when the user presses enter once more, the last message will display.
;can be used for talking characters
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=texturebank\user\1.png,hudname=talk1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=texturebank\user\2.png,hudname=talk2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=texturebank\user\3.png,hudname=talk3,hudhide=1,hudmake=display,state=9
:state=9,plrdistwithin=160:rotatetoplr
:state=9,plrdistwithin=60:state=10,sound=audiobank\user\1.wav
:state=10,plrdistwithin=60:rotatetoplr,hudshow=talk1,hudfadeout=talk1
:state=10,plrusingaction=1:timerstart,state=15
:state=15,timergreater=500:state=19
:state=19,plrdistwithin=60:state=20,sound=audiobank\user\2.wav
:state=20,plrdistwithin=60:rotatetoplr,hudshow=talk2,hudfadeout=talk2
:state=20,plrusingaction=1:timerstart,state=25
:state=25,timergreater=500:state=29
:state=29,plrdistwithin=60:state=30,sound=audiobank\user\3.wav
:state=30,plrdistwithin=60:rotatetoplr,hudshow=talk3,hudfadeout=talk3
:state=30,plrusingaction=1:quitgame
;End of Script