Miz
Administrator
- Reaction score
- 424
This is a Demo of the Trigger of a Item Gate Opening
This isn't a tutorial it is in a way but only a type of trigger
Introduction
The Item Gate Opening Trigger is a basic way in many game such as Zerg Infestation, Parasite (Never played) and many more
Which a door is opened when a unit holds a item to open this gate
Here is my horrible diagram
Note: The WayGate is the normal Iron Gate but couldn't find one so I just posted a way Gate
Step 1
Make sure your Gates can not be damaged
Which in your map may have more then 1 gate but my map has a gate in the middle of nowhere so I only have 1.
This way it is impossible to destory the gate
Step 2
This is when the Trigger actually has the Unit in it
Notes
Notes are done by color
Sorry
Screenshots I took will not open but its pretty easy to understand
I may do Updates on the trigger is anyone suggest or I find a better way to do stuff
Comments Welcome
If you don't have something nice or constructive don't say anything at all
Download Guide
This isn't a tutorial it is in a way but only a type of trigger
Introduction
The Item Gate Opening Trigger is a basic way in many game such as Zerg Infestation, Parasite (Never played) and many more
Which a door is opened when a unit holds a item to open this gate
Here is my horrible diagram
Note: The WayGate is the normal Iron Gate but couldn't find one so I just posted a way Gate
Step 1
Make sure your Gates can not be damaged
Which in your map may have more then 1 gate but my map has a gate in the middle of nowhere so I only have 1.
Code:
Gate Invulnerable
Events
Map initialization
Conditions
Actions
Destructible - Make Iron Gate (Vertical) 0000 <gen> Invulnerable
This way it is impossible to destory the gate
Step 2
This is when the Trigger actually has the Unit in it
Code:
Untitled Trigger 001
Events
Unit - A unit enters Region 000 <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item carried by (Triggering unit) in [COLOR="Red"]slot 1[/COLOR])) [B]Equal to [/B][COLOR="Blue"]Moon Key[/COLOR]
Then - Actions
Destructible - Open Iron Gate (Vertical) 0000 <gen>
Wait 10.00 seconds
Destructible - Close Iron Gate (Vertical) 0000 <gen>
Else - Actions
[COLOR="green"]Do nothing[/COLOR]
Notes
Notes are done by color
1. This maybe a probelm in the future which I am going to try to rewrite but couldn't find it (maybe wasn't trying very hard)
but to avoid this from not working make sure that the Item can't be droped so it can't move slots
2. You can change the Item to w/e you want
3. You can leave it blank acording to Ace but Idk I think its better if you put the Do Nothing but you may do w/e you want
Sorry
Screenshots I took will not open but its pretty easy to understand
I may do Updates on the trigger is anyone suggest or I find a better way to do stuff
Comments Welcome
If you don't have something nice or constructive don't say anything at all
Download Guide