• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

someone please help with this GUI?

Status
Not open for further replies.
Need help figuring out the trigger to increase a unit's max health

I hope someone reads this cause I haven't had any help for any of my posts and it's been getting me angry. Second, can someone please help with the GUI?


function Trig_jass_attempt_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01F' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A01F', GetSpellAbilityUnit()) == 1 ) ) then
return false
endif
return true
then (take(CastingUnit(+500Hitpoints(
endfunction

function Trig_jass_attempt_Actions takes nothing returns nothing
endfunction

//===========================================================================
function InitTrig_jass_attempt takes nothing returns nothing
set gg_trg_jass_attempt = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_jass_attempt, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_jass_attempt, Condition( function Trig_jass_attempt_Conditions ) )
call TriggerAddAction( gg_trg_jass_attempt, function Trig_jass_attempt_Actions )
endfunction
I'm not very good at any coding and any help would be appreciated. Even if your really just guessing. I want to add 500 health (800 for level 2) to my unit for 20 seconds when the 'war cry' ability is used thx in adv advance.
UPDATE: apparently it's possible to increase a unit's max health with a dummy. Not exactly sure how to this though any tips?
 
Last edited:
Status
Not open for further replies.
Back
Top