I could use a bit of help as I am stuck right now, and this site looks promising.
I am trying to create an ammo system like this;
-A full clip is 75 gas.
-If you kill a unit you lose 3 gas.
-If you reach 0 gas, you cannot attack anymore.
-To reload, you build a Corsair, this sets your gas at 75 again.
-Process repeats.
I have a system kind of worked out, but I have run into problems. I want to see how you would do it, as I am completely out of ideas. Please help me out.
Thanks,
Phenix
None.
http://www.staredit.net/wiki/Ammo_Systems This should help you out. Im kind of busy right now so thats all for now.
None.
FYI, this is very easy to do. Why 3 gas though?
Also, note that you can only detect when the unit dies through normal means, you can't detect when the unit actually attacks via simple triggers (unless it's always 1 hit kills).
The wiki should help you out tremendously. If it doesn't, ask for clarification on the part you don't understand. Also, you seem to be thinking very well in terms of triggers, since they are simply IF THEN statements.
For example:
-A full clip is 75 gas. - If current player has at least 1 gas
-If you kill a unit you lose 3 gas. - if current player score is some number (see
kills to cash-If you reach 0 gas, you cannot attack anymore. - if current player has exactly 0 gas
-To reload, you build a Corsair, this sets your gas at 75 again. - if current player commands at least 1 corsair
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
Wow, thanks for the reply's guys. I feel so dumb, lol. I can't believe I missed that.
samsizzle,
Thanks for directing me to where I needed to go.
rockz,
Thanks for the reply and help. I understand now, and yes, it was actually very easy =P
To answer your question about "Why 3 gas?" Well... It's just numbers =P Makes it look more like a clip of ammo. You know what I'm saying?
Anyways, thanks guys. I'll let you know how it works out.
EDIT: Works great, thanks guys.
Post has been edited 1 time(s), last time on Aug 4 2009, 5:09 am by Phenix53.
None.