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 / Health System Help!

Author
Message
Mriganka
9
Years of Service
User Offline
Joined: 16th Jun 2014
Location: Virtuality
Posted: 25th Jun 2017 21:07 Edited at: 25th Jun 2017 21:09
Okay. Here are the two scripts.
Quote: "
:state=0:dimvar=fh,state=1
:vargreater=fh $PH:etimerstart,state=1
:state=1,etimergreater=2500:plraddhealth=1,etimerstart,setvar=H $PH,state=2
:state=2,etimergreater=999:plraddhealth=1,etimerstart,setvar=H $PH
:ALWAYS:setvar=fh $PH,subvar=fh 1"


Quote: ":state=0,plralive=1:dimvar=H,plrwobble=1,state=1
:state=1:setvar=H $PH,state=2
:state=2:plrwobble=5,state=3
:state=3,plrhealthless=%H:etimerstart,state=4
;:state=3,plrhealthgreater=%H:state=1
;:state=3,plralive=0:state=1
:state=4,etimergreater=100:plrsound=audiobank\Downloaded\Gamemaster Audio - Bullet Impact Sounds\bullet_impact_body_thump_02.wav
:state=4,etimergreater=150:plrwobble=750
:state=4,etimergreater=250:setvar=H $PH,plrsound=audiobank\voices\shadowfire'splayersounds\hurt3.wav,state=1"


Everything works fine. But the problem is me not being able to make the script play random sounds (out of a certain selections) in state=4 of the second script which makes it feel monotonous and awkward. The following YouTube video for example -

sman512
9
Years of Service
User Offline
Joined: 28th Nov 2014
Location: Russia
Posted: 26th Jun 2017 17:10
This gonna work i think. Not tested this by myself.
GS
Mriganka
9
Years of Service
User Offline
Joined: 16th Jun 2014
Location: Virtuality
Posted: 27th Jun 2017 13:32
@sman512 Thank you! You also helped clarify my doubts on how to use some commands!
sman512
9
Years of Service
User Offline
Joined: 28th Nov 2014
Location: Russia
Posted: 27th Jun 2017 15:33
In FPSC you never know what will work and what not. I glad that this script work. =)
P.S Video looks good!
GS
Mriganka
9
Years of Service
User Offline
Joined: 16th Jun 2014
Location: Virtuality
Posted: 27th Jun 2017 19:16
Thank you!

Login to post a reply

Server time is: 2024-04-18 17:57:31
Your offset time is: 2024-04-18 17:57:31