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 / How to do "Combo Script"?

Author
Message
RobsonByte
15
Years of Service
User Offline
Joined: 11th Oct 2009
Location:
Posted: 13th Oct 2009 09:35
Hi guys,

How to do combo script, for exemple:

1 kill= 1 combo, 2 kills= 2 combos, 3 kills= 3combos, etc.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 14th Oct 2009 07:52
You can do this via changes to your enemies' death scripts as well as a global script.

Change your enemy death scripts so that they increase a global variable by 1. That means your global variable will be holding how many kills the player has made.

Now, in your global script (or a script that is given to an ALWAYS ACTIVE entity/light/zone) have it display the global variable next to a "Combo" HUD.

If you want the combo to reset if the player doesn't kill an enemy within a certain amount of time, you can do this:
Change your enemy death scripts again so that they reset the global timer each time.
Now in your global script, have it check if the timer has reached a certain limit. If it has, then reset the global variable to 0.


How many times did I say "global" in this post??
*counts them*
....
I said "global" 10 times.


The one and only,


RobsonByte
15
Years of Service
User Offline
Joined: 11th Oct 2009
Location:
Posted: 15th Oct 2009 09:56
I understand your logic. But how to use it in the script? I use the "globalvar =" for this, but how?

How to show the word "Combo" in screen?
djmaster
User Banned
Posted: 16th Oct 2009 15:05
HorrorMod has a combo feature which eases up your work.

[href]http://sites.google.com/site/chargedstudios/home[href]
"Im British you muppet!"-Psycho
RobsonByte
15
Years of Service
User Offline
Joined: 11th Oct 2009
Location:
Posted: 16th Oct 2009 18:59 Edited at: 16th Oct 2009 19:49
Thanks for you tip, djmaster.
I'll try it.
Ps.: lol Horrormod no is free.

Login to post a reply

Server time is: 2024-11-25 07:34:57
Your offset time is: 2024-11-25 07:34:57