• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] about variable creating

Status
Not open for further replies.

slayer__

S

slayer__

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:
 
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.
Back
Top