Im making solo player survival map, and i have a question.
So i have item "Bronze Ring". If you carry it for 5 minutes, it will trasform into "Silver Ring".
This is easy to make, i know. But how to make that for many rings?
If you have ring, and buy another one, the timer will reset
So how can i make own timer for each ring?
So i have item "Bronze Ring". If you carry it for 5 minutes, it will trasform into "Silver Ring".
This is easy to make, i know. But how to make that for many rings?
-
Bronze Ring A
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to |c00FFFF00Bronze Ring|r
-
-
Actions
-
Countdown Timer - Pause BronzeRingTimer
-
Countdown Timer - Start BronzeRingTimer as a One-shot timer that will expire in 300.00 seconds
-
Set BronzeRingTimer = (Last started timer)
-
-
-
Bronze Ring B
-
Events
-
Time - BronzeRingTimer expires
-
-
Conditions
-
Actions
-
Hero - Drop (Item carried by You of type |c00FFFF00Bronze Ring|r) from You
-
Item - Remove (Last dropped item)
-
Hero - Create |c00FFFF00Silver Ring|r and give it to You
-
Set TempLoc = (Position of You)
-
Special Effect - Create a special effect at TempLoc using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-
If you have ring, and buy another one, the timer will reset
So how can i make own timer for each ring?