Staredit Network

Staredit Network -> UMS Assistance -> Move players with most kills
Report, edit, etc...Posted by flipmonkey on 2006-03-05 at 10:20:45
My map has 6 player in, 3v3. At A certain time it the game i want 1 player from each force with the most hero kills to be moved to a small area to battle it out. Im not sure how to set this up.
Report, edit, etc...Posted by GgG-M.K.Russ. on 2006-03-05 at 15:26:38
I assume the two different teams are on two different forces. From there:
Trigger
Players:
¤ Force 1
Conditions:
¤ A trigger to activate when you want the 1v1 battle to start(Time, kills, etc)
¤ Current player has highest score: Kills( or whatever else you want)
Actions:
¤ Move wherever you want or w/e it is you wanted


You would repeat that trigger for the opposite team. The only concern if there is a tie between two players on a team, in which case you need to decide how to tie break.
Report, edit, etc...Posted by MapUnprotector on 2006-03-05 at 16:19:04
I don't believe that would work. I know what the trigger is trying to do, but I think when using the condition: Current player with highest score: Kills, it compares it to everyone, not just the force the trigger is run in.

If indeed that is the case what I would do is check one team at a time. To do this I would first make all of Team A's score 0, which leaves only Team B's score. Then Russ's trigger would work. If not, ignore everything I'm saying.

Then you would restore Team A's score, and then set Team B's score to 0. Then you could check who is the highest in Team A using Russ's trigger again.

Also, if you are setting a person's score to 0 you would want to store their score into some other variable such as a death counter.

A basic trigger for that would be like:

Trigger
Players:
¤ Force 1
Conditions:
¤ Current Player's score is at least 2^n
Actions:
¤ Subtract 2^n score for current player
¤ Add 2^n deaths for storage unit for current player
¤ Preserve


You would repeat this trigger for n = x to 0
x is the most number of kills you are going to start with
For example if x is 3 then you would have the triggers with 2^3, 2^2, 2^1, 2^0, which is really subtracting 8, 4, 2, and 1. This will work for numbers as high as 8 using x = 3.
Put simply, you are subtracting powers of 2 from the score until it is 0 while adding the same amount in the storage death counter.

Look at this tutorial:http://www.staredit.net/index.php?tutorial=34
And Tux's calculator map.

Then when you want to restore the player's score by doing the same thing in reverse:

Trigger
Players:
¤ Force 1
Conditions:
¤ Current Player suffered at least 2^n deaths of storage unit
Actions:
¤ Subtract 2^n deaths for current player
¤ Add 2^n deaths for score
¤ Preserve


Then just repeat this for the other force. Also add the appropriate conditions for when you want these to run.

Also, if you are going to do something like this you would have to use kill SCORE, because you can't subtract kill.

This is the only solution I can think of right now, I'm sure someone has a better way.
Report, edit, etc...Posted by GgG-M.K.Russ. on 2006-03-05 at 17:06:36
hmm, that may be true. If it applies to everyone, you could have one team have one custom score, say deaths of unit x, and another team have another custom score, deaths of unit y. That way, when u say "highest score: deaths of x" it would only bring up the first team's best player, and so on. Ofcourse, you would need to do kills to points triggers. "When player from team one has one kill of hero, subtract one kill, add "death of unit x" "
Report, edit, etc...Posted by fritfrat(U) on 2006-03-05 at 19:06:25
I have a good idea! yay!

Anyways, have it so if someone has 5 kills, they have 5 units in an unused part of the map, and so on. Simple kills-->cash system can do that for you. Each team will have its own area. Then, once the timer is up, just use "commands the most units at" condition for each force smile.gif

This would also work with "highest score" with custom score for one force and another unused score for another force.

Most creative idea I've come up with in a while.
Next Page (1)