• 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.

[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)
 
Level 20
Joined
Jul 6, 2009
Messages
1,885
Well,i've noticed that when you change icon path,you must again select them in object editor. For example: I have non-working icon that shows green,if a unit has that icon (even if it shows green) and i change path,i must again select that icon to represent that unit in object editor.
 
Status
Not open for further replies.
Top