HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with Multiboard display....

07-15-2004, 06:58 PM#1
Veragoan
Well after trying for a while and reading many many posts on multiboards here.. i still canat seem to get this to work.. Here is what I have. and when i load up my game it shows nothing on the multiboard. i cant get it to show the text.. even after I select a hero.

Code:
Group Board
    Events
        Time - Elapsed game time is 0.01 seconds
    Conditions
    Actions
        Multiboard - Create a multiboard with 2 colums and 21 rows, titled Player Group
        Multiboard - Set the display style for (Last created multiboard) item in column 0, row 0 to Show text and Hide icons
        Multiboard - Set the width for (Last created multiboard) item in column 1, row 0 to 5.00% of the total screen width
        Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 5.00% of the total screen width
        Multiboard - Show all multiboards

Code:
Update Board
    Events
        Time - Every 0.75 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching (((Picked unit) is A Hero) Equal to True)) and do (Actions)
            Loop - Actions
                Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (Name of (Triggering player))
                Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to (The level + (String((Hero level of (Triggering unit)))))
                Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (Proper name of (Triggering unit))
                Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to (Health:  + (String((Percentage life of (Triggering unit)))))
                Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to (Mana:  + (String((Percentage mana of (Triggering unit)))))

Any help would be greatly apritiated.
07-15-2004, 07:49 PM#2
johnfn
Hehehehehe. Sneaky.

Ok its pretty obvious here whats going on if you pay attention. Let me give you an example:

Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (Name of (Triggering player))

There is no triggering player. Triggering players only occur when an event has a player doing an action. You will need to make this more specific.

The same with triggering units. You need to set them to an actual unit.
07-15-2004, 09:21 PM#3
Anitarf
And another thing, this is wrong:
Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching (((Picked unit) is A Hero) Equal to True)) and do (Actions)

This is the right way:
Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)

Otherwise, as johnfn said, you need to replace "triggering unit" with "picked unit", and "triggering player" with "player 1 - red".
07-16-2004, 12:14 AM#4
Veragoan
Ahh.. well thanks for the fix.. i had figured it was in that area.. but i wasnt sure. What would you suggest for getting the player name and hero info?
07-16-2004, 12:23 AM#5
Veragoan
Well.. i figured i probobly just chang all the triggereing player/unit to matching player/unit
07-16-2004, 01:08 AM#6
Veragoan
May as well ask this as well.. Am trying to get a third person view with arrow key controls without variables..

Now i have one of each type of these triggers for each of the 8 players. it seems like it should work.. but i think it has trouble targeting your hero unit..

Code:
update p1
    Events
        Time - Every 0.75 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
            Loop - Actions
                Camera - Apply third person view p1 <gen> for Player 1 (Red) over .75 seconds.
                Camera - Lock camera target for Player 1 (Red) to (Matching unit), offset by (0.00, 0.00) using Default rotation
                Camera - Change camera smoothing factor to 30,00
            Wait 0.50 seconds

Code:
tun 3rd person on p1
    Events
        Player - Player 1 (Red) types a chat message containing /3rdperson on as An exact match
    Conditions
    Actions
        Trigger - Turn on update p1 <gen>
        Trigger - Turn on up p1 <gen>
        Trigger - Turn on down p1 <gen>
        Trigger - Turn on Left p1 <gen>
        Trigger - Turn on right p1 <gen>
        Trigger - Turn on Stop going up p1 <gen>
        Trigger - Turn on Stop going down p1 <gen>
        Trigger - Turn on Stop coing left p1 <gen>
        Trigger - Turn on Stop going right p1 <gen>

Code:
tun 3rd person off p1
    Events
        Player - Player 1 (Red) types a chat message containing /3rdperson off as An exact match
    Conditions
    Actions
        Trigger - Turn off update p1 <gen>
        Trigger - Turn off up p1 <gen>
        Trigger - Turn off down p1 <gen>
        Trigger - Turn off Left p1 <gen>
        Trigger - Turn off right p1 <gen>
        Trigger - Turn off Stop going up p1 <gen>
        Trigger - Turn off Stop going down p1 <gen>
        Trigger - Turn off Stop coing left p1 <gen>
        Trigger - Turn off Stop going right p1 <gen>
        Camera - Reset camera for Player 1 (Red) to standart game-view over 0.75 seconds

And the hero movement codes (Not sure if they work cause I cant get the camera on the hero.. so they may work.

Code:
up p1
    Events
        Player - Player 1 (Red) Presses the Up Arrow key
    Conditions
    Actions
        Unit - Order (Random unit from (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True))) to Move to ((Position of (Matching unit)) offset by (0.00, 9999.00))
        Trigger - Run Turn off every thing p1 <gen> (ignoring conditions)
        Trigger - Turn on Stop going up p1 <gen>

Code:
Stop going up p1
    Events
        Player - Player 1 (Red) Releases the Up Arrow Key
    Conditions
    Actions
        Unit - Order (Random unit from (Units oqned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True))) to Stop

Code:
Left p1
    Events
        Player - Player 1 (Red) Presses the Left Arrow key
    Conditions
    Actions
        Unit - Order (Random unit from (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True))) to Move to ((Position of (Matching unit)) offset by (-9999.00, 0.00))
        Trigger - Run Turn off every thing p1 <gen> (ignoring conditions)
        Trigger - Turn on Stop going left p1 <gen>

Code:
Stop going left p1
    Events
        Player - Player 1 (Red) Releases the Left Arrow Key
    Conditions
    Actions
        Unit - Order (Random unit from (Units oqned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True))) to Stop

Code:
right p1
    Events
        Player - Player 1 (Red) Presses the Right Arrow key
    Conditions
    Actions
        Unit - Order (Random unit from (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True))) to Move to ((Position of (Matching unit)) offset by (9999.00, 0.00))
        Trigger - Run Turn off every thing p1 <gen> (ignoring conditions)
        Trigger - Turn on Stop going right p1 <gen>

Code:
Stop going right p1
    Events
        Player - Player 1 (Red) Releases the Right Arrow Key
    Conditions
    Actions
        Unit - Order (Random unit from (Units oqned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True))) to Stop

Code:
down p1
    Events
        Player - Player 1 (Red) Presses the Down Arrow key
    Conditions
    Actions
        Unit - Order (Random unit from (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True))) to Move to ((Position of (Matching unit)) offset by (000, -9999))
        Trigger - Run Turn off every thing p1 <gen> (ignoring conditions)
        Trigger - Turn on Stop going right p1 <gen>

Code:
Stop going down p1
    Events
        Player - Player 1 (Red) Releases the Down Arrow Key
    Conditions
    Actions
        Unit - Order (Random unit from (Units oqned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True))) to Stop

Code:
Turn off every thing p1
    Events
    Conditions
    Actions
        Trigger - Turn off Stop going down p1 <gen>
        Trigger - Turn off Stop going left p1 <gen>
        Trigger - Turn off Stop going right p1 <gen>
        Trigger - Turn off Stop going up p1 <gen>
07-16-2004, 07:25 AM#7
Veragoan
Just cant get it to work.. anyone have any ideas?
07-16-2004, 06:41 PM#8
Veragoan
C'mon.. someone has to know...