Ok, I have found the answer by looking spells w/ lightning effects.
The code is smt like this:
call MoveLightningEx(udg_Lightning, true, udg_SomeReal[1], udg_SomeReal[2], udg_SomeReal[3], udg_SomeReal[4], udg_SomeReal[5], udg_SomeRea[6])
I should add to D4RKG4ND0LF's rep ^^
Well, the title says it all. I need to create a lightning with a modifable heigh (Normal GUI function "Create lightning effect" does create a lightning, but that lightning is on ground and I hate it) and action to move that lightning. I read smt that it cannot be made w/e JASS.
+rep who...
but the action - issue unit order targeting an unit only shows concrete orders, and doesnt allow to use variables.
I tried to do this quite in JASS, but it simply stop the enemy caster.
Hello. I'm trying to create a spell.
It's a passive ability, which activates only when the Hero is targeted by a unit-target spell.
It should teleport an allied creep from nearby, and order the hostile caster to target the teleported creep.
So, here is the problem : I can't store an order...
Little problem... after much using of such trigger's functions like (Target point of issued order) will leak... first you should save the location of target point in variable, then create a unit and finally remove location.
I am creating a map. I have CURRENTLY about 10 hereos, each has max level of 45 and each has 5 spells (one 5-level ulty and others 10-level normal spells/skills). I use the way to create the unit at init, bacause lame PCs (like mine) would simply get crushed by casting spell w/ dummy or picking...
Use trigger with Begins casting ability event (after the effect is started, it's imposible to cancel by using stop order.) and condition with ability being cast to charm, as mentioned above. If the count for the Beasts[Player number of Caster's owner] is equals to 0 then do nothing, else issue...
Simply use negative values of the damage bonus.
If you can't use such, then go to Files>Preferences and in the first window it shows check the line with 'Allow using negative values in Object Editor'.
It will drop another window, just press OK.
I hope I helped :)
Well, im not good in such thing, but I think that magic ressistance should be timed trigger which every 0.04 seconds check for nearby enemies and add the ability made from runed bracer's ability with negative values as above.
And to make it limited range there should be two unit groups (Like...
Hero learns a passive ability. If spell is not in 'cooldown', there is an ally creep in 1000 AoE and enemy targets the <hero> as a target of unit-target spell, teleports the creep infront of the <hero> and causes the enemy target the teleported creep instead of the <hero>.
Is that clear enough?