- Joined
- Jan 12, 2014
- Messages
- 59
Hey;
I was trying to make events like "A unit comes within range of UNIT" but i couldn't choose a variable.
So i created triggers with "time elapsed 0.01s" and put this :
Trigger - Add to JavelinPickUp1 <gen> the event (Unit - A unit comes within 350.00 of JavelinWardArray[1])
However, it doesn't seem to work. The JavelinPickUp1 trigger doesn't ... well trigger... I checked the JavelinWard unit with a Special effect when i type "1" in the chat : this is the right one, no doubt, and the editor CAN detect it.
I also tryed to change the unit, instead of JaveWardArray i picked a random unit on the map, and JavelinPickUp1 triggered !!!
Everything seems fine but i can't work i don't know why.
is it a bug ?
____
In a nutshell i want to have a unit throwing a javelin somewhere. I create a unit at this point, and when the Hero go near it, he "picks it up" and something is triggered (Cooldown reduction).
But i need this to work for multiple "awaiting" javelin in the ground at the same time. And the best is if enemy Heroes of the same type can pick up MY javelin.
I tryed to give the javelin an automatic spell without effect which target allies, so when someone is hit by the AI, i check if it's the hero, if yes > actions. But i couldn't find a spell without drawbacks. The heal needs the hero to be damaged, bloodlust to be in battle, same for enemy spells. Moreover, enemy spells make the unit run away AND invulnerable units don't want to cast any spell.
I was trying to make events like "A unit comes within range of UNIT" but i couldn't choose a variable.
So i created triggers with "time elapsed 0.01s" and put this :
Trigger - Add to JavelinPickUp1 <gen> the event (Unit - A unit comes within 350.00 of JavelinWardArray[1])
However, it doesn't seem to work. The JavelinPickUp1 trigger doesn't ... well trigger... I checked the JavelinWard unit with a Special effect when i type "1" in the chat : this is the right one, no doubt, and the editor CAN detect it.
I also tryed to change the unit, instead of JaveWardArray i picked a random unit on the map, and JavelinPickUp1 triggered !!!
Everything seems fine but i can't work i don't know why.
is it a bug ?
____
In a nutshell i want to have a unit throwing a javelin somewhere. I create a unit at this point, and when the Hero go near it, he "picks it up" and something is triggered (Cooldown reduction).
But i need this to work for multiple "awaiting" javelin in the ground at the same time. And the best is if enemy Heroes of the same type can pick up MY javelin.
I tryed to give the javelin an automatic spell without effect which target allies, so when someone is hit by the AI, i check if it's the hero, if yes > actions. But i couldn't find a spell without drawbacks. The heal needs the hero to be damaged, bloodlust to be in battle, same for enemy spells. Moreover, enemy spells make the unit run away AND invulnerable units don't want to cast any spell.