HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger spell HELP NOW... plz

07-26-2004, 07:17 PM#1
Revengeof_llama
I need some help with this trigger spell i'm working on... Ok here's the stuff i got so far, i'll explain what i want it to do after.

Events
Unit- a unit starts the effect of an ability
Conditions
(ability being cast) equal to summoning ritual
Actions
Set PosionMagus = (casting unit)
Special effect - create a special effact at (position of (triggering unit)) using abilities/spells/undead/deathcoil/deathcoilspecialart.mdl
Enviroment- create a 5.00 second depression ripple deformation at (position of ( triggering unit)) with starting radius 200.00, ending radius 1000.00, and depth 100.00, using 1.00 second ripples spaced 200.00 apart
Special effect - create a special effect attatched to the overhead of (triggering unit)using abilities/spells/undead/darksummoning/darksumoningmissle.mdl
unit- set life of (triggering unit) to 100.00 %
Unit group- pick every unit in (unit's within 1000.00 of (position of PosionMagus)) and do (actions)
Loop - Actions
If (all conditions are true) then do (then actions) else do (else actions)
If conditions
((triggering unit) is a hero) equal to false
Then -actions
special effect - create a special effect at (position of (triggering unit)) using abilities/spells/human/manaflare/manaflareboltimpact.mdl
Unit- Kill (triggering unit)
Else actions
special effect - create a special effect at (position of (triggering unit)) using abilities\spells\human\manaflare\manaflareboltimpa ct.mdl
Unit - set life of (triggering unit) to 20.00 %
Wiat 5.00 seconds
special effect - destroy (lastcreated special effect)


ok now what i want it to do is.... First of all heal the hero that's casting it.... then... Kill all enemy units around the casting unit for 1000 range. then if a hero is in the range of the spell i want it to set the enemy hero's life to 20%. I'm pretty sure i'm doing htis wrong lol so plz help
07-26-2004, 07:24 PM#2
Rafael Br
To reffer a unit picked on a Unit group-Pick every units... action, use picked unit, not triggering unit.That is the problem.
07-26-2004, 07:27 PM#3
Revengeof_llama
Quote:
Originally Posted by Rafael Br
To reffer a unit picked on a Unit group-Pick every units... action, use picked unit, not triggering unit.That is the problem.

Ok i'll try that thanks!


should i use teh variables?
07-26-2004, 07:42 PM#4
Rafael Br
Wich variables?
07-26-2004, 07:52 PM#5
randyM4A1
Quote:
Originally Posted by Rafael Br
To reffer a unit picked on a Unit group-Pick every units... action, use picked unit, not triggering unit.That is the problem.

Why dont we use casting-units or make a variables for that, because picked-unit and triggering-unit doesnt exist ? try abillities being cast instead,,,,
07-26-2004, 08:04 PM#6
Revengeof_llama
Well i think i'm doing something wrong..... could u tell me exactly what to change?

EDIT EDIT EDIT


I got it to kill the units... but it kills my hero too...
07-26-2004, 08:59 PM#7
Anitarf
Unit group- pick every unit in (unit's within 1000.00 of (position of PosionMagus)) and do (actions)

Instead "units within range", use "units within range matching condition". Like this:

Unit group- pick every unit in (unit's within 1000.00 of (position of PosionMagus) matching ((owner of (matching unit)) is an enemy of (owner of (casting unit)) equal to true (this is a boolean comparison) )) and do (actions)

Then, under loop-actions, put this:

If (all conditions are true) then do (then actions) else do (else actions)
If conditions
((picked unit) is a hero) equal to false
Then -actions
special effect - create a special effect at (position of (picked unit)) using abilities/spells/human/manaflare/manaflareboltimpact.mdl
destroy last created special effect
Unit- Kill (picked unit)
Else actions
special effect - create a special effect at (position of (picked unit)) using abilities\spells\human\manaflare\manaflareboltimpa ct.mdl
destroy last created special effect
Unit - set life of (picked unit) to 20.00 % (please note, if the enemy hero is below 20% of his hp, this will heal him)

As you see, I put "destroy special effect" right after it is created, still, I think, this special effect will play out it's animation before it dissapears. (many models work that way, but not all) You should do the same with the special effects on the caster; either that, or set them to a variable, because otherwise you won't be able to destroy them later.

And may I say that this looks like a terribly unbalanced spell?
07-27-2004, 01:13 AM#8
Revengeof_llama
Yes, U may say so... But i don't know how to make it just do damage to the people in the area, so killing them is just easier. Thanks for help , i'll try that right now.




EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT


THANKS so much, But i think your right, maybe it hsouldn't 'kill' kill them... How can i make it do damage?
07-27-2004, 01:22 AM#9
Rafael Br
Only damage people in the area, thats easy, just make the normal spell done on the object editor, the one that fires this trigger, be a war stomp spell, just change it's damage to wherever you want and the stunt time to 0.01, then remove the part of the trigger that kills the units.
07-27-2004, 01:35 AM#10
Revengeof_llama
THANKS Man, U guys are the greatest!
07-27-2004, 06:04 AM#11
Anitarf
Since War stomp stuns units (even if you make it a very short time, it will still stop channeling), and I think there's no way to get rid of the ground shaking effect, I rather use Fan of Knives for pure damage AoE spells. Just set it's projectile art to nothing and it's almost like warstomp, except without the stun.