• 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.

Activaitable Passive Skill {Making Drunken Brawler a usable ability}

Status
Not open for further replies.
Level 4
Joined
Mar 6, 2008
Messages
73
Make a trigger where..

When the unit casts an ability, you add the 'Drunken Brawler' ability to the unit casting it temporarily (in this case, 10 seconds). By temporarily, remove the ability from the unit after '10' seconds.

If you're going to use a Wait trigger, make the spell MUI (Multi-Instanceable) by adding Local Variables.
 
You could do this:
This Jass trigger first:
JASS:
function AAFunction takes nothing returns nothing
    local unit c = GetTriggerUnit()
    call UnitAddAbilityBJ('AHav', c)
    call TriggerSleepAction( 10.00 )
    call UnitRemoveAbilityBJ('AHav', c)
endfunction

and this trigger to initiate it:
  • Activatable Ability Init
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to "Your Dummy-Ability"
    • Actions
      • Custom script: call AAFunction()
Just replace the ability-codes with what suites your abilities (CTRL+D to veiw them in object editor).
 
Level 7
Joined
Dec 18, 2008
Messages
400
erm isnt it much easier, unless Malle-manden understand Jass just to base the spell on immolation and then:

Unit starts effect of ability
Ability is equal to (name of spell)
Ad drunken brawler to casting unit
 
Level 8
Joined
Mar 12, 2008
Messages
437
It's possible to make it MUI in GUI. It requires three triggers and three abilities (the activation spell, a spellbook and Drunken Brawler).

Use an ability that places a buff on the unit itself (like Roar), create one trigger that checks when a unit starts the effect of an ability, that gives the unit Drunken Brawler in a disabled spellbook. Then, create another trigger that constantly checks if there are any units that have the Drunken Brawler ability but not the buff, and remove it from them. You also need a trigger that disables the spellbook.
 
Level 7
Joined
Oct 14, 2008
Messages
340
Yeah, you could use an ability such as Battle Roar, and set the targets field to "self" then add the ability upon casting, and remove when the buff is gone.
 
Status
Not open for further replies.
Top