Multi Board Help

Synthetics

New Member
Reaction score
7
Hey peeps i've got a multi board That pretty much is exactly the same as siskins multiboard except some changes. Nearly all the changes work except 1

I have a trigger that says
E:Unit Finishes Construction
C:
A:Set PB1=(Count Structures owned by (owner of Construced Unit)
Wait.10
Set Text (last created multiboard) item in column 4 row Multiboard_spots[Player number of (owner of (Constructed Structure))) to (String(PB1)

What this was meant to do was when i had made a building was add the numbers of structures a player has and slap em up onto the multiboard. The problem is, it always comes to 0
Even when i changed the action to:

A: Set PB1=PB1+1

and it still comes up with 0
I ahve used the same set up to created Race Class settings and that works fine and so does kills, but wont count buildings :(

Its driving me bonkers!!!!!! plz help :D

P.S Ty for your time :D
 
I

IKilledKEnny

Guest
1. Disable wait.
2. You don't have last created multiboard, you must use it in variable.
 

Synthetics

New Member
Reaction score
7
Code:
Init Build Count
    Events
        Unit - A unit Finishes construction
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Constructed structure)) Equal to Player 1 (Red)
            Then - Actions
                Set PB1 = (PB1 + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 4, row Multiboard_Spots[(Player number of (Owner of (Constructed structure)))] to (|CFFFF0000 + (String(PK1)))
            Else - Actions

I use this exact trigger for my kills and it works except PB variable is called PK

I not sure what you mean by theres no variable tho :confused:

btw the way i made this trigger after creating the multiboard ^^

thx again for you time and help :)
 
I

IKilledKEnny

Guest
I believe AceHArt pointed out the problem. Also, I do suggest you get the multiboard inside a variable and use that, I'm not sure last created multiboard works in a trigger that doesn't have multiboard created in it.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> I'm not sure last created multiboard works in a trigger that doesn't have multiboard created in it.

As long as the actual board has been created before... no problem.
"Last created multiboard", and, actually, same for all other "last created ..."s, is a global variable that keeps its value until either the game ends or another "create" action of the same type is used.
 

Synthetics

New Member
Reaction score
7
Yeah i re wrote the triggers for building counts and changed it to this

Inital Item use
Events
Unit - A unit Finishes construction
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Constructed structure)) Equal to Player 1 (Red)
Then - Actions
Set NBPB1 = (Count structures controlled by Player 1 (Red) (Exclude incomplete structures))
Multiboard - Set the text for (Last created multiboard) item in column 4, row Multiboard_Spots[(Player number of (Owner of (Constructed structure)))] to (String(NBPB1))
Else - Actions
Do nothing


Its all working now, i just wished i had read the post before re writting the trigger... doh

Thanks for all your help tho guys much appreciated. :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top