I am trying to undeclare scancodekeypressed I have tried setting it to scancodekeypressed=0 but this has no effect.
Lets say I code a script to scancodekeypressed=2 and the player enters 1 now this does an action. But lets say I go down to state20: where I want the character to enter 1 again for a new action, unfortuantly this doesn't work
Here is a sample
Quote: ";Header
desc = Advanced Conversation FPI -- This is where you talk to steve
;Triggers
:state=0:hudreset,hudx=50,hudy=65,hudimagefine=hudshud_askquestion.png,hudname=talk1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=65,hudimagefine=hudshud_question1_response1.png,hudname=talk2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=65,hudimagefine=hudshud_question1_response2.png,hudname=talk3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=65,hudimagefine=hudshud_question1_response3.png,hudname=talk4,hudhide=1,hudmake=display,state=1
; Player walks up to entity, entity turns to player and gives a statement, player is presented with 3 choices
:state=1,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=talk1,state=3
:state=3,scancodekeypressed=2:hudfadeout=talk1,hudshow=talk2,state=10
:state=3,scancodekeypressed=3:hudfadeout=talk1,state=20
:state=3,scancodekeypressed=4:hudfadeout=talk1,hudshow=talk4,state=30
:state=10,plrusingaction=1:hudfadeout=talk2,state=99
:state=20,plrdistwithin=60:runfpi=peopleTALKTOME_2.fpi,state=0
:state=30,plrusingaction=1:hudfadeout=talk4,state=99
"
This is the second FPI script where I try to have the player make the choice again.
Quote: ";Header
desc = Advanced Conversation FPI -- Part 2 of Talk to Steve
;Triggers
:state=0:hudreset,hudx=50,hudy=65,hudimagefine=hudshud_question1_response2.png,hudname=talk5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=65,hudimagefine=hudshud_question2_response1.png,hudname=talk6,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=65,hudimagefine=hudshud_question2_response2.png,hudname=talk7,hudhide=1,hudmake=display,state=1
; Player walks up to entity, entity turns to player and gives a statement, player is presented with 3 choices
:state=1,plrdistwithin=60:hudshow=talk5,state=2
:state=2,scancodekeypressed=2:hudfadeout=talk5,hudshow=talk6,runfpi=peoplecoward.fpi
:state=2,scancodekeypressed=3:hudfadeout=talk5,hudshow=talk7,runfpi=peoplestrafe.fpi
"
As you can see from the code, I am using a second script for the next set of questions. It makes no difference if I write the code in one FPI or two It still trys to jumble through all at once when I try to interact with the entity.