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
  • No one is chatting at the moment.
  • The Helper The Helper:
    nobody signs up or comments
  • The Helper The Helper:
    its crazy
  • The Helper The Helper:
    363 bots on the forum been like that for about a month this is the most bots we have ever consistently hosted
  • The Helper The Helper:
    and we are on cloud flare too right?
  • Stephen Stephen:
    Probably stupid AI garbage. It's harvesting our Nuon knowledge.
  • Stephen Stephen:
    The bots I mean.
  • The Helper The Helper:
    I suspect AI Bots as well
  • The Helper The Helper:
    Happy Saturday!!!
    +1
  • The Helper The Helper:
    I reorganized the forums somewhat but I doubt anyone would notice
  • The Helper The Helper:
    Happy Friday!
    +1
  • The Helper The Helper:
    Happy Saturday!
    +1
  • The Helper The Helper:
    The forum software says we have 554 members online now. We did not have that many unique visitors the whole day today. Too many bots and the disconnect between the forum counts and the stats.
  • Varine Varine:
    Currently it says 413 guests and 2 members
    +1
  • Varine Varine:
    Aww
  • The Helper The Helper:
    That is going to be mostly bots
  • The Helper The Helper:
    527 (members: 2, guests: 525)
  • The Helper The Helper:
    Happy Saturday!
    +1
  • V-SNES V-SNES:
    Happy Saturday!
    +1
  • The Helper The Helper:
    622 (members: 2, guests: 620)
  • The Helper The Helper:
    666 (members: 4, guests: 662) :)
    +1
  • Varine Varine:
    609 (members: 4, guests: 605)
  • The Helper The Helper:
    I was posting that last one because the 666 users online :)
    +1
  • The Helper The Helper:
    Happy Wednesday Night!
    +1
  • The Helper The Helper:
    Happy Thursday!
    +1
  • The Helper The Helper:
    Marathon watching The Expanse!

    The Helper Discord

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top