HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Multiboard help!

06-01-2005, 08:51 AM#1
hypern
Hello all! I hope people would supply some trigger help on this multiboard I wanna create which I totally have trouble figuring out about variables and stuff like that.

I wanna create a multiboard consist of a player's name, kills, deaths and another row which shows the word (DEAD) whenever a player is down. I totally understand colums and rows and stuff like that, but I really don't understand variables and how is it being used. Can someone please explain to me what are they, and actually do a basic multiboard trigger pasted here to show with the rows I have mentioned ? I would really really appreciate it. Thanks =)
06-02-2005, 01:08 PM#2
Anitarf
There's a nice example of a multiboard that does pretty much everything you asked for in my Era of War map. Go take a look.
06-07-2005, 01:14 AM#3
Guest
Trigger Tally Score

Events
Unit - A unit Dies
Conditions
((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True
Actions
Set Player_Kills[(Player number of (Owner of (Killing unit)))] =
(Player_Kills[(Player number of (Owner of (Killing unit)))] + 1)


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

Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Trigger to tally score.
06-07-2005, 04:24 AM#4
luckyownz92
This is multiboard NOT leaderboard you should read
06-10-2005, 09:37 PM#5
MrApples
I have same exact trigger for adding kills and it doesn't work at all.
06-10-2005, 10:07 PM#6
Toast.Theif
I have to setup my multiboard for my game somtime, so I'll just do it now and post it here...
06-11-2005, 04:20 AM#7
Toast.Theif
Ok, to triggers, one to set it up and the other to add kills/update

Code:
Multiboard Setup
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Multiboard - Create a multiboard with 3 columns and 5 rows, titled Score Board
        Set Multiboard = (Last created multiboard)
        For each (Integer A) from 1 to 3, do (Actions)
            Loop - Actions
                Multiboard - Set the text for Multiboard item in column (Integer A), row 1 to Multiboard_Text[(Integer A)]
        For each (Integer A) from 2 to 5, do (Actions)
            Loop - Actions
                Multiboard - Set the text for Multiboard item in column 1, row (Integer A) to (Name of Player[(Integer A)])
        For each (Integer A) from 2 to 5, do (Actions)
            Loop - Actions
                Multiboard - Set the text for Multiboard item in column 2, row (Integer A) to 0
                Multiboard - Set the text for Multiboard item in column 3, row (Integer A) to 0

Code:
Unit Death
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A structure) Equal to False
        ((Owner of (Killing unit)) slot status) Equal to Is playing
        (Owner of (Killing unit)) Not equal to (Random player from (All allies of (Owner of (Dying unit))))
    Actions
        Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
        Multiboard - Set the text for Multiboard item in column 2, row 2 to (String(Kills[1]))
        Multiboard - Set the text for Multiboard item in column 2, row 3 to (String(Kills[2]))
        Multiboard - Set the text for Multiboard item in column 2, row 4 to (String(Kills[3]))
        Multiboard - Set the text for Multiboard item in column 2, row 5 to (String(Kills[4]))
06-11-2005, 10:04 AM#8
Anitarf
Quote:
(Owner of (Killing unit)) Not equal to (Random player from (All allies of (Owner of (Dying unit))))

This condition doesn't really work. Let's say players 1, 2 and 3 are allies. Player 1 kills a unit that belongs to player 2. The trigger creates a player group (which, by the way, causes a memory leak) that has all allies of player 2, meaning players 1 and 3. Then it picks one randomly, let's say it picks player 3. Player 3 is not equal to the killing player (who is player 1), so player 1 is awarded points for a team kill.

Just use the boolean comparison "player is an ally of player" instead.