- Joined
- Nov 20, 2007
- Messages
- 660
Hello guys, I'm making a arena like map and I need some help.
The problem is that I want heroes to be able to cast spells only across the arena. So when they cast a spell out of arena (let's say blink) I want to intrerupt them and show a message to the player ("Invalid Zone" or something )
That's what I tried and it works good enough
Can anyone help ?
The problem is that I want heroes to be able to cast spells only across the arena. So when they cast a spell out of arena (let's say blink) I want to intrerupt them and show a message to the player ("Invalid Zone" or something )
That's what I tried and it works good enough
-
Cast DeadZones
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Level of Dummy (Misc) for (Triggering unit)) Equal to 0
-
Actions
- Set Game_LeakPoint = (Target point of ability being cast)
- Unit - Create 1 Dummy (0) for Neutral Hostile at Game_LeakPoint facing Default building facing degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Arena Region <gen> contains (Last created unit)) Not equal to True
-
Then - Actions
- Unit - Order (Triggering unit) to Stop
- Else - Actions
-
If - Conditions
-
Events
Can anyone help ?