HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Pls help

10-17-2003, 08:41 PM#1
HEZZA
Ok pls help me.
im gonna post a map with the triggers of my leaderboard which wont damn work

Instead of posting my actual map and risk getting it theived i posted this instead with just some triggers on.

SITUATION: 5v5 heroe kills board
I want a hero to get 1 point on the board for mashing another hero. simple no?

yes, it is if your me.
10-17-2003, 09:48 PM#2
AllPainful
I think I might see the problem.

Set kills[(Player number of (Owner of (Killing unit)))] = (kills[(Player number of (Owner of (Killing unit)))] + 1)

This is in a Trigger that is called by another trigger....

The fuction "Killing Unit" doesn't cross triggers very well..

My suggestion:

Move all the actions from the "Get Kills" trigger to the end of the "update" trigger.

also you were missing the action:

Leaderboard - Change the value for (Owner of (Killing unit)) in leaderboard to kills[(Player number of (Owner of (Killing unit)))]

put that before the sorting action.



PS I hit the test map button after making the above changes and it worked fine. Then I made the following change, and it still works.

BUT I think the following changes can only be made if your using TFT...

Your add player to leaderboard adds even players that aren't playing... try this in the actions instead, it won't add players who aren't in the game:
Code:
Player Group - Pick every player in (All players) and do (Actions)
    Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 1 (Red) slot status) Equal to Is playing
            Then - Actions
                Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value kills[(Player number of (Picked player))]
            Else - Actions
10-17-2003, 09:58 PM#3
theJ89
Ok...
How will the leaderboard know what's inside the variable?
After you set the kills variable, set the value of the killing player in the leaderboard to kills[player number of killing unit]

and... why are you using two seperate triggers?

by the way, running a trigger while it is off (by the trigger - run actions) will still run it.
10-17-2003, 10:05 PM#4
AllPainful
Due to something I did while playing with it (I think is the Pick all players trigger) the map is now considered a TFT map, but if you have TFT no biggy. I have attached the fixed version of your map.
10-17-2003, 10:23 PM#5
BleedBastards
if your new to array variables, then this could be easier to just copy a leaderboard from an existing map with the same type of variable counter...

kills variable should be an integer array with no initial value if i'm not mistakin, however...just to help clear up any possible errors...i'm gonna upload a picture of my leaderboard triggering for unreal tournament series

killz variable array should look something like this


here is the leaderboard setup trigger (highlighted areas are of greater importance to what your trying to do, not what i was doing int he triggers)


death-add killz value


this is the reference trigger, after something dies, RUN THIS TRIGGER


sry this may appear sloppy but this is how you do it! hope this helped in any way....
10-18-2003, 01:09 PM#6
HEZZA
Pls dont reply to this post ive fixed my leaderboard