im just askin
dont call me a dumbass plz
None.
I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.
- Create a global integer array for the players to store their killcount.
- Trigger with the event "unit dies"
and a condition that checks the following:
1. attacker is human (check if the player is between 1 and x). you should know how many humans you have in your map that can gain money for kills
AND
2. the triggering player has to be the attacker's enemy (no teamkilling allowed to get money)
In the actions do the following:
-if the player's variable is < 50, then raise the players variable by 1;
else: give money and set the variable to 0
If you have no idea what I'm talking about I can make screenshots or post a map.
yes i am a bit confused screen shots would be helpful
None.
Make an integer array variable to hold the kill count of each player. When the event "Unit Killed" occurs, add 1 to the index of the array tracking Killing Player's kills. If the value of that index modulo 50 is equal to 0, modify the mineral player property accordingly. Here's some pseudocode:
int[] kills = {0,0,0,0}; //should have a number of indices equal to the number of players you're tracking
if(UnitKilled(Any)) //if a unit is killed
{
kills[UnitKilled(Any).KillingPlayer] += 1; //add 1 to the killer's kill count
if((kills[UnitKilled(Any).KillingPlayer] % 50) = 0) //if the kill count is divisible by 50 with no remainder
{
ModifyPlayerProperty(UnitKilled(Any).KillingPlayer, minerals, add, amount); //add amount of minerals to the killing player's stockpile
}
}
Edit: Crap, Ahli types faster apparently.
Double edit: Screenshot of the generalized case here:
http://i55.tinypic.com/29c486v.jpg
Post has been edited 1 time(s), last time on Jul 26 2011, 10:48 pm by FatalException.
None.
would i do the sameif i wanted to give them a unit like a civ every 50 kills?
None.
Yes, just change the Modify Player Properties to to some variety of the Create Units command.
None.
THIS IS NOT SOLVED yet
um i cant find how to put in an "if" in the actions
None.
Still having problems? I'm asking because of your other topics.
Please report errors in the Staredit.Network forum.
An artist's depiction of an Extended Unit Death
Please do not make "Thank you" posts if you haven't applied the advice given or otherwise solved the issue. Your posts should either contribute towards getting to the solution (i.e. saying what you tried and how it didn't work) or to confirm that the problem has been solved.
um i cant find how to put in an "if" in the actions
There's an action called "If / Then / Else" that you can put in actions. If you need am if condition for the whole trigger, it may be better to create a condition instead of an action for this.