HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Weird Problem

06-19-2004, 09:16 PM#1
Milkman
I'm having this little problem... See, i'm complementing this little spell i have with a trigger:
Events
Unit - A unit Starts the effect of an ability

Conditions
(Ability being cast) Equal to (==) Enrage

Actions
Set EnragedUnit = (Casting unit)
Trigger - Turn on Enrage stop <gen>



Enrage stop
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit - Set mana of EnragedUnit to ((Mana of EnragedUnit) - 10.00)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Mana of EnragedUnit) Less than or equal to (<=) 10.00
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions

For some reason it wont recognize casting unit as enraged unit but when i was debugging it and had mana of casting unit = mana of casting unit - 7 and then i recgonized it. But i don't want to have 546456 waits in my trigger so...

Does anyone have a solution, why wont they recognize enraged unit as casting unit? I have tried other events then begins the effect so that's not the problem.
06-20-2004, 03:06 AM#2
linkmaster23
I have a suggestion before I make the map for you. Try putting that IF/THEN/ELSE after the -10 mana. Think about it, what if the units has 8 mana? It will subtract 10 mana, leaving it a -2, supposedly. So to go around this, detect if the unit has more than 10 mana, BEFORE nuking it. Otherwise dispel the Enrage.
06-20-2004, 05:17 AM#3
th15
Some abilities don't have "starts the effect of...". Easier to just use "finishes casting"