Hey all, I'm N4warhead new to this site and to FPI scripting, one of my friends came to me asking if i could learn it and make scripts for him. (Sense I'm known for my scripting skills with other programs) I think i have the basics handled but had a problem with one of my scripts and was thinking someone here could help me out.
I tried to make a health pack that gives you 250 health (no matter what your health is at that time) then decreases what it gave you by 1. (sorta like a temporary powerup) Here is what i have, don't laugh because this is relatively still new to me.
;Artificial Intelligence Script
;Header
desc = Super Health Pack (+250) Decreases by 1
;Triggers
:state=0,cantake,plrdistwithin=50,:playertake,localvar=1,plraddhealth=250,plrsound=audiobank\items\healthup.wav,state=1
:state=1,varless=249,plrhealthgreater=101:plraddhealth=-1,incvar=1,state=2
:state=1,varequal=250:state=0,setvar=0
:state=2,varless=249,plrhealthgreater=101:plraddhealth=-1,incvar=1,state=1
Your signature has been erased by a mod please reduce it to no larger than 600 x 120.