Quote: "Storyteller,
I am using your "NoHuds" script in one of my projects. Thanks for posting this script. I will make sure I give you credit.
My scripting is a work in progress, so these questions may have pretty obvious answers. I wanted to expand the number of lines of text from 2 lines to three or more. I tried just adding a third line with your coding but when the character (in this case) speaks the third line it diaplays so quickly you can't read it. I tried adjusting the timer but I did not succeed. Any help would be welcome"
I cant test it at the moment but I try to give an example in this code that MIGHT cover the problem:
;Artificial Intelligence Script
by TheStoryteller01 2010
;Header
desc=
This script only works with FPSC 1.16.18, because FPGCRAWTEXT is used AND if using a mod that supports the PICKOBJECT condition.
Made for items that can not be picked up.
To start the script at any time, the player has to move the cursor over the item and press <Enter>.
While the script is running the player cannot move or use mouselook but still shoot. Pressing <Del> at any time ends the script.
Best ist to set the item properties "Isimmobile" to "Yes" and "Strength" to "0" (=indestructible)
After the first run, the script only repeats the last line.
To skip the second line of text (the "flavour text") delete all "state=4" lines and rename "state=4" in the 5th line to "state=6"
If you want the whole text to appear only once, simply delete the complete last ":state=11" line.
;Triggers
:state=0:state=1
:state=1,pickobject=1,plrdistwithin=50,plrusingaction=1:timerstart,plrdisable=100000,state=2
:state=2:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=2:fpgcrawtext=A bottle of wine.
:state=2,timergreater=500,plrusingaction=1:timerstart,state=4
:state=2,scancodekeypressed=14:plrdisable=0,state=0
IT SHOULD WORK COPYING THE FOLLOWING TEXTBLOCK--->
:state=4:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=4:fpgcrawtext="Château Lafitte 1964"....hmm.
:state=4,timergreater=500,plrusingaction=1:timerstart,state=6
:state=4,scancodekeypressed=14:plrdisable=0,state=0
IT WON'T WORK, COPYING THE FOLLOWING TEXTBLOCK--->
:state=6:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=6:fpgcrawtext=I better stay sober.
:state=6,timergreater=500,plrusingaction=1:timerstart,plrdisable=0,state=10
:state=6,timergreater=1500:plrdisable=0,state=10
:state=6,scancodekeypressed=14:plrdisable=0,state=10
:state=10,timergreater=1500:state=11
:state=11,pickobject=1,plrdistwithin=50,plrusingaction=1:timerstart,plrdisable=100000,state=6
;End of Script
This is a script variation of the above that has an additional line and should work, please try if it does:
;Artificial Intelligence Script
by TheStoryteller01 2010
;Header
desc=
This script only works with FPSC 1.16.18, because FPGCRAWTEXT is used AND if using a mod that supports the PICKOBJECT condition.
Made for items that can not be picked up.
To start the script at any time, the player has to move the cursor over the item and press <Enter>.
While the script is running the player cannot move or use mouselook but still shoot. Pressing <Del> at any time ends the script.
Best ist to set the item properties "Isimmobile" to "Yes" and "Strength" to "0" (=indestructible)
After the first run, the script only repeats the last line.
To skip the second line of text (the "flavour text") delete all "state=4" lines and rename "state=4" in the 5th line to "state=6"
If you want the whole text to appear only once, simply delete the complete last ":state=11" line.
;Triggers
:state=0:state=1
:state=1,pickobject=1,plrdistwithin=50,plrusingaction=1:timerstart,plrdisable=100000,state=2
:state=2:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=2:fpgcrawtext=A bottle of wine.
:state=2,timergreater=500,plrusingaction=1:timerstart,state=4
:state=2,scancodekeypressed=14:plrdisable=0,state=0
:state=4:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=4:fpgcrawtext="Château Lafitte 1964"....hmm.
:state=4,timergreater=500,plrusingaction=1:timerstart,state=5
:state=4,scancodekeypressed=14:plrdisable=0,state=0
:state=5:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=5:fpgcrawtext=I could use a little refreshment.
:state=5,timergreater=500,plrusingaction=1:timerstart,state=6
:state=5,scancodekeypressed=14:plrdisable=0,state=0
:state=6:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=6:fpgcrawtext=I better stay sober.
:state=6,timergreater=500,plrusingaction=1:timerstart,plrdisable=0,state=10
:state=6,timergreater=1500:plrdisable=0,state=10
:state=6,scancodekeypressed=14:plrdisable=0,state=10
:state=10,timergreater=1500:state=11
:state=11,pickobject=1,plrdistwithin=50,plrusingaction=1:timerstart,plrdisable=100000,state=6
;End of Script
In case you find my grammar and spelling weird ---> native German speaker ^^