Help with multiple cast skill.

merlinds

Member
Reaction score
15
The thing is, i have a skill that can be casted 3 times before it enters in cold down. Right now my solution has been, give the hero 3 diferent skills based on the same (Storm bolt in this case). The 3 skills have the same description, and once the user cast the skill it enters in cold down but you have two more, so is like you can cast it 3 times. But i dont want to do this like this any more because it occupies 3 button slots. So, there is a way to "hide" two of the tree buttons, or reset the cold down of just one skill (there is an option in GUI but is for all coldowns.).
Thank for you help!!!
 

inevit4ble

Well-Known Member
Reaction score
38
If you remove an ability and add it again via triggers the cooldown is reset.

So you can try something like Unit finishes casting -> Remove Ability being cast - > Add ability being casts

And ofcourse just add an integer counter to check if its the third cast or not

Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • CastCounter Less than 3
        • Then - Actions
          • Set CastCounter = (CastCounter + 1)
          • Set TempInteger = (Level of (Ability being cast) for (Triggering unit))
          • Unit - Remove (Ability being cast) from (Triggering unit)
          • Unit - Add (Ability being cast) to (Triggering unit)
          • Unit - Set level of (Ability being cast) for (Triggering unit) to TempInteger
        • Else - Actions
          • Set CastCounter = 0
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
did you need the ability to be mui (multiple units can cast it)
 

merlinds

Member
Reaction score
15
Is already implemented and working perfectly. No, my map is not mui and is not going to be. But thx!
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
np, i just love working with ways to implement MUI/MPI... working on large scale projects where people can have the same type of units as other players requires it :/
 

merlinds

Member
Reaction score
15
Right now my map is a hero area, so there is no need for mui, besides the way it is gave me a lot of headache so there is no need of more bugs/problems
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top