Adding a castbar to an ability

Avaleirra

Is back. Probably.
Reaction score
128
Hey, I was wondering how I could add this castbar to this spell and still have it be MUI and MPI. I would also need the castbar to be destroyed if the casting unit is stunned or killed.

Trigger:
  • Holy Fire
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Holy Fire
    • Actions
      • Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Human\ReviveHuman\ReviveHuman.mdl
      • Special Effect - Destroy (Last created special effect)
      • Set Cleric_HolyFire_Constant = (2 x (Intelligence of (Triggering unit) (Include bonuses)))
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Real(Cleric_HolyFire_Constant)) damage of attack type Spells and damage type Normal


The ability is based off of stormbolt and is not channeled. If I need to change my base spell please tell me.


Thanks and +rep
 

Sartan

New Member
Reaction score
23
no, he/she wont?
Code:
Custom script:   call Castingbar(6.00, "blizzard", GetTriggerUnit(), 1, true)
6.00 is the casting time/channel time
blizzard, is order id...
GetTriggerUnit what unit it should show up on.
1 should always be 1 dont change it.
true = channeling ability false = casting time
 

13lade619

is now a game developer :)
Reaction score
400
a separate trigger before the casting starts.. i.e. Begins Caster an Ability.

Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to (==) Storm Bolt
    • Actions
      • Custom script: call Castingbar( real CastTime , string Order, unit Caster, 2, false)


that'll do it.

EDIT: *late..
 

Avaleirra

Is back. Probably.
Reaction score
128
Yes but how can I make the bar disappear and make the spell get interuppted if the caster gets stunned, sleeped, sheeped, or dies?
 

canons200

New Member
Reaction score
50
use boolean? when casting the spell, set the boolean to true, check condition if boolean equal to true, then continue your next action, else action set boolean to false.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top