• 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] why does this trigger not work?

Status
Not open for further replies.
Level 9
Joined
Jan 14, 2008
Messages
366
  • ini constant setup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 70, do (Actions)
        • Loop - Actions
          • Set productivity_MET[(Integer A)] = (Random integer number between 80 and 120)
      • For each (Integer A) from 1 to 70, do (Actions)
        • Loop - Actions
          • Set productivity_TYR[(Integer A)] = (Random integer number between 35 and 65)
      • Wait 2.00 seconds
why does the function not assign random values to all of the variable arrays?
 
You already have an IntegerA, the second Integer loop you are using, have it as Integer B :)

  • Trigger
  • Actions
    • For each (Integer A) from 1 to 70, do (Actions)
      • Loop - Actions
        • Set productivity_MET[(Integer A)] = (Random integer number between 80 and 120)
    • For each (Integer B) from 1 to 70, do (Actions)
      • Loop - Actions
        • Set productivity_TYR[(Integer A)] = (Random integer number between 35 and 65)
 
Status
Not open for further replies.
Top