I'm fairly new to WC3 Map Editor and I'm trying to make a passive spell.
Currently I'm using the Brillance Aura as the spell base.
The spell should replenish nearby (800 radius) allied unit's mana by a certain amount. This amount is determined by the level of the spell that the caster has.
Also, the spell should be MUI but I'm still not familiar with that.
Currently theres also a problem with my spell, its not triggering AT ALL and I have no clue why.
I've tried multiple ways to debug the problem(from changing the Event to "finish casting ability" etc... to removing all conditions) but to no avail.
If anyone can help me debug or spot an error with my GUI trigger it would be greatly appreciated =)
Also I have a few questions about triggers:
1 - Say I have a trigger which Creates a special effect when a spell is cast and destroys it when the spell has finished casting. What would happen if 2 units fulfilled the event and condition of the trigger one second after the other?
2 - Would 2 Instances of the same trigger be created or would it be overwritten?
3 - Is it possible to declare local variables in a trigger itself rather then Set a variable up? (I would like to remove the use of arrays or Global Triggers from my triggers and still make it MUI friendly)
4 - Is it possible to do all this without Jass scripting?
Once again any help at all would be greatly appreciated thanks!
Currently I'm using the Brillance Aura as the spell base.
The spell should replenish nearby (800 radius) allied unit's mana by a certain amount. This amount is determined by the level of the spell that the caster has.
Also, the spell should be MUI but I'm still not familiar with that.
Currently theres also a problem with my spell, its not triggering AT ALL and I have no clue why.
I've tried multiple ways to debug the problem(from changing the Event to "finish casting ability" etc... to removing all conditions) but to no avail.
If anyone can help me debug or spot an error with my GUI trigger it would be greatly appreciated =)
-
Evanescence of Mana
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- ((Triggering unit) has buff Evanescence of Mana ) Equal to True
-
Actions
-
Unit Group - Pick every unit in (Units within 800.00 of (Position of (Triggering unit)) matching (((Picked unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
-
Loop - Actions
- Wait 0.01 seconds
- Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\NightElf\Tranquility\TranquilityTarget.mdl
- Wait 0.01 seconds
- Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + ((Real((Level of Evanescence of Mana (Cleric) for (Triggering unit)))) x 25.00))
- Special Effect - Destroy (Last created special effect)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 800.00 of (Position of (Triggering unit)) matching (((Picked unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
-
Events
Also I have a few questions about triggers:
1 - Say I have a trigger which Creates a special effect when a spell is cast and destroys it when the spell has finished casting. What would happen if 2 units fulfilled the event and condition of the trigger one second after the other?
2 - Would 2 Instances of the same trigger be created or would it be overwritten?
3 - Is it possible to declare local variables in a trigger itself rather then Set a variable up? (I would like to remove the use of arrays or Global Triggers from my triggers and still make it MUI friendly)
4 - Is it possible to do all this without Jass scripting?
Once again any help at all would be greatly appreciated thanks!