Hi everyone, I'm having a problem with Benjamin A's npc talking script. I have 3 npc's. 2 of them have 4 messages they display and I got that working fine. However, I want one of them to display 5 different messages and that is where my problem starts. When I finish talking to the first 2 npc's with the 4 messages each and go to talk to the third npc, it displays his 5th message instead of restarting and showing his first message.
This is my code for one of the npc's with 4 messages:
;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.
;sounds come after pressing enter
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\myhuds\Guard1.png,hudname=p1talk1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\myhuds\Guard2.png,hudname=p1talk2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\myhuds\Guard3.png,hudname=p1talk3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\myhuds\Guard4.png,hudname=p1talk4,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=160:rotatetoplr
:state=10,plrdistwithin=60:rotatetoplr,hudshow=p1talk1,hudfadeout=p1talk1
:state=10,plrusingaction=1:timerstart,state=15,sound=audiobank\TheScaryThinker\bust
:state=15,timergreater=500:state=20
:state=20,plrdistwithin=60:rotatetoplr,hudshow=p1talk2,hudfadeout=p1talk2
:state=20,plrusingaction=1:timerstart,state=25,sound=audiobank\TheScaryThinker\bust
:state=25,timergreater=500:state=30
:state=30,plrdistwithin=60:rotatetoplr,hudshow=p1talk3,hudfadeout=p1talk3
:state=30,plrusingaction=1:timerstart,state=35,sound=audiobank\TheScaryThinker\bust
:state=35,timergreater=500:state=40
:state=40,plrdistwithin=60:rotatetoplr,hudshow=p1talk4,hudfadeout=p1talk4
:state=40,plrusingaction=1:timerstart,state=45,sound=audiobank\TheScaryThinker\bust
:state=45,timergreater=500:state=2
:state=2,plrdistfurther=60:state=10
;End of Script
And this is the one for the npc with 5 messages
;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.
;sounds come after pressing enter
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\myhuds\OldMan1.png,hudname=say1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\myhuds\OldMan2.png,hudname=say2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\myhuds\OldMan3.png,hudname=say4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\myhuds\OldMan4.png,hudname=say5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\myhuds\OldMan5.png,hudname=say3,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:rotatetoplr
:state=10,plrdistwithin=60:rotatetoplr,hudshow=say1,hudfadeout=say1
:state=10,plrusingaction=1:timerstart,state=15,sound=audiobank\TheScaryThinker\bust.wav
:state=15,timergreater=500:state=20
:state=20,plrdistwithin=60:rotatetoplr,hudshow=say2,hudfadeout=say2
:state=20,plrusingaction=1:timerstart,state=25,sound=audiobank\TheScaryThinker\bust.wav
:state=25,timergreater=500:state=30
:state=30,plrdistwithin=60:rotatetoplr,hudshow=say4,hudfadeout=say4
:state=30,plrusingaction=1:timerstart,state=35,sound=audiobank\TheScaryThinker\bust.wav
:state=35,timergreater=500:state=40
:state=40,plrdistwithin=60:rotatetoplr,hudshow=say5,hudfadeout=say5
:state=40,plrusingaction=1:timerstart,state=45,sound=audiobank\TheScaryThinker\bust.wav
:state=45,timergreater=500:state=50
:state=50,plrdistwithin=60:rotatetoplr,hudshow=say3,hudfadeout=say3
:state=50,plrusingaction=1:timerstart,state=55,sound=audiobank\TheScaryThinker\bust.wav
:state=55,timergreater=500:state=2
:state=2,plrdistfurther=60:state=10
;End of Script
How do I fix this so that after one of the 4-message npc's shows his last message, the npc with 5 messages will show it's first when I walk up to him?