| 07-23-2004, 06:32 AM | #1 |
ok this is what i have done so far.I made a variable called ammored. and ive made a trigger like this... Events- Unit Johnny rico acquires a target condtions- ammored greater than or equal to 4 Actions- if (all conditions are true) then do (than actions) else do (else actions) If- conditions unit type of triggering unit equal to johnny rico then-actions set ammored -4 else -actions unit -order (triggering unit) to stop second trigger i amde it so evnts- every 0.001 seconds conditions- ammored equal to 0 actions order (johnny rico) to stop now the thing i need help with i want to make a leaderboard having all of the ammo data showing like this the players name/ then this is the players ammunition but the problem is i hate working with leaderboards and i cant figure out how to make this happen :( can someone help me (pros only for some people this might be too hard. |
| 07-23-2004, 09:42 AM | #2 | |
Ha lol pros only, anyways. Okay on to the topic.Quote:
First of all, never do below 0.05 seconds. 0.05 is fast enough anyways, but for some reason if you go below that number things start to get screwy. so set that one for 0.05. Next is the leaderboard, first you make a variable, which is leaderboard. Next make the trigger for the leaderboard to set it, then add in the unit and ammunition. Make ammored a interger variable, cause that is the one that keeps track of numbers. Now since you made the board, now you have to update it. Make another trigger, which updates the board(Not on WE right now so I can't give you the exact trigger) anyways, make the leaderboard have two variables in it, the leaderboard variable, and the interger variable. Event- Every 0.5 seconds of the game. Condition- Player # is still active(or whatever, to explain that the player is still playing) Action- Set leaderboard to update(Again can't remember) to variable, interger. This might not be the best explanation, but you get the idea. Hopefully you can build on this and complete your leaderboard. ![]() |
| 07-23-2004, 02:26 PM | #3 |
Alright, create the variables for each player, then do this trigger to make the leaderboard, also make a variable for the leaderboard. Events-time elapsed in the game is 0.50 seconds Actions-Leaderboard-create a leaderboard titled "ammo leaderboard"(or anithing you want) Set Ammoleaderboard=Last Created Leaderboard For each Integer A do 1 to (maximiun number of players) actions Loop-Actions-If\Then\Else- If Player(Integer A) slot status equal to is playing,Then-add Player(Integer A) to Ammoleaderboard, with value (put his ammo vatiable) Leaderboard-Show Ammoleaderboard. To update the Leaderboard, pick your first trigger(the one that has the event-Unit Johnny rico acquires a target), make it run this action: Set value of owner of Jonny Rico on Ammoleaderboard to (his ammo variable) |
| 07-23-2004, 05:03 PM | #4 | |
Quote:
where do u find that "for each integer a do 1..... |
| 07-23-2004, 05:31 PM | #5 |
Just look in the trigger list, its near the top. |
