• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] All Random Trigger not working

Status
Not open for further replies.
Level 9
Joined
Nov 3, 2010
Messages
448
Hey, can someone tell me where I get it wrong?

  • Aktionen
    • Spielergruppe - Pick every player in (All players) and do (Actions)
      • Schleifen - Aktionen
        • Video - Turn cinematic mode Aus for (All players)
    • Set HeroTypeCount = 15
    • Set HeroType[1] = Inquisitor
    • Set HeroType[2] = Wizard
    • Set HeroType[3] = Mountain Giant
    • Set HeroType[4] = Blackrock-Clan-Klingenmeister
    • Set HeroType[5] = Witch Doctor
    • Set HeroType[6] = Warlock
    • Set HeroType[7] = Lich
    • Set HeroType[8] = Vampire
    • Set HeroType[9] = Abomination
    • Set HeroType[10] = Gruftlord
    • Set HeroType[11] = Druid
    • Set HeroType[12] = Dämonenjäger
    • Set HeroType[13] = Wächterin
    • Set HeroType[14] = Feuerlord
    • Set HeroType[15] = Ranger
    • Spielergruppe - Pick every player in (All players matching (((Picked player) slot status) Gleich Spielt)) and do (Actions)
      • Schleifen - Aktionen
        • Spieler - Set (Picked player) Aktuelles Holz to 50
        • Set RandInt = (Random integer number between 1 and HeroCount)
        • Einheit - Create 1 HeroType[RandInt] for (Picked player) at ((Picked player) start location) facing Vorgabe für Gebäude-Ausrichtung degrees
        • Set HeroType[RandInt] = HeroType[HeroTypeCount]
        • Set HeroTypeCount = (HeroTypeCount - 1)

Thanks!
 
Level 13
Joined
Jul 15, 2007
Messages
763
Spielergruppe - Pick every player in (All players matching (((Picked player) slot status) Gleich Spielt)) and do (Actions)

should be

Spielergruppe - Pick every player in (All players matching (((Matching player) slot status) Gleich Spielt)) and do (Actions)
 
Level 9
Joined
Nov 3, 2010
Messages
448
Spielergruppe - Pick every player in (All players matching (((Picked player) slot status) Gleich Spielt)) and do (Actions)

should be

Spielergruppe - Pick every player in (All players matching (((Matching player) slot status) Gleich Spielt)) and do (Actions)

Hey, thanks for your quick reply!
Did that and tried it in the World Editor. Somehow blue also got a champ. Is that a WE bug or?
 
Status
Not open for further replies.
Top