• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[General] Skill Refresh Chance by only using Demolish Skill

Level 7
Joined
Oct 6, 2022
Messages
135
How to make a "skill refresh chance" where there is a chance that the triggering unit skill refreshes after being casted by only using the passive skill that has no buff like "Demolish"?
 
Level 7
Joined
Oct 6, 2022
Messages
135
Sorry i didn't make it clear, what i mean is when the time triggering unit learned the skill demolished there's a chance like 15-45% that when the triggering unit cast a skill like for example firebolt or shockwave the cooldown of the firebolt or shockwave would be refresh.
 

Uncle

Warcraft Moderator
Level 65
Joined
Aug 10, 2018
Messages
6,641
Right, so when a unit casts an ability check if it has demolish leveled and if the chance was successful, then reset the cooldown:
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Level of Demolish for (Triggering unit)) Greater than 0
    • (Random integer number between 1 and 100) Less than or equal to 45
  • Actions
    • Unit - For Unit (Triggering unit), end cooldown of ability (Ability being cast)
exx.png


You should have this Action in 1.31.
 
Top