Necrach
You can change this now in User CP.
- Reaction score
- 62
I am making a trigger bound to a skill. It is supposed to work like this: After using the spell at an enemy, he starts attacking a nearby friend (if there is any, otherwise the spell is wasted.) He should do so until ordered a new order, eg the spell will be effective against players that doesn't notice the effect (and against neutral hostile units.)
I made the spell out of some simple skill, think it was either Ensnare or Cripple. The range of the spell is 99999, as you should be able to use it on a unit anywhere on the map.
And here is the trigger (the spell is named Turncoat)
EVENTS
Unit - A unit begins casting an ability
CONDITIONS
(Ability being cast) Equal to Turncoat
ACTIONS
Special effect (doesn't matter)
Unit - Order (Target unit of ability being cast) to Attack (Random unit from (Units within 900 of (Target point of ability being cast) matching (((Matching unit) is in (Units owned by (Owner of (Target unit of ability being cast)))) Equal to True)))
And now here is the problem: Sometimes the spell doesn't hae any effect at all even if there is friendly units nearby the target (the effect is still shown) I suppose it has something to do with the "Random unit from unit group", but how can I do this otherwise?
And I haven't tested the spell in many ways yet, so if you think there will be more bugs in it, please tell me.
I made the spell out of some simple skill, think it was either Ensnare or Cripple. The range of the spell is 99999, as you should be able to use it on a unit anywhere on the map.
And here is the trigger (the spell is named Turncoat)
EVENTS
Unit - A unit begins casting an ability
CONDITIONS
(Ability being cast) Equal to Turncoat
ACTIONS
Special effect (doesn't matter)
Unit - Order (Target unit of ability being cast) to Attack (Random unit from (Units within 900 of (Target point of ability being cast) matching (((Matching unit) is in (Units owned by (Owner of (Target unit of ability being cast)))) Equal to True)))
And now here is the problem: Sometimes the spell doesn't hae any effect at all even if there is friendly units nearby the target (the effect is still shown) I suppose it has something to do with the "Random unit from unit group", but how can I do this otherwise?
And I haven't tested the spell in many ways yet, so if you think there will be more bugs in it, please tell me.