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's Wrong With my Script?

Author
Message
TEST OF WILL
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 6th Jun 2007 06:34 Edited at: 7th Jun 2007 03:42
Well this script was supposed to display a HUD when you press GOD saying GOD mode and add 9999 heath whats wrong?

I have Attached A video!

Attachments

Login to view attachments
Thraxas
Retired Moderator
18
Years of Service
User Offline
Joined: 8th Feb 2006
Location: The Avenging Axe, Turai
Posted: 6th Jun 2007 07:42
What have you attached the script to?
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 6th Jun 2007 15:20
Should be posted in Scripts forum

Don't know why it doesn't work


For all my free FPSC entities!
mister shakes
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Amishville
Posted: 6th Jun 2007 17:24
In your hud definition you are using forward slashes.

You have


it should be


Good luck.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 6th Jun 2007 17:32
Once in GOD mode, the health should always be 9999, so add state 9:

:state=9,plrhealthless=9999:plraddhealth=1

Best.

I'm sorry, my answers are limited. You must ask the right question.

mister shakes
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Amishville
Posted: 6th Jun 2007 17:40
Well if you get beaned with rockets repeatedly eventually you will die doing that.

:state=9,plrhealthless=9999:plraddhealth=9999

Unless FPSC can't do that math...
vorconan
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Wales
Posted: 6th Jun 2007 19:16 Edited at: 6th Jun 2007 19:18
Quote: "Well if you get beaned with rockets repeatedly eventually you will die doing that."


No you won't

Quote: ":state=9,plrhealthless=9999:plraddhealth=9999"


If your health drops to 9998 then it will add 9999, that makes 19997 i hope, not really an effective method.
mister shakes
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Amishville
Posted: 6th Jun 2007 19:27 Edited at: 6th Jun 2007 19:45
Why won't you? Say your rocket does 100 damage. After enough rockets, your health will eventually equal zero. i.e. 9999-100+1=9900 and so on.

I don't think FPSC reads a value larger than 9999, so it would always show 9999.

FYI - I haven't tested any of this it is only theory.

EDIT:

OK nevermind, I just tested it and it works. Totally escaped me that as long as the state doesn't change it loops. Adding 9999 just makes it restore faster.
TEST OF WILL
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 7th Jun 2007 02:54
alright I think that FPSC is doing something because the sound plays, but my health stays and the hud does not pop-up
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 7th Jun 2007 03:51
Quote: "What's Wrong With my Script?"


It doesn't work. lol

I'm sorry, my answers are limited. You must ask the right question.

Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 8th Jun 2007 05:41
I didn't test it but you can try this...



Don't forget to visit Conjured Entertainment

Login to post a reply

Server time is: 2024-11-23 17:40:09
Your offset time is: 2024-11-23 17:40:09