refl3ction
New Member
in my game i have spells that sacrafice health before the ability is used... the percent sacraficed depends on the power of the spell for instance one spell requires a sacrafice of 50% of the caster's health to deal 300 damage... in testing these abilities the caster does not lose any health but dies so ill post my trigger up and see if ne1 can help out
heres one:
and heres another:
any ideas?
heres one:
Code:
Oblivion
????Events
????????Unit - A unit Begins casting an ability
????Conditions
????Actions
????????If (All Conditions are True) then do (Then Actions) else do (Else Actions)
????????????If - Conditions
????????????????(Ability being cast) Equal to Oblivion (2)
????????????Then - Actions
????????????????Unit - Set life of (Summoning unit) to ((Life of (Summoning unit)) - 50.00)%
????????????Else - Actions
????????????????Do nothing
and heres another:
Code:
Lament
????Events
????????Unit - A unit Spawns a summoned unit
????Conditions
????Actions
????????If (All Conditions are True) then do (Then Actions) else do (Else Actions)
????????????If - Conditions
????????????????(Unit-type of (Summoned unit)) Equal to Lamenting Elemental (Level 3)
????????????Then - Actions
????????????????Unit - Set life of (Summoning unit) to ((Life of (Summoning unit)) - 20.00)%
????????????Else - Actions
????????????????Do nothing
????????If (All Conditions are True) then do (Then Actions) else do (Else Actions)
????????????If - Conditions
????????????????((Summoned unit) is dead) Equal to True
????????????Then - Actions
????????????????Unit - Set life of (Summoning unit) to ((Life of (Summoning unit)) + 20.00)%
????????????Else - Actions
????????????????Do nothing
any ideas?