| 11-27-2007, 02:06 AM | #2 |
((Level of Death for (Picked unit)) Equal to 1) And Unit - Add Death to (Picked unit) You're only adding the ability if it already has it? |
| 11-27-2007, 02:21 AM | #3 |
+rep for not laughing at me.....I guess thats what i guess for coding when I'm tired. I had changed the name of the ability several times, and i got mixed up >< Anyway, one more question. Is this spell MUI? I'm pretty sure that it is, just want to make sure. |
| 11-27-2007, 04:01 AM | #4 |
I don't see any waits, so it should be MUI. Unless a lot of players cast the spell at the same instance. (Probably impossible, but still) |
| 11-27-2007, 04:16 AM | #5 |
Yes, its MUI. Also, instead of using an If statement for each level, you can simply use a math formula: If the custom value > 90 - (10 * Level of Death for unit) then To find the 'Level of Death for unit' part, find 'Integer to Real' in the list of possible real values, to convert an integer value into real. |
| 11-27-2007, 07:38 AM | #6 |
You don't need two triggers either: Trigger: Reapers Scyte![]() Actions![]() ![]() Unit - Set the custom value of (Killing unit) to ((Custom value of (Killing unit)) + 1)![]() ![]() If (All Conditions are True) then do (Then Actions) else do (Else Actions)![]() ![]() ![]() If - Conditions![]() ![]() ![]() ![]() ((Custom value of (Killing unit)) Greater than or equal to (90 - ((Level of (Death) for (Killing Unit)) x 10))) and ((Level of Death for (Killing unit)) Greater than to 0)![]() ![]() ![]() Then - Actions![]() ![]() ![]() ![]() Unit - Add Reaper's Scythe to (Killing unit)![]() ![]() ![]() ![]() Unit - Set the custom value of (Killing unit) to 0![]() ![]() ![]() Else - Actions |
