I created an item that is supposed to move the targeted unit to the hero using the item and the targeted unit is slowed for a time (Which the item uses the cripple ability for). Unfortunately the target is not moved to the caster, please let me know what I did wrong! Thanks! (Also this is my first post and I dont know how to get the code from editor to here so I am typing it... Sorry!
The item is called Staff of Domination
"Move Slow (staff of Domination)" is the renamed Cripple ability for the item slow
The variables are:
staff_of_domo_move_cast_select is a unit variable
staff_of_domo_move_targ_select is a unit variable
staff_of_domo_move_caster_p is a point variable
staff_of_domo_move_targeted_p is a point variable
The Trigger that I have that doesn't work yet is:
________________________________________________
Events-
Unit- A unit Starts the effect of an ability
Conditions-
(Ability being cast) Equal to Move Slow
Actions-
Set staff_of_domo_move_cast_select = (Triggering unit)
Set staff_of_domo_move_targ_select = (Targeted unit)
Set staff_of_domo_move_caster_p = (Position of (triggering unit))
Set staff_of_domo_move_targ_p = (Position of (Targeted unit))
Unit - Move staff_of_domo_move_cast_select instantly to staff_of_domo_move_caster_p. facing staff_of_domo_move_caster_p
Custom script: call RemoveLocation(udg_staff_of_domo_move_cast_select)
Custom script: RemoveLocation(udg_staff_of_domo_move_targ_select)
Custom script: RemoveLocation(udg_staff_of_domo_move_caster_p
Custom script: RemoveLocation(udg_staff_of_domo_move_targeted_p)
________________________________________________
The item is called Staff of Domination
"Move Slow (staff of Domination)" is the renamed Cripple ability for the item slow
The variables are:
staff_of_domo_move_cast_select is a unit variable
staff_of_domo_move_targ_select is a unit variable
staff_of_domo_move_caster_p is a point variable
staff_of_domo_move_targeted_p is a point variable
The Trigger that I have that doesn't work yet is:
________________________________________________
Events-
Unit- A unit Starts the effect of an ability
Conditions-
(Ability being cast) Equal to Move Slow
Actions-
Set staff_of_domo_move_cast_select = (Triggering unit)
Set staff_of_domo_move_targ_select = (Targeted unit)
Set staff_of_domo_move_caster_p = (Position of (triggering unit))
Set staff_of_domo_move_targ_p = (Position of (Targeted unit))
Unit - Move staff_of_domo_move_cast_select instantly to staff_of_domo_move_caster_p. facing staff_of_domo_move_caster_p
Custom script: call RemoveLocation(udg_staff_of_domo_move_cast_select)
Custom script: RemoveLocation(udg_staff_of_domo_move_targ_select)
Custom script: RemoveLocation(udg_staff_of_domo_move_caster_p
Custom script: RemoveLocation(udg_staff_of_domo_move_targeted_p)
________________________________________________