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:
    Happy Sunday!
    +1
  • The Helper The Helper:
    I will be out of town until Sunday evening
    +1
  • The Helper The Helper:
    I am back! Did you miss me LOL
    +1
  • jonas jonas:
    where did you go?
  • The Helper The Helper:
    Jefferson TX on a Paranormal Investigation of a haunted bed and breakfast - I got some friends that are paranormal investigators and they have an RV and do YouTubes
    +1
  • The Helper The Helper:
    It was a lot of fun. The RV was bad ass
  • jonas jonas:
    That sounds like fun!
    +1
  • The Helper The Helper:
    it was a blast!
  • The Helper The Helper:
    I am going to post the Youtube of the investigation in the forums when it is ready
    +1
  • jonas jonas:
    cool!
  • vypur85 vypur85:
    Sounds cool TH.
  • tom_mai78101 tom_mai78101:
    I was on a Legend of Zelda marathon...
  • tom_mai78101 tom_mai78101:
    Am still doing it now
    +1
  • jonas jonas:
    which one(s) are you playing?
  • jonas jonas:
    I played a little bit of the switch title two weeks ago and found it quite boring
  • The Helper The Helper:
    just got back from San Antonio this weekend had the best Buffalo Chicken Cheesesteak sandwhich in Universal City, TX - place was called Yous Guys freaking awesome! Hope everyone had a fantastic weekend!
    +1
  • The Helper The Helper:
    Happy Tuesday!
  • The Helper The Helper:
    We have been getting crazy numbers reported by the forum of people online the bots are going crazy on us I think it is AI training bots going at it at least that is what it looks like to me.
  • The Helper The Helper:
    Most legit traffic is tracked on multiple Analytics and we have Cloud Flare setup to block a ton of stuff but still there is large amount of bots that seem to escape detection and show up in the user list of the forum. I have been watching this bullshit for a year and still cannot figure it out it is drving me crazy lol.
    +1
  • Ghan Ghan:
    Beep boop
    +1
  • The Helper The Helper:
    hears robot sounds while 250 bots are on the forum lol
  • The Helper The Helper:
    Happy Saturday!
    +1
  • The Helper The Helper:
    and then it was Thursday...
    +2

    The Helper Discord

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top