Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Come and join our gamer community by
registering for free here
Other Gaming Forum
PC games
WarCraft III Modding
sacraficing health spells
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="refl3ction" data-source="post: 122857" data-attributes="member: 6036"><p>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</p><p></p><p>heres one:</p><p>[code]Oblivion</p><p>????Events</p><p>????????Unit - A unit Begins casting an ability</p><p>????Conditions</p><p>????Actions</p><p>????????If (All Conditions are True) then do (Then Actions) else do (Else Actions)</p><p>????????????If - Conditions</p><p>????????????????(Ability being cast) Equal to Oblivion (2)</p><p>????????????Then - Actions</p><p>????????????????Unit - Set life of (Summoning unit) to ((Life of (Summoning unit)) - 50.00)%</p><p>????????????Else - Actions</p><p>????????????????Do nothing</p><p>[/code]</p><p></p><p>and heres another:</p><p>[code]Lament</p><p>????Events</p><p>????????Unit - A unit Spawns a summoned unit</p><p>????Conditions</p><p>????Actions</p><p>????????If (All Conditions are True) then do (Then Actions) else do (Else Actions)</p><p>????????????If - Conditions</p><p>????????????????(Unit-type of (Summoned unit)) Equal to Lamenting Elemental (Level 3)</p><p>????????????Then - Actions</p><p>????????????????Unit - Set life of (Summoning unit) to ((Life of (Summoning unit)) - 20.00)%</p><p>????????????Else - Actions</p><p>????????????????Do nothing</p><p>????????If (All Conditions are True) then do (Then Actions) else do (Else Actions)</p><p>????????????If - Conditions</p><p>????????????????((Summoned unit) is dead) Equal to True</p><p>????????????Then - Actions</p><p>????????????????Unit - Set life of (Summoning unit) to ((Life of (Summoning unit)) + 20.00)%</p><p>????????????Else - Actions</p><p>????????????????Do nothing</p><p>[/code]</p><p></p><p>any ideas?</p></blockquote><p></p>
[QUOTE="refl3ction, post: 122857, member: 6036"] 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: [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 [/code] 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 [/code] any ideas? [/QUOTE]
Verification
Post reply
Other Gaming Forum
PC games
WarCraft III Modding
sacraficing health spells
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top