- Joined
- Feb 9, 2008
- Messages
- 63
im making a spell thats supposed to look like geomancers (a dota hero) earthbind spell
heres my trigger
Net Cast
1. does it still leak?
2. i wanna know the holes in trigger and how to improve it, hope you can advice me
3. tell me if i need to post the spell if you need more info
4. thanks in advance
heres my trigger
Net Cast
- Events
-
Net Cast
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Net
-
Actions
- Set NetCaster = (Triggering unit)
- Set NetDummy = Net Dummy
- Set NetCasterPoint = (Position of NetCaster)
- Set NetDummyPoint = (Target point of ability being cast)
- Unit - Create 1 NetDummy for (Owner of NetCaster) at NetCasterPoint facing NetCasterPoint
- Set Net = (Last created unit)
- Set NetDistance = 0.00
- Set NetSpeed = 30.00
- Trigger - Turn on Net Loop <gen>
-
Events
-
Net Loop
-
Events
- Time - Every 0.02 seconds of game time
- Conditions
-
Actions
- Set NetAngle = (Angle from NetCasterPoint to NetDummyPoint)
- Set NetDistance = (NetDistance + NetSpeed)
- Set NetPoint = (NetCasterPoint offset by NetDistance towards NetAngle degrees)
- Unit - Move Net instantly to NetPoint
- Set NetArea = (Units within 500.00 of (Position of Net) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of NetCaster)) Equal to True) and (((Matching unit) belo
-
Unit Group - Pick every unit in NetArea and do (Actions)
-
Loop - Actions
- Set Dummy = Net Dummy 2
- Unit - Create 1 Dummy for (Owner of NetCaster) at (Position of (Picked unit)) facing (Position of (Picked unit))
- Set Dummy2 = (Last created unit)
- Unit - Add Test to Dummy2
- Unit - Order Dummy2 to Orc Raider - Ensnare (Picked unit)
- Unit - Add a 1.00 second Generic expiration timer to Dummy2
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- NetDistance Greater than or equal to 500.00
-
Then - Actions
- Unit - Remove Net from the game
- Custom script: call DestroyGroup(udg_NetArea)
- Custom script: call RemoveLocation(udg_NetPoint)
- Custom script: call RemoveLocation(udg_NetCasterPoint)
- Custom script: call RemoveLocation(udg_NetDummyPoint)
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
Events
1. does it still leak?
2. i wanna know the holes in trigger and how to improve it, hope you can advice me
3. tell me if i need to post the spell if you need more info
4. thanks in advance