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 / Need script help

Author
Message
donnie j 252
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location:
Posted: 3rd Oct 2009 16:42
hey guys this is my first script so i need to know where i went wrong? what is soppsed to happen is you gain health for 1000 milliseconds but i dont stop gaining health can anyone tell me what i did wrong

heres the script

;Artificial Intelligence Script

;Header :by donniej252

desc = Shoot to gain health

;Triggers

:state=0,shotdamage=10:state=1
:state=1:plraddhealth=1:state=2
:state=2:etimerstart=1:state=3
:state=3:etimergreater=1000:state=4
:state=4:plraddhealth=0


;End of Script

thanks ~donnie
zeza
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 3rd Oct 2009 23:48 Edited at: 3rd Oct 2009 23:48
Well
Quote: "
:state=1:plraddhealth=1:state=2
:state=2:etimerstart=1:state=3
:state=3:etimergreater=1000:state=4"

You have three colons in all three of these lines, you should only have two
Change them to this
Quote: "
:state=1:plraddhealth=1,state=2
:state=2:etimerstart,state=3
:state=3,etimergreater=1000:state=4
"


Hope This Helps
donnie j 252
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location:
Posted: 4th Oct 2009 02:58 Edited at: 4th Oct 2009 02:59
ok thanks for the help now i have a new issue i need to get this code (;Artificial Intelligence Script

;Header :by donniej252

desc = Shoot to open door

;Triggers

:state=0,shotdamage=10:state=1
:state=1:plraddhealth=60,state=2
:state=2:etimerstart,state=3
:state=3,etimergreater=9000:state=4
:state=4:plraddhealth=0


;End of Script to work with a character script thanks

~donnie
anayar
15
Years of Service
User Offline
Joined: 19th Aug 2009
Location: Minneapolis, MN
Posted: 7th Oct 2009 23:36 Edited at: 7th Oct 2009 23:38
Save this in your scriptbank and assign it as your characters main or if it is a destroy script in your characters destroy script space.

Although Im not sure what etimerstart or etimergreater is though.....

A.N
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 8th Oct 2009 03:25
etimerstart and etimergreater are mod commands where the "e" stands for "entity", meaning that the timer is specific to that script and will not interfere with any other scripts' timers.


The one and only,


anayar
15
Years of Service
User Offline
Joined: 19th Aug 2009
Location: Minneapolis, MN
Posted: 8th Oct 2009 04:48
which mod does that come with?? Project Blue???
Cause i dont see it in S4Mod

A.N
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 8th Oct 2009 07:16
Project Blue has it. Not sure which others do. It's a simple feature, so there probably is a couple.


The one and only,


Login to post a reply

Server time is: 2024-11-25 07:49:04
Your offset time is: 2024-11-25 07:49:04