• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Question With One Line (Multiboard)

Status
Not open for further replies.
Level 9
Joined
Jun 25, 2009
Messages
427
Hey guys, i need your help, see i want to set hero icons pretty simple, i have a trigger that looks something like this.

  • Actions:
    • Set Unit_Group=(Units in (Playable Map Area) owned by (Triggering Player)
    • Unit Group - Pick (All units in Unit_Group) and (Do actions):
      • Loop - Actions:
        • If (All Conditions are True) then (Do Actions) else (Do Actions):
          • If - Conditions:
            • (Picked Unit) is a Hero equal to True
          • Then - Actions:
            • Multiboard - Set the icon in Multiboard column 1 row Player_Row[Player Number of (Triggering Player)] to Hero_Icons[(Point-Value of (Picked Unit))]
          • Else - Actions:
    • Custom script: call DestroyGroup(udg_Unit_Group)
Multiboard-Multiboard variable
Hero_Icons-String variable with [1-24] ReplaceableTextures/etc/etc.blp
Player_Row[1-12] is variable (integer) with [1]=2, [2]=3, etc

And yeah, i set the point values of the heroes in the (Object Editor)
By the way, this stuff only shows green bars >.>

Regards,
Tiche3:grin: (+rep will be given for sure)
 
Status
Not open for further replies.
Back
Top