HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Call of Crystal

03-30-2010, 06:00 AM#1
BuRnInSpartan
Ok so I made this spell that is intended to target all nearby neutral hostile enemies and not only put a special effect over their heads but damage them by 50 however the damage factor is not working. Anyone have any suggestions?

Trigger:
Call of Crystal
Collapse Events
Unit - A unit Begins channeling an ability
Collapse Conditions
(Ability being cast) Equal to Call of Crystal
Collapse Actions
Collapse Unit Group - Pick every unit in (Units within 600.00 of (Position of (Casting unit))) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Picked unit)) Equal to Neutral Hostile
Collapse Then - Actions
Unit Group - Add (Picked unit) to CoC
Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Items\SpellShieldAmulet\SpellShieldCaster.mdl
Wait 4.00 seconds
Unit - Set life of (Picked unit) to -50.00
Special Effect - Destroy (Last created special effect)
Else - Actions
03-30-2010, 06:05 AM#2
Fledermaus
1. You can't use Waits in a "Pick every unit in XXX"
2. You're actually setting the picked units life to -50, not dealing 50 damage to it. BIG difference.

Replace the Wait and Set life with this:
Trigger:
Unit - Cause (Triggering unit) to damage (Picked unit), dealing 50.00 damage of attack type Spells and damage type Universal
03-30-2010, 06:08 AM#3
BuRnInSpartan
excellent you're a life saver. oh and what do i replace wait with? i want the effect to last a bit to look cool.
03-30-2010, 06:12 AM#4
Veev
Well, you should never deal damage by setting a unit's life with a negative value. Also, you're setting their HP to -50, not subtracting 50 from it.

Creating special effects like that in succession will most likely lead to memory leaks... Can't tell at the moment, the GUI isn't registering. And, I think what you're doing is picking the first unit, waiting 4 seconds, dealing damage and then picking the second unit, waiting 4 seconds again... It's very likely that "Casting Unit" isn't being referenced correctly.

Also, you should really re-trigger this. What's the point of adding them to the "CoC" group?

EDIT: Argh. So slow.
03-30-2010, 06:17 AM#5
BuRnInSpartan
its working perfectly actually. everything is going great. all units in coc get the special effect and get damaged properly.
03-30-2010, 06:35 AM#6
Fledermaus
You replace the Wait with vJass. :p