| 07-11-2002, 07:55 AM | #1 |
Guest | ok im trying to get it to upgrade when you have 5, 10, 15 kills and such , i have the region "upgrade" event _________ Unit - A unit enters Upgrade <gen> ___________ condition ->(Unit-Type of (triggering unit)) equal to rifleman ->kills(Integer A) Greater than or Equal to 15 ____________ actions ->Remove Triggering Unit from game ->create 1 Sniper for (owner of (triggering unit) at (center of upgrade <gen>) facing default building facing degrees it doesnt seem to make the new unit |
| 07-11-2002, 08:19 AM | #2 |
I am assuming that kills is a custom (integer) variable array that you made, and a trigger causes it to go up every time a unit is killed, with the array value being the player that owns the killing unit. If so, then then kills(Integer A) Greater than or Equal to 15 should be kills (Owner of (Triggering Unit)) Greater than or Equal to 15 For anyone who doesn't know what I'm talking about in the top part, then here's how to do a kill counter (There may be easier/better ways, but I haven't needed to find out yet): Events Unit - A unit owned by Player 1 Dies Unit - A unit owned by Player 2 Dies Unit - A unit owned by Player 3 Dies .... for every player in the game Conditions (Owner of (Killing Unit) Not equal to (Owner of (Dying unit)) Actions Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1) The condition is there so lamers don't kill their own units for points. |
| 07-11-2002, 08:45 AM | #3 |
Guest | how do i make this trigger kills (Owner of (Triggering Unit)) Greater than or Equal to 15 its not boolean compairsion is it? and get detailed =\ |
| 07-11-2002, 08:54 AM | #4 |
It's an integer comparison. Like you already have; just change what's in the brackets to owner of triggering unit. |
| 07-11-2002, 09:02 AM | #5 |
Guest | kills (Owner of (Triggering Unit))current gold]) Greater than or Equal to 15 it says that but with the current gold shit , cause i used player-> player property is it ok that way or no |
| 07-11-2002, 09:49 AM | #6 |
Use player number, not player property. And in there, choose "Owner of Unit" in the drop-down box, and choose "Killing Unit". If you are having trouble still after doing this, you may want to use the other stuff I put at the bottom of my first post. |
