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

What's wrong here?

Status
Not open for further replies.
Level 9
Joined
Apr 28, 2009
Messages
538
I have this trigger:

  • Ramdomize Units AR
    • Events
    • Conditions
    • Actions
      • -------- -------------------------- --------
      • Set ARUnit_Types[1] = Footman
      • Set ARUnit_Types[2] = Whatever unit123
      • Set ARUnit_Types[3] = Whatever unit4
      • Set ARUnit_Types[4] = Whatever unit324
      • Set ARUnit_Types[5] = Whatever unit54
      • Set ARUnit_Types[6] = Whatever unit5567
      • Set ARUnit_Types[7] = Whatever unit78
      • -------- -------------------------- --------
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (((Picked player) controller) Equal to User) and (((Picked player) slot status) Equal to Is playing)
            • Then - Actions
              • Unit - Create 1 ARUnit_Types[(Random integer number between 1 and 7)] for (Picked player) at ((Picked player) start location) facing Default building facing degrees
            • Else - Actions
      • Custom script: call DestroyTrigger(GetTriggeringTrigger())
It should create a random unit type for each player, but it only creates the first unit type (ARUnit_Types[1] wich is Footman as you can see)

Why?

How can i modify it to create a random unit type for each player?

PS: ARUnit_Types is a Unit-type Array(8) variable.
 
Level 9
Joined
Apr 28, 2009
Messages
538
@takakenji - when you don't actually know anything about WEditor, you should just shut up.

@LazyCoder - thanks dude. I think that's the last thing I could've think of.
 
Level 6
Joined
May 1, 2009
Messages
215
troll.jpg
 
Level 9
Joined
Apr 28, 2009
Messages
538
this thread should be deleted or at least moved to "Off-Topic". It has nothing to do with warcraft anymore.
 
Status
Not open for further replies.
Top