Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / What do i need to fix in this script? (hudshow)

Author
Message
oakley
14
Years of Service
User Offline
Joined: 28th Dec 2009
Location: True
Posted: 7th Jan 2010 21:08
I tried to make a script making someone talk when you walk into the zone near them and go to the next text when you press enter. It doesn't work. All it does is make all of the huds disappear and then flash crazily.
Here is the code:
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 7th Jan 2010 22:59
It looks like the commands are being cycled through too quickly. Try the edited script below:

;desc = talk
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=languagebank\english\gamecore\text\zombieisland\sgtj1.dds, hudname=talk1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=languagebank\english\gamecore\text\zombieisland\sgtj2.dds, hudname=talk2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=languagebank\english\gamecore\text\zombieisland\sgtj3.dds, hudname=talk3,hudhide=1,hudmake=display,state=10
:state=10,plrwithinzone=1:hudshow=talk1,hudfadeout=talk1
:state=10,plrusingaction=1:state=20
:state=20,plrusingaction=0:state=21
:state=21,plrwithinzone=1:hudshow=talk2,hudfadeout=talk2
:state=21,plrusingaction=1:state=30
:state=30,plrusingaction=0:state=31
:state=31,plrwithinzone=1:hudshow=talk3,hudfadeout=talk3
:state=31,plrusingaction=1:state=2
:state=2,plrwithinzone=0:state=10
;End of Script


FPSC MIGRATION: http://bit.ly/5I8LYO
FPSC NUCLEAR EXPLOSION: http://bit.ly/67v8GI
oakley
14
Years of Service
User Offline
Joined: 28th Dec 2009
Location: True
Posted: 8th Jan 2010 00:20
I wish I could say it works, but it doesn't. Same problem with this script. Thanks for the response though.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 8th Jan 2010 03:40 Edited at: 8th Jan 2010 03:41
@ oakley

Try this:



I use the above. I assign it to the MAIN AI for a character. When I approach the character the first hud I specified comes up. I press ENTER and the second displays, press ENTER then the third displays. If i walk away and approach character, it starts again from the beginning. Just have to modify the path to your hud(s).

Hope that helps.

Cheers

Mike

Login to post a reply

Server time is: 2024-11-25 03:51:16
Your offset time is: 2024-11-25 03:51:16