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="Undead_Lives" data-source="post: 122858" data-attributes="member: 5928"><p>My first advice would be to not use If Then Elses if they are not necessary.</p><p>For instane, in your first trigger, you don't need it. Just put the condition of If in Conditions, and the Actions of Then in Actions. If the Condition is not met, the trigger won't run at all.</p><p>Now the reason your triggers aren't working is because you're using "Summoning Unit" when the in the Events you specified that it was the start of an ability.</p><p>So, instead you need to use "Casting Unit"</p><p>Also, your first trigger only sets the unit's health to half. That's it. It needs the other actions.</p><p>Finally, your action is wrong. You need to specify the PERCENTAGE health, not the actual health value. So, change your trigger to something like this:</p><p>[code]Untitled Trigger 001</p><p>????Events</p><p>????????Unit - A unit Begins casting an ability</p><p>????Conditions</p><p>????Actions</p><p>????????Unit - Set life of (Casting unit) to ((Percentage life of (Casting Unit)) - 50.00)%</p><p>[/code]</p></blockquote><p></p>
[QUOTE="Undead_Lives, post: 122858, member: 5928"] My first advice would be to not use If Then Elses if they are not necessary. For instane, in your first trigger, you don't need it. Just put the condition of If in Conditions, and the Actions of Then in Actions. If the Condition is not met, the trigger won't run at all. Now the reason your triggers aren't working is because you're using "Summoning Unit" when the in the Events you specified that it was the start of an ability. So, instead you need to use "Casting Unit" Also, your first trigger only sets the unit's health to half. That's it. It needs the other actions. Finally, your action is wrong. You need to specify the PERCENTAGE health, not the actual health value. So, change your trigger to something like this: [code]Untitled Trigger 001 ????Events ????????Unit - A unit Begins casting an ability ????Conditions ????Actions ????????Unit - Set life of (Casting unit) to ((Percentage life of (Casting Unit)) - 50.00)% [/code] [/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