• 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] about variable creating

Status
Not open for further replies.
Level 2
Joined
Oct 29, 2008
Messages
5
i need a creat varible for force 1 and for 2 players,force 1 player1-5 force 2 6-10, What should i do in "create variable" area?
i wanna make
,a force1player dies ,revive in region1 after 30 second
,a force2player dies ,revive in region2 after 30 second
.
thnx:zip:
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
Arrays.

Arrays are used to sort of make multiple variables with the same variable name and info type (like Integer, Boolean, Unit, Player, etc.), but each array is a different variable.

  • Map Initialization
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Set Region[1] = Region 0000 <gen>
      • Set Region[2] = Region 0001 <gen>
  • Reviving
    • Events
      • A unit dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering Unit) Owned by Player in Force 1
        • Then - Actions
          • Wait 30.00 seconds
          • Revive (Triggering Unit) at Region[1] (Hide revive graphics)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering Unit) Owned by Player in Force 2
            • Then - Actions
              • Wait 30.00 seconds
              • Revive (Triggering Unit) at Region[2] (Hide revive graphics)
            • Else - Actions
These are from scratch, so the 'Player in Force X' part might be a bit different, but I assume you know how to make it :smile:
 
Status
Not open for further replies.
Top