• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Item Cooldowns

Status
Not open for further replies.
Level 13
Joined
Oct 16, 2010
Messages
731
Hi all,

I've got an idea in my head of how I could randomize items. My idea uses a dummy item with a dummy ability where all details of the item are held in an array of different variables. When it gets used it will track the item and get the required details.

That part is making sense to me and I think it would work, however I'd like to be able to adjust the cooldown of each item if I could. My idea would only use 1 item ability so I'd have to adjust the cooldown on cast via triggers, is this possible? I've seen the option to change cooldown on units but not sure about items?

Also just thought, is it possible to change item icons by triggers? If not will have to have more dummy items I guess
 
Level 3
Joined
Mar 10, 2018
Messages
32
As far as I know cooldowns are not adjustable, all you can do is to reset them all at once
 
Level 8
Joined
Oct 4, 2016
Messages
208
It's posible, the new natives allow you to change the cooldown of an ability of a unit.
The item abilities are like normal abilities for units, you can change his cd, mana cost, level as if it are a hero ability.
But keep in mind that all changes made to that ability (at least for levels, not sure for cooldown and manacost) will be back to normal when the item is drooped and picked again, so you need to make the changes every time the item is picked.

The problem with this dynamic system that you are trying to do, is that all items will have the same ID, so you need to implement another way to differentiate them. The same with the spells.

Regards
 
Level 13
Joined
Oct 16, 2010
Messages
731
Thanks for the responses. Have given it a go and it didn't really work the way I had thought. I tried changing the cooldown of the ability via triggers and it didn't seem to do anything to either item, I think the ability would need to be on the unit itself... which won't work unfortunately.

However, as the items aren't meant to perish I thought I'd try a recharge method, which is working so far! I can use an item when it has a charge and after X seconds it gains another charge, up to a cap which I've also included a variable for.

It's looking good so far!!
 
Level 8
Joined
May 21, 2019
Messages
435
I've got an idea in my head of how I could randomize items.

I'm not sure that I understand your exact intentions. You start out by talking about randomizing items, but the rest of the thread seems to be about how to control the cooldowns on items.

What is the exact idea that you are working on here?
 
Status
Not open for further replies.
Top