- Joined
- Jun 30, 2006
- Messages
- 24
i want to make a spell called divine intelligence and its like this ..
Code:
Events
Unit - Spell Tester 0000 <gen> Begins casting an ability
Conditions
(Ability being cast) Equal to Divine Intelligence
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Greater than or equal to 1
Then - Actions
Hero - Modify Intelligence of (Triggering unit): Add 15
Wait 15.00 seconds
Hero - Modify Intelligence of (Triggering unit): Subtract 15
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Greater than or equal to 3
Then - Actions
Hero - Modify Intelligence of (Triggering unit): Add 20
Wait 20.00 seconds
Hero - Modify Intelligence of (Triggering unit): Subtract 20
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Greater than or equal to 6
Then - Actions
Hero - Modify Intelligence of (Triggering unit): Add 25
Wait 25.00 seconds
Hero - Modify Intelligence of (Triggering unit): Subtract 25
Else - Actions
Do nothing
but when i use it the user of the spell gets the intelligence permanently and i dont know why !!!
and i dont know if possible but if it is what i would like to do is to make the effect of the spell depending on its level and not the level of the hero !!
plz help me
Mocreiazul