• 🏆 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!

Kelen's Dagger and Empty Bottle (DOTA's Items) - Questions

Status
Not open for further replies.
Level 5
Joined
Nov 29, 2007
Messages
106
Hello!
I have tried to make a kelen's dagger (I made the base item) but can someone tell me how to do a second thing? I mean when ally controlled by enemy hero attack your hero when wielding kelen's dagger it's make unuseable, and after 3 seconds if u didn't get attacked (only by players not units type computer) kelen's dagger makes again useable. (Cannot be used if the carrier was damaged by an enemy player - controlled unit in the last 3 seconds.

Second thing - Bottle
1.Refills to 3/3 full when you are near the fountain

2.Regenerate
Restores 135 HP and 70 Mana over 3 seconds
Effect ends if you take damage
When used, 3/3 full Bottle changes to 2/3 full, 2/3 Bottle changes to 1/3 full, and 1/3 full Bottle changes to Empty Bottle
Cannot be used when Bottle is empty
Has a 0.5 second cooldown

3.Rune Capture
Stores the target rune in the Bottle, the rune can be used by using the Bottle
When a rune is used from the Bottle, the Bottle is refilled to 3/3 full
Stored runes are automatically used after 120 seconds
Can only be used when Bottle is empty
Bottle is not drop-able when it has a rune stored

There was a description, any ideas?
I have got bottle's icons - 3/3, 2/3, 1/3, 0/3, invi rune, DD rune, illusion rune, regen rune.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Dagger
Can be triggered by Item Disabling System

Bottle
You're gonna need 3 different icons for that, my mistake, 4 exactly, 5? or 6?
*Full water level*
*2/3 water level*
*1/3 water level*
*0/3 water level*
*Runes color (green, blue, red...)
 
Level 15
Joined
Jul 9, 2008
Messages
1,552
Dagger
Can be triggered by Item Disabling System

Bottle
You're gonna need 3 different icons for that, my mistake, 4 exactly, 5? or 6?
*Full water level*
*2/3 water level*
*1/3 water level*
*0/3 water level*
*Runes color (green, blue, red...)

about the bottle he said his already got the icons.........

about filling the bottle when near a fountan
put a region around the fountan/s

and when unit enters the region
if hero has bottle 0/3 1/3 2/3
remove it and give the hero a full bottle

for the runes i dunno how to do it sorry but give the empty bottle an abilty that can target items then do bla bla bla (im sorry i dunno)
 
Level 9
Joined
Oct 11, 2009
Messages
477
Requires:
-A Hashtable
-Fake/Disabled Dagger of Escape
-A Unit Group Variable
-Two triggers(1. Periodic(0.05 second is enough); 2. Damage/Attack Detection)



For the Dagger of Escape, you need a Hashtable(if it is MUI, if not a real variable) for storing time(real value) specified as 3 seconds and another item type of Disabled Dagger of Escape. When the unit is attacked/damaged, save the 3 second value in the Hashtable or real variable made, replace the original Dagger of Escape and replace it with Disabled Dagger of Escape and add the unit in a specific unit group and the periodic trigger will subtract 0.05(which is the periodic time). If the real value reaches zero or below, remove the unit from the unit group and finally restore the original Dagger of Escape.


I hope you can get what I am saying about.
 
Status
Not open for further replies.
Top