- Joined
- Oct 18, 2008
- Messages
- 100
So I am creating an rpg with custom spells.
This is holy light that benefits from intelligence.
Al tough there is a problem. It only heals 67 while i setted the flat healing bonus to 100 and the unit has 32 intelect.
Some1 sees the problem in the script?
The damage dealth. on an undead is 132, which should actualy be less.
This is holy light that benefits from intelligence.
Al tough there is a problem. It only heals 67 while i setted the flat healing bonus to 100 and the unit has 32 intelect.
Some1 sees the problem in the script?
The damage dealth. on an undead is 132, which should actualy be less.
-
HolyLight
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to (==) Holy Light
-
Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Multiple ConditionsOr - Any (Conditions) are true
-
Conditions
- ((Owner of (Target unit of ability being cast)) is an ally of (Owner of (Triggering unit))) Equal to (==) True
- (Owner of (Target unit of ability being cast)) Equal to (==) (Owner of (Triggering unit))
-
Conditions
-
Multiple ConditionsOr - Any (Conditions) are true
-
Then - Actions
- Set FlatHeal = 100
- Set HealingDone = ((Intelligence of (Triggering unit) (Include bonuses)) + FlatHeal)
- Set HealingDone = (HealingDone x -1)
- Set Heal = True
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Real(HealingDone)) damage of attack type Spells and damage type Normal
-
Else - Actions
- Set FlatHeal = 50
- Set DamageDone = ((FlatHeal + (Intelligence of (Triggering unit) (Include bonuses))) + (Intelligence of (Triggering unit) (Include bonuses)))
- Set Ability = True
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Real(DamageDone)) damage of attack type Spells and damage type Normal
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events