Make cooldown item undropable [ask]

c-series

New Member
Reaction score
2
just joined recently ... have problem when editing :)

ok ... i want to ask a few question ( only 1 )
The question is ... exactly same /w th title ... :D
Anyone here know how to do it ? ....
i've been searching in object editor and game constants ... but still i don't get any ( presets ? ) for it :banghead:. am i missing something ?...

and ... thx for any help ...
 

R@d14nc3

New Member
Reaction score
49
Welcome to thehelper.net.

We do not use 1337 language much.

are you talking about the value item-ignore cooldown or you mean other?

please specify :)
 

c-series

New Member
Reaction score
2
well i've never meant to use 1337 lang ... old habits kicking in :cool:

ummm .. if you ever play dota ( rethorical thing to ask imho ) ... remember hand of midas ?? ... you can drop it ... but when the item is in its cooldown you can no longer drop it ....

stats : ignore cooldown ; this thing only ignore the cooldown specified in stats - cooldown group
stats : can be dropped ; i want to make item like midas ( you can drop it while not in cooldown and vice versa )... this thing only make the item undropable at beginning ( were you specify it as false )

im not talking about those ....
thanks for the help anyway ... :eek:

sorry if my question not that clear ... :p
 

Mr Zero

Junior Regular (Got the T-shirt)
Reaction score
64
Code:
Is Using Item
    Events
        Unit - A unit Uses an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Drek'thar's Spellbook
    Actions
        Item - Make (Item being manipulated) Undroppable
        Wait 30.00 seconds
        Item - Make (Item being manipulated) Droppable

Hope it help :)

I know it isn't a fully code, but he has do something to :p
 

c-series

New Member
Reaction score
2
Oh yeah thanks !!... that helped me a lot !!...

( why i've never ever to think about trigger like that before ??:banghead: ) guess i'm working too much.... :confused:

thanks for all your help - mr .zero - 2p - R@d14nc3 - and anyone wh decide to reply this thread further ....
 

R@d14nc3

New Member
Reaction score
49
What Mr. Zero wrote was 80% accurate.

Some advises:
1.The 'wait' action should be same as the cooldown of the spell.
2.When saying "I want to make it like Hand of Midas" will not be a specified answer because many members here are unaware of DotA.
3.Mr.Zero's trigger does not cover the fact that some 'wait' triggers won't work.
 

Exide

I am amazingly focused right now!
Reaction score
448
What Mr. Zero wrote was 80% accurate.

Some advises:
1.The 'wait' action should be same as the cooldown of the spell.
2.When saying "I want to make it like Hand of Midas" will not be a specified answer because many members here are unaware of DotA.
3.Mr.Zero's trigger does not cover the fact that some 'wait' triggers won't work.


2. Indeed!
-Specially since when he says Dota he means Dota Allstars. Which is for TFT only. When someone says Dota I think of 3.7, 3.9, 4.1 and 4.2 and not of Allstars :p (Everyone doesn't have TFT either, so knowing what he means can be really difficult ^^)
 

R@d14nc3

New Member
Reaction score
49
2. Indeed!
-Specially since when he says Dota he means Dota Allstars. Which is for TFT only. When someone says Dota I think of 3.7, 3.9, 4.1 and 4.2 and not of Allstars :p (Everyone doesn't have TFT either, so knowing what he means can be really difficult ^^)

It is not just this.

Even some experienced members do not know the word 'DotA'.

So next time be a wee bit more careful ;)
 

c-series

New Member
Reaction score
2
Well ... guess i'm unaware about
1. DoTA allstars actually one from the variant
2. Some people doesn't have TFT
Sorry bout this ... :(

and yes ... what i meant is dota allstars ... because i do not remember any triggered cooldown item like that other than hand of midas .... btw for readers who doesn't have any idea about the item i've been talking about; hand of midas is an item in custom map dota allstars ( don't know if any other custom map with hand of midas ) compounded from glove of haste + recipe with ability to transmute ( alchemist skill ) and 60% increase in attack speed. and about the cooldown is like what i wrote earlier. :D

back to topic ...

Like R@d14nc3 said ( or type ) earlier ... "what mr zero was 80% accurate" ... i wonder for the other 20%...

and btw ... is it possible to create spells ;for example from slow ( sorceress ) but without unit animation ?

sorry to bother all of you ... thanks for all help in any way...
 

Mr Zero

Junior Regular (Got the T-shirt)
Reaction score
64
What Mr. Zero wrote was 80% accurate.

Some advises:
1.The 'wait' action should be same as the cooldown of the spell.
2.When saying "I want to make it like Hand of Midas" will not be a specified answer because many members here are unaware of DotA.
3.Mr.Zero's trigger does not cover the fact that some 'wait' triggers won't work.

Shh...
TELL THEM NOTHING!! :rolleyes:

I could almost give him the trigger now ;)
 

Mr Zero

Junior Regular (Got the T-shirt)
Reaction score
64
A hint? Yes?

Ok...








Psst.

Over here...

"Locals"

Shh...

:rolleyes: Search on the forum
 

SFilip

Gone but not forgotten
Reaction score
634
Perhaps it should use a PolledWait (Wait game time seconds) instead of a normal wait?
 

Mr Zero

Junior Regular (Got the T-shirt)
Reaction score
64
Allright. Here is the trigger: (May have bug, leaks, etc.)
Code:
Hero Use Item
    Events
        Unit - A unit Uses an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to [COLOR="Blue"]<Your Item Type>[/COLOR]
    Actions
        Custom script:   local item udg_item
        Custom script:   set udg_item = GetManipulatedItem()
        Custom script:   call SetItemDroppableBJ( udg_item, false )
        Wait [COLOR="Blue"]<Your Spell Colddown>[/COLOR] seconds
        Custom script:   call SetItemDroppableBJ( udg_item, true )

First it creates a local variable called udg_item
Sets udg_item to the item being used
Makes it undroppable
Waits the spells colddown
And makes the item droppable again

Simple and easy code :D

Hope it helps :)
 

SFilip

Gone but not forgotten
Reaction score
634
> Simple and easy code
No comment. :rolleyes:
Your original code was just fine, there is no need for a local.
 

c-series

New Member
Reaction score
2
You already be a great help for me mr zero ... :D as well as the other ppl

your original code still work and i guess it doesn't have any flaw ....

thanks for your effort in helping me .... :cool:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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