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

Open Gate with more than 1 lever...

Status
Not open for further replies.
Lol you tried to use jass for GUI =)
This is how you do it.
  • Open Gate
    • Events
      • Destructible - A destructible within (Entire map) dies
    • Conditions
      • (Destructible-type of (Dying destructible)) Equal to Lever
    • Actions
      • Set Integer = (Integer + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Integer Equal to 3
        • Then - Actions
          • Destructible - Open GATE<gen>
        • Else - Actions
 
Level 3
Joined
Feb 14, 2011
Messages
43
Lol you tried to use jass for GUI =)
This is how you do it.
  • Open Gate
    • Events
      • Destructible - A destructible within (Entire map) dies
    • Conditions
      • (Destructible-type of (Dying destructible)) Equal to Lever
    • Actions
      • Set Integer = (Integer + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Integer Equal to 3
        • Then - Actions
          • Destructible - Open GATE<gen>
        • Else - Actions

sir, what is the variables type?
 
Level 3
Joined
Feb 14, 2011
Messages
43
okay.. thanks, 1 more question.. the actions part there i don't really get it..

the Set integer = ''( integer + 1)'' < here
if - ''integer equal to 3'' < here

and about the lever , should i make 3 trigger for it as below?

Event - unit enters region
actions - destructible - kills lever
 
Level 3
Joined
Feb 14, 2011
Messages
43
Its Integer. For each gate you need to have an custom variable and a set amount i.e 3

so its mean i should create new variables for each gate?
Variables
Name - Integer01
Type - Integer

just like this?

sorry, im kinda new to this...
 
Level 3
Joined
Feb 14, 2011
Messages
43
here is 1 the trigger i just made for gate... it seems not to be working when 3 levers killed...

  • gate 3
    • Events
      • Destructible - A destructible within Region 025 <gen> dies
    • Conditions
      • (Destructible-type of (Dying destructible)) Equal to Lever
    • Actions
      • Set integer = 1
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • integer Equal to 3
        • Then - Actions
          • Destructible - Open Elven Gate (Horizontal) 0019 <gen>
        • Else - Actions
 
Level 3
Joined
Feb 14, 2011
Messages
43
Its..
  • Destructible - A destructible within (Entire map) dies
Just download the map above that I attached... Open Gate.w3x
  • Set Integer = (Integer + 1)
Not.
  • Set Integer = 1
EDIT: You got this right
  • Destructible - A destructible within Region 025 <gen> dies
don't change it,

yes, i just tested and its working.. thanks again..
 
Status
Not open for further replies.
Top