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

About Hero Pick Icon & Spell

Status
Not open for further replies.
Level 5
Joined
Jul 30, 2012
Messages
93
Hi,

I have a problem about this trigger.Sometimes it doesn't write true icon of hero on multiboard...

  • Hero Pick
    • Events
      • Unit - A unit enters Altar Region <gen>
    • Conditions
    • Actions
      • Unit - Move (Triggering unit) instantly to ((Owner of (Triggering unit)) start location), facing (Position of Dark Troll Warlord 0025 <gen>)
      • Selection - Select (Triggering unit) for (Owner of (Triggering unit))
      • Camera - Pan camera for (Owner of (Triggering unit)) to ((Owner of (Triggering unit)) start location) over 0.00 seconds
      • Set Hero[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
      • Set rastgele_used[(Player number of (Owner of (Triggering unit)))] = True
      • For each (Integer A) from 1 to HeroSayisi, do (Actions)
        • Loop - Actions
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • Player - Make rastgelehero[(Integer A)] Unavailable for training/construction by (Owner of (Entering unit))
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • rastgelehero[(Integer A)] Equal to (Unit-type of (Entering unit))
                • Then - Actions
                  • Multiboard - Set the display style for (Last created multiboard) item in column 1, row PlayerSatir[(Player number of (Owner of (Triggering unit)))] to Show text and Show icons
                  • Multiboard - Set the icon for (Last created multiboard) item in column 1, row PlayerSatir[(Player number of (Owner of (Triggering unit)))] to Ikon[(Integer A)]
                  • Player Group - Pick every player in (All players) and do (Actions)
                    • Loop - Actions
                      • Player - Make rastgelehero[(Integer A)] Unavailable for training/construction by (Picked player)
                  • Set rastgelehero[(Integer A)] = rastgelehero[HeroSayisi]
                  • Set HeroSayisi = (HeroSayisi - 1)
                • Else - Actions
              • Skip remaining actions
If i plays test map it's ok but i play with 10 player it isn't ok.Some of players' hero icon same with other picked heroes.I added "Skip remaining actions" but i don't know it's fixed or not.Can someone help ?

Then i'm making some spell.How can i create something or dummy in front of enemy hero?
 
Level 30
Joined
Nov 29, 2012
Messages
6,637
These two triggers:

  • Multiboard - Set the display style for (Last created multiboard) item in column 1, row PlayerSatir[(Player number of (Owner of (Triggering unit)))] to Show text and Show icons
  • Multiboard - Set the icon for (Last created multiboard) item in column 1, row PlayerSatir[(Player number of (Owner of (Triggering unit)))] to Ikon[(Integer A)]
Try setting Last Created Multiboard and Owner of Triggering Unit in a variable and use the variables to do the work.
 
Level 5
Joined
Jul 30, 2012
Messages
93
  • Actions
    • Unit - Move (Triggering unit) instantly to ((Owner of (Triggering unit)) start location), facing (Position of Dark Troll Warlord 0025 <gen>)
    • Selection - Select (Triggering unit) for (Owner of (Triggering unit))
    • Camera - Pan camera for (Owner of (Triggering unit)) to ((Owner of (Triggering unit)) start location) over 0.00 seconds
    • Set Hero[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
    • Set rastgele_used[(Player number of (Owner of (Triggering unit)))] = True
    • Set triggering = (Triggering unit)
    • Set lastcreated = (Last created multiboard)
    • For each (Integer A) from 1 to HeroSayisi, do (Actions)
      • Loop - Actions
        • Player Group - Pick every player in (All players) and do (Actions)
          • Loop - Actions
            • Player - Make rastgelehero[(Integer A)] Unavailable for training/construction by (Owner of (Entering unit))
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • rastgelehero[(Integer A)] Equal to (Unit-type of (Entering unit))
              • Then - Actions
                • Multiboard - Set the display style for lastcreated item in column 1, row PlayerSatir[(Player number of (Owner of triggering))] to Show text and Show icons
                • Multiboard - Set the icon for lastcreated item in column 1, row PlayerSatir[(Player number of (Owner of triggering))] to Ikon[(Integer A)]
                • Player Group - Pick every player in (All players) and do (Actions)
                  • Loop - Actions
                    • Player - Make rastgelehero[(Integer A)] Unavailable for training/construction by (Picked player)
                • Set rastgelehero[(Integer A)] = rastgelehero[HeroSayisi]
                • Set HeroSayisi = (HeroSayisi - 1)
              • Else - Actions
            • Skip remaining actions
Is everything okey now ?
 
Level 30
Joined
Nov 29, 2012
Messages
6,637
  • Actions
    • Unit - Move (Triggering unit) instantly to ((Owner of (Triggering unit)) start location), facing (Position of Dark Troll Warlord 0025 <gen>)
    • Selection - Select (Triggering unit) for (Owner of (Triggering unit))
    • Camera - Pan camera for (Owner of (Triggering unit)) to ((Owner of (Triggering unit)) start location) over 0.00 seconds
    • Set Hero[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
    • Set rastgele_used[(Player number of (Owner of (Triggering unit)))] = True
    • Set triggering = (Triggering unit)
    • Set lastcreated = (Last created multiboard)
    • For each (Integer A) from 1 to HeroSayisi, do (Actions)
      • Loop - Actions
        • Player Group - Pick every player in (All players) and do (Actions)
          • Loop - Actions
            • Player - Make rastgelehero[(Integer A)] Unavailable for training/construction by (Owner of (Entering unit))
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • rastgelehero[(Integer A)] Equal to (Unit-type of (Entering unit))
              • Then - Actions
                • Multiboard - Set the display style for lastcreated item in column 1, row PlayerSatir[(Player number of (Owner of triggering))] to Show text and Show icons
                • Multiboard - Set the icon for lastcreated item in column 1, row PlayerSatir[(Player number of (Owner of triggering))] to Ikon[(Integer A)]
                • Player Group - Pick every player in (All players) and do (Actions)
                  • Loop - Actions
                    • Player - Make rastgelehero[(Integer A)] Unavailable for training/construction by (Picked player)
                • Set rastgelehero[(Integer A)] = rastgelehero[HeroSayisi]
                • Set HeroSayisi = (HeroSayisi - 1)
              • Else - Actions
            • Skip remaining actions
Is everything okey now ?

Try it in-game. And let us see if it will work or worse not.
 
Status
Not open for further replies.
Top