NeuroToxin
New Member
- Reaction score
- 46
Hey guys im kinda new around here but I have a question
How would I get this spell
http://www.thehelper.net/forums/showthread.php?t=52527
or
How would I add it to my Prime Maiden? so all it does it come out of her and then snag the unit bring it to her and Done. At the moment when I cast it it just deletes her any idea why?
How would I get this spell
http://www.thehelper.net/forums/showthread.php?t=52527
or
Trigger:
- MeatHookCast
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Meat Hook
- Actions
- Set MeatHook_Snagged = False
- Set MeatHook_Caster = (Triggering unit)
- Set MeatHook_Loc[1] = (Position of MeatHook_Caster)
- Set MeatHook_Loc[3] = (Target point of ability being cast)
- Set MeatHook_Distance = (((Level of Meat Hook for MeatHook_Caster) x 200) + 200)
- Set MeatHook_Angle = (Integer((Angle from MeatHook_Loc[1] to MeatHook_Loc[3])))
- Set MeatHook_Offset = 0
- Set MeatHook_Number = 0
- Countdown Timer - Start MeatHook_Timer_1 as a One-shot timer that will expire in ((Real(MeatHook_Distance)) / 1000.00) seconds
- Set MeatHook_Timer_1 = (Last started timer)
- Trigger - Turn on CreateHooks <gen>
- Events
Trigger:
- CreateHooks
- Events
- Time - Every 0.04 seconds of game time
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- MeatHook_Snagged Equal to False
- Then - Actions
- Set MeatHook_Offset = (MeatHook_Offset + 40)
- Set MeatHook_Loc[2] = (MeatHook_Loc[1] offset by (Real(MeatHook_Offset)) towards (Real(MeatHook_Angle)) degrees)
- Set MeatHook_Number = (MeatHook_Number + 1)
- Set MeatHook_Dummy[MeatHook_Number] = (Last created unit)
- Set MeatHook_DummyLoc = (Position of MeatHook_Dummy[MeatHook_Number])
- Set MeatHook_Group[1] = (Units within 88.00 of MeatHook_DummyLoc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is A flying unit) Not equal to True) and ((((Matching unit) is dead) Not equal to True) and ((Matching unit) Not equal to MeatHook_C
- Set MeatHook_Group[2] = (Random 1 units from MeatHook_Group[1])
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in MeatHook_Group[2]) Greater than 0
- Then - Actions
- Set MeatHook_Snagged = True
- Unit Group - Pick every unit in MeatHook_Group[2] and do (Actions)
- Loop - Actions
- Set MeatHook_SnagUnit = (Picked unit)
- Unit - Turn collision for MeatHook_SnagUnit Off
- Unit - Cause MeatHook_Caster to damage MeatHook_SnagUnit, dealing ((Real((Level of Meat Hook for MeatHook_Caster))) x 100.00) damage of attack type Hero and damage type Normal
- Special Effect - Create a special effect attached to the chest of MeatHook_SnagUnit using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Pause MeatHook_SnagUnit
- Loop - Actions
- Trigger - Turn off (This trigger)
- Else - Actions
- If - Conditions
- Custom script: call RemoveLocation(udg_MeatHook_Loc[2])
- Custom script: call RemoveLocation(udg_MeatHook_DummyLoc)
- Custom script: call DestroyGroup(udg_MeatHook_Group[1])
- Custom script: call DestroyGroup(udg_MeatHook_Group[2])
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- RetractHookStart
- Events
- Time - MeatHook_Timer_1 expires
- Conditions
- Actions
- Trigger - Turn off CreateHooks <gen>
- Trigger - Turn on RetractHook <gen>
- Countdown Timer - Start MeatHook_Timer_2 as a One-shot timer that will expire in ((Real(MeatHook_Distance)) / 1000.00) seconds
- Set MeatHook_Timer_2 = (Last started timer)
- Set MeatHook_Number = (MeatHook_Number + 1)
- Events
Trigger:
- EndHook
- Events
- Time - MeatHook_Timer_2 expires
- Conditions
- Actions
- Unit - Turn collision for MeatHook_SnagUnit On
- Unit - Unpause MeatHook_SnagUnit
- Set MeatHook_SnagUnit = No unit
- Trigger - Turn off RetractHook <gen>
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- MeatHook_Snagged Equal to True
- Then - Actions
- Trigger - Turn on RetractHookStart <gen>
- Else - Actions
- If - Conditions
- Custom script: call RemoveLocation(udg_MeatHook_Loc[1])
- Custom script: call RemoveLocation(udg_MeatHook_Loc[3])
- Events
Trigger:
- RetractHookStart
- Events
- Time - MeatHook_Timer_1 expires
- Conditions
- Actions
- Trigger - Turn off CreateHooks <gen>
- Trigger - Turn on RetractHook <gen>
- Countdown Timer - Start MeatHook_Timer_2 as a One-shot timer that will expire in ((Real(MeatHook_Distance)) / 1000.00) seconds
- Set MeatHook_Timer_2 = (Last started timer)
- Set MeatHook_Number = (MeatHook_Number + 1)
- Events
How would I add it to my Prime Maiden? so all it does it come out of her and then snag the unit bring it to her and Done. At the moment when I cast it it just deletes her any idea why?