- Joined
- Oct 30, 2007
- Messages
- 91
well i made this ability but it only does it once, can any one tell me why?
illusion lvl
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to [Z] Shed Skin
Actions
Set illusionlvl = (illusionlvl + 1)
Set illusionhero = (Learning Hero)
illusion attack
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacked unit)) Equal to Mesmyr
Actions
Set illusionchance = (Random integer number between 1 and 100)
illusion attacked
Events
Unit - A unit Is attacked
Conditions
And - All (Conditions) are true
Conditions
illusionlvl Equal to 1
(Unit-type of (Attacked unit)) Equal to Mesmyr
Or - Any (Conditions) are true
Conditions
illusionchance Equal to 1
illusionchance Equal to 2
illusionchance Equal to 3
illusionchance Equal to 4
Actions
Unit - Create 1 Peasant for Player 1 (Red) at (Position of illusionhero) facing Default building facing degrees
Set illusiondummy = (Last created unit)
Hero - Create Illusion shed skin and give it to illusiondummy
Set illusionitem = (Last created item)
Hero - Order illusiondummy to use illusionitem on illusionhero
Unit - Add a 1.00 second Generic expiration timer to illusiondummy
illusion lvl
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to [Z] Shed Skin
Actions
Set illusionlvl = (illusionlvl + 1)
Set illusionhero = (Learning Hero)
illusion attack
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacked unit)) Equal to Mesmyr
Actions
Set illusionchance = (Random integer number between 1 and 100)
illusion attacked
Events
Unit - A unit Is attacked
Conditions
And - All (Conditions) are true
Conditions
illusionlvl Equal to 1
(Unit-type of (Attacked unit)) Equal to Mesmyr
Or - Any (Conditions) are true
Conditions
illusionchance Equal to 1
illusionchance Equal to 2
illusionchance Equal to 3
illusionchance Equal to 4
Actions
Unit - Create 1 Peasant for Player 1 (Red) at (Position of illusionhero) facing Default building facing degrees
Set illusiondummy = (Last created unit)
Hero - Create Illusion shed skin and give it to illusiondummy
Set illusionitem = (Last created item)
Hero - Order illusiondummy to use illusionitem on illusionhero
Unit - Add a 1.00 second Generic expiration timer to illusiondummy