- Joined
- Mar 16, 2008
- Messages
- 955
There are 4 items that create portals to "old god" boss rooms. The portals are added to the array'ed unit group so all portals to that boss room can be destroyed after the boss dies, which is done in a separate trigger not posted here.
1) Don't want it to leak
2) I want to keep the 3 sec pause between using the item and activating the portal so the construction animation can play
Any suggestions on using these?
1) Don't want it to leak
2) I want to keep the 3 sec pause between using the item and activating the portal so the construction animation can play
Any suggestions on using these?
-
Rune Portals Pt 1
-
Events
-
Unit - A unit Uses an item
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to Old God Rune: C'thuun
-
(Item-type of (Item being manipulated)) Equal to Old God Rune: Yogg-saron
-
(Item-type of (Item being manipulated)) Equal to Old God Rune: N'zoth
-
(Item-type of (Item being manipulated)) Equal to Old God Rune: Melbu
-
-
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Old God Rune: C'thuun
-
-
Then - Actions
-
Set VariableSet Rune_Portal = (Units owned by (Owner of (Hero manipulating item)) of type Portal to C'thuun's Prison)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Old God Rune: Yogg-saron
-
-
Then - Actions
-
Set VariableSet Rune_Portal = (Units owned by (Owner of (Hero manipulating item)) of type Portal to Yogg-Saron's Prison)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Old God Rune: N'zoth
-
-
Then - Actions
-
Set VariableSet Rune_Portal = (Units owned by (Owner of (Hero manipulating item)) of type Portal to N'zoth's Prison)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Old God Rune: Melbu
-
-
Then - Actions
-
Set VariableSet Rune_Portal = (Units owned by (Owner of (Hero manipulating item)) of type Portal to Melbu's Prison)
-
-
Else - Actions
-
-
Countdown Timer - Start old_god_port_timer as a One-shot timer that will expire in 3.00 seconds
-
-
-
Rune Portals Pt 2
-
Events
-
Time - old_god_port_timer expires
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in Rune_Portal and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Portal to C'thuun's Prison
-
-
Then - Actions
-
Unit Group - Remove (Picked unit) from Rune_Portal.
-
Unit Group - Add (Picked unit) to Rune_Portals_Unt_Grp[1]
-
Neutral Building - Set (Picked unit) destination to (old_god_entry_pt_var[1] offset by (0.00, 0.00))
-
Neutral Building - Enable (Picked unit)
-
Unit - Change ownership of (Picked unit) to Neutral Passive and Retain color
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Portal to Yogg-Saron's Prison
-
-
Then - Actions
-
Unit Group - Remove (Picked unit) from Rune_Portal.
-
Unit Group - Add (Picked unit) to Rune_Portals_Unt_Grp[2]
-
Neutral Building - Set (Picked unit) destination to (old_god_entry_pt_var[2] offset by (0.00, 0.00))
-
Neutral Building - Enable (Picked unit)
-
Unit - Change ownership of (Picked unit) to Neutral Passive and Retain color
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Portal to N'zoth's Prison
-
-
Then - Actions
-
Unit Group - Remove (Picked unit) from Rune_Portal.
-
Unit Group - Add (Picked unit) to Rune_Portals_Unt_Grp[3]
-
Neutral Building - Set (Picked unit) destination to (old_god_entry_pt_var[3] offset by (0.00, 0.00))
-
Neutral Building - Enable (Picked unit)
-
Unit - Change ownership of (Picked unit) to Neutral Passive and Retain color
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Portal to Melbu's Prison
-
-
Then - Actions
-
Unit Group - Remove (Picked unit) from Rune_Portal.
-
Unit Group - Add (Picked unit) to Rune_Portals_Unt_Grp[4]
-
Neutral Building - Set (Picked unit) destination to (old_god_entry_pt_var[4] offset by (0.00, 0.00))
-
Neutral Building - Enable (Picked unit)
-
Unit - Change ownership of (Picked unit) to Neutral Passive and Retain color
-
-
Else - Actions
-
-
-
-
-