HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Quick question about a triggered spell

02-05-2004, 02:15 AM#1
The_One
Ok, Im making a spell that casts lightning sheild on all theunits near the caster. What I have so far is this:

Unit - Create 1 Caster for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing 0.00 degrees
Set Lightnin_sheild_caster[0] = (Last created unit)
Unit Group - Pick every unit in (Units within 600.00 of (Position of (Triggering unit)) and do (Actions)
Loop - Actions
Unit - Order Lightnin_sheild_caster[0] to Orc Shaman - Lightning Shield (Picked unit)

When I run the ability it casts lightning sheild on 1 unit and thats all. If anyone knows whats wrong with the trigger i would really appreciate the help. Thanx in advanced.
02-05-2004, 02:18 AM#2
Eriond
I'm pretty sure it has something to do with the fact that spells don't cooldown instantly...

and this may souns stupid, but make sure the caster has lightning shield... I've done that a coupld times :D...
02-05-2004, 02:19 AM#3
linkmaster23
Could you post the whole trigger please?
02-05-2004, 02:23 AM#4
The_One
OK, the whole trigger is:
Untitled Trigger 003
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to (==) (Order(channel))
Actions
Unit - Create 1 Caster for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing 0.00 degrees
Set Lightnin_sheild_caster[0] = (Last created unit)
Unit Group - Pick every unit in (Units within 600.00 of (Position of (Triggering unit) and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Set Lightning_sheild_effect[0] = (Last created special effect)
Unit - Order Lightnin_sheild_caster[0] to Orc Shaman - Lightning Shield (Picked unit)
Special Effect - Destroy Lightning_sheild_effect[0]

I know that in the trigger the unit isnt being destroyed, thats just because i got this far and it isnt working so i didnt want to make it more complicated before i got this working. Also, I edited the orc shamans lightning shield spell so that it has no mana cost and no cooldown so I dont think that that is the problem.
02-05-2004, 02:26 AM#5
linkmaster23
Change triggering unit to ordered unit... then try it.
02-05-2004, 02:32 AM#6
The_One
Ok, my trigger now looks like this:
Untitled Trigger 003
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to (==) (Order(channel))
Actions
Unit - Create 1 Caster for (Owner of (Ordered unit)) at (Position of (Ordered unit)) facing 0.00 degrees
Set Lightnin_sheild_caster[0] = (Last created unit)
Unit Group - Pick every unit in (Units within 600.00 of (Position of (Ordered unit))) and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Set Lightning_sheild_effect[0] = (Last created special effect)
Unit - Order Lightnin_sheild_caster[0] to Orc Shaman - Lightning Shield (Picked unit)
Special Effect - Destroy Lightning_sheild_effect[0]

But it still only casts lightning sheild on one unit. Are there any other fields besides casting time, mana cost and cooldown that should be at 0 in the lightning sheild ability or is it a problem with my trigger?
02-05-2004, 02:39 AM#7
cangrejo
Have you double checked lightning shield's cooldown = 0 ?
02-05-2004, 02:40 AM#8
The_One
Ya, I already made it have no cooldown, mana cost or casting time
02-05-2004, 11:10 AM#9
Phobos
this could work but its kinda dodgy u could make 1 caster for each unit and make each 1 cast it on a diff unit...it might work but it'd be a bigger trigger
02-05-2004, 08:56 PM#10
Grater
I reccomend for the hidden caster use "Flying Sheep" and ensure that the cast point and cast backswing are set to 0. Not all units can spam spells limitlessly, the flying sheep is one that can.
02-06-2004, 03:07 AM#11
The_One
Ok, I ended up finishing the spell. I would like to thank all of you for your help and the final result I got is really cool (I added some really sick SFX). Anyways, if a mod wants, they can close this now