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 help with a alarm script

Author
Message
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 19th Oct 2005 02:02 Edited at: 19th Oct 2005 04:09
in the script when you go int a trigger zone, ligtse flash and after a little while you get hurt and die this is what i had i had and it didnt work


can u guys help me plz



edit, this is my first real script so it might be horrible



another edit cmon..... some one be nice

dont assune cause u make an ass out of u and me
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 19th Oct 2005 21:42 Edited at: 19th Oct 2005 22:16
someone be nice and help a noob

dont assune cause u make an ass out of u and me
BULLSHOCK 2
Retired Moderator
19
Years of Service
User Offline
Joined: 14th Jun 2005
Location: Shocking Bulls
Posted: 19th Oct 2005 22:25 Edited at: 19th Oct 2005 22:29
ok...heres the problem...you should have had this:


syntax error again...

also, i wouldent have the player live for 2 seconds (2000 = 2 seconds....)

but thats me, you may need it to do that...


also, you could compress that into 3 or 4 states, but i left it spaced out for the sake of you learning from it...

flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 19th Oct 2005 23:57
ok thx, what is a syntax error ???

dont assune cause u make an ass out of u and me
BULLSHOCK 2
Retired Moderator
19
Years of Service
User Offline
Joined: 14th Jun 2005
Location: Shocking Bulls
Posted: 20th Oct 2005 00:09
it means that the stuff was right, but you set it up wrong...commas and colons in the wrong places etc...

flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 20th Oct 2005 01:19
thanks

dont assune cause u make an ass out of u and me
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 20th Oct 2005 01:25
dang wtf? i put it in the triger zone and still nothing happens

dont assune cause u make an ass out of u and me
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 20th Oct 2005 22:43 Edited at: 20th Oct 2005 22:46
why thank you

it worked!

dont assune cause u make an ass out of u and me
Merranvo
19
Years of Service
User Offline
Joined: 24th May 2005
Location: That ^ is a Orange
Posted: 20th Oct 2005 23:15
or you could be smarter, save .01 seconds, and just use plrhealthgreater=0.

However, your first script is correct. Lets look at Teh Source...
Okay, a single line should be parsed before continuing game. There is no logic error as all actions and conditions happen at once (logically).

"ye oft de adopte early shalt move mountains, and be gods among men"

He who knows everything knows nothing at all.
Merranvo
19
Years of Service
User Offline
Joined: 24th May 2005
Location: That ^ is a Orange
Posted: 21st Oct 2005 00:02
Wait... First, download the FPSC Source (Click the DBP 5.9 Link above).

You can ignore most of the stuff, but look at the way the scripting commands work. If you can't understand it, do a search for "QBASIC COMMANDS" for general understanding. If you include lees rantings, it becomes pretty clear that the entire line is parsed. This means that all actions occur at once (logically).

Also, finding a location has a lot more source then the plrhealthgreater=0 command, this is enough to tell that you save critical time by using plrhealthgreater.

As he does not stay in the zone, he should not receive extra dammage. So there is no logic error. If the plr died and stayed where he was, then you have a problem.

I would add a termination condition so the plr could "jump" out of the way, that is kinda the way with logic games.

:plrwithinzone=0:state=0

"ye oft de adopte early shalt move mountains, and be gods among men"

He who knows everything knows nothing at all.
Merranvo
19
Years of Service
User Offline
Joined: 24th May 2005
Location: That ^ is a Orange
Posted: 21st Oct 2005 01:00
ohh... now i see that, I thought you were talking about it overkilling him (meaning that -500 if you have 100 it -500) before going to state 0 (if your dead, you resurect... have some negitive left, die again, then state=0)....

"ye oft de adopte early shalt move mountains, and be gods among men"

He who knows everything knows nothing at all.

Login to post a reply

Server time is: 2024-11-23 12:53:57
Your offset time is: 2024-11-23 12:53:57