- Joined
- Sep 24, 2007
- Messages
- 300
General trigger question and spell prevent
Is there a list of temporar variables and how long they last?
Example: How long (Triggering player) lasts? Does it delete after "Wait" action?
Do all those variables (triggering player, triggering unit, last created unit etc etc) delete after "wait" action?
-----------------------------------------------------------------------
EDIT: since I opened the topic, I will ask another question
How to prevent hero to cast a spell? Atm trigger looks like this:
All I need is some kind of silence or spell effect prevention in a specific rect.
Is there a list of temporar variables and how long they last?
Example: How long (Triggering player) lasts? Does it delete after "Wait" action?
Do all those variables (triggering player, triggering unit, last created unit etc etc) delete after "wait" action?
-----------------------------------------------------------------------
EDIT: since I opened the topic, I will ask another question
How to prevent hero to cast a spell? Atm trigger looks like this:
-
Base Invulnerable prevent spells
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in BaseFountain <gen>) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Casting unit) Equal to (Picked unit)
-
-
Then - Actions
-
Unit - Order (Picked unit) to move (Position of Fountain 0075 <gen>)
-
Wait 0.50 seconds
-
Unit - Order (Picked unit) to Stop
-
-
Else - Actions
-
-
-
-
-
All I need is some kind of silence or spell effect prevention in a specific rect.
Last edited: