HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Gaining exp through trigger spell problem, help plz

12-03-2003, 08:51 AM#1
AZN-Enigma
Ok, I created a spell through triggering so when its cast I set life of target unit - X and put up a condition if Target unit is equal to dead add exp to my hero. It works fine for a single target put It wont work when I try it on a group of units. Cause this other spell I created cause damage to an area. Take a look:

Events
Unit - A unit Starts the effect of an ability


Conditions
(Ability being cast) Equal to Dragon Wing

Actions
Unit Group - Pick every unit in (Units within 250.00 of (Center of (Region centered at (Position of (Triggering unit)) with size (0.00, 0.00)))) and do (Actions)
Loop - Actions
If (((Owner of (Picked unit)) is an enemy of (Owner of (Triggering unit))) Equal to True) then do (If (DragonWingLevelRed Equal to 1) then do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + -60.00)) else do (Do nothing)) else do (Do nothing)
Wait 0.10 seconds
If (((Picked unit) is dead) Equal to True) then do (Hero - Add (Point-value of (Picked unit)) experience to (Triggering unit), Show level-up graphics) else do (Do nothing)
12-03-2003, 09:45 AM#2
Hivemind
Try changing the size of the region and removing the damage your base spell does.
12-03-2003, 10:14 AM#3
AZN-Enigma
my base spell is already at 0. I dont know what changing the region has to do with it but ill give it a shot.

no... doesn't work