HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Editor Help Please

04-10-2003, 12:22 PM#1
Hubie
I have a problem, and I don´t understand whats wrong...
I was creating a Leaderbord for my new map Blood's Domination:

Leaderbord already created, In game I can see it and all is well

Variable: Kills[array] <--- Integer
I want the Kills Variable to show in the Leaderbord...

So i Do:

Event: A unit owned by Player 5 dies

Condition: Dying Unit is a Hero = true and Owner of (Killing Unit) is (Random Player of Team1)
Team1 is Player 1-4

Action: Set Kills[Player Number of Owner of (Killing Unit)] = Kills[Player Number of Owner of (Killing Unit)] + 1

Set Kills [Player Number of (Neutral enemy)] = Kills[Player Number of (Neutral enemy)] + 1

Trigger - Run Update Leaderbord (ignoring Conditions)






Trigger Update LEaderbord

Event -
Condition -

Action: Leaderbord - Change the Value for (Owner of (Killing Unit)) in (LIST <- that´s the "last created Leaderbord) to Kills[Player Number of Owner of (Killing Unit)]

Action: Leaderbord - Change the Value for (Neutral enemy) in (LIST)
to Kills[Player Number of (Neutral enemy)]

And that´s the joke: The Neutrals get one more Kill but the specific killing Player doesn´t get any Kills ^^

PLEASE help me :-((
04-11-2003, 07:00 AM#2
Krakou
May be your Killing Unit doesn't transfer to the second trigger.

Try to keep the number in a global variable and use this variable in the Trigger Update LEaderbord.
04-11-2003, 07:26 AM#3
KaTTaNa
Quote:
Condition: Dying Unit is a Hero = true and Owner of (Killing Unit) is (Random Player of Team1)

That's wrong. Random Player of Team1 returns a well.. random player. Example:
Player 1 kills a unit and it will become:
Player 1 equal to (Random Player of Team1)

Random player of team1 can become any of the players in team1, let's say it takes player 3:

Player 1 equal to Player 3 = FALSE

Instead use this: It's a boolean comparison called Player - Player is in player group.
(Owner of (Killing unit)) is in Team1