First, hello everyone, though I come here from time to time, I'm still relatively new to the whole map making business, and just now created a forum account, hoping someone can help with this. Right, so, here it goes.
I'm trying to make a hero whose one ability will be a randomed evasion. Basically, you cast an ability, and it will set your evasion to a new value: from 1 to (ability level)*10.
I made two abilities for this, the Evasion Roll is the placeholder spell that does nothing, and Evasion (1-40) is a 40 level unit spell (I also tried setting it as a hero spell, no change).
Here's the trigger:
Random evasion
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Evasion Roll
Actions
Unit - Remove Evasion (1-40) from (Triggering unit)
Unit - Add Evasion (1-40) to (Triggering unit)
Unit - Set level of Evasion (1-40) for (Triggering unit) to (Random integer number between 1 and ((Level of Evasion Roll for (Triggering unit)) x 10))
Problem is simple: it does nothing. The roll is activated, spell completes and mana is wasted, but nothing is added. Any ideas?
Thanks in advance
I'm trying to make a hero whose one ability will be a randomed evasion. Basically, you cast an ability, and it will set your evasion to a new value: from 1 to (ability level)*10.
I made two abilities for this, the Evasion Roll is the placeholder spell that does nothing, and Evasion (1-40) is a 40 level unit spell (I also tried setting it as a hero spell, no change).
Here's the trigger:
Random evasion
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Evasion Roll
Actions
Unit - Remove Evasion (1-40) from (Triggering unit)
Unit - Add Evasion (1-40) to (Triggering unit)
Unit - Set level of Evasion (1-40) for (Triggering unit) to (Random integer number between 1 and ((Level of Evasion Roll for (Triggering unit)) x 10))
Problem is simple: it does nothing. The roll is activated, spell completes and mana is wasted, but nothing is added. Any ideas?
Thanks in advance