Two questions,quick ones

Stefanman

Member
Reaction score
10
is there a way to detect level of buff?
is there a way to put variable value in tooltip (custom variable)

Thanks
 

Grymlax

Probably not around
Reaction score
138
that was funny becouse i were just about to ask the other question myself. well if anyone has an answer i would be glad to know too.
 

Pineapple

Just Smile.
Reaction score
576
1)

No becuase Buffs do not have levels. Spells Have Levels and you can detect the level of those.

2)

Unless you can change the tool tip in the game then no.
 

Stefanman

Member
Reaction score
10
off-topic : wow,u animated ur avatar , cool ;)

hm,there must be way to detect 'level ' of buff,there must be variable used for drawing the text when you go over buff with mouse.
 

Pineapple

Just Smile.
Reaction score
576
Buffs don't have levels.
If you have a Spell,
and it has 2 levels,
they both use the same buff,
unless,
you create 2 buffs,
add one to each level,
then,
you don't detect the level of the buff,
but the buff itself,
becuase,
it simulates a level,
With 2 buffs.

Get me?
 

Waaaaagh

I lost all my rep and my title being a jerk
Reaction score
70
Buffs have levels...

GetUnitAbilityLevel(<unit>,'B000')

If it's 0, it doesn't have the buff. Otherwise, that's the level.
 

Stefanman

Member
Reaction score
10
hm...yes,that is kinda fact...when you put cursor over it,it shows some value,does anyone knows how can we use that value?
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
Yeah, go to the Object Editor, Buff Editor, click on your buff, and change the tooltip :D
EDIT: ( For some very odd and strange reason I thought you asked if you could change that...)
but... you can try to use RawCode like you would with level Tooltips?
What value? All I see is text... (This unit is under the influence of bloodlust) or something like that.
 

Stefanman

Member
Reaction score
10
erhm,dont try to be 'funny' , we know that, i didnt meant
Tooltip
and
Tooltip Extended
,i meant like :
Flame Strike - level 1
This unit is in a Flame Strike, and is taking damage over time.

how to detect value of bolded part -level 1(2,3,4...)-
there must be some way
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
If you look at the tooltip of a hero ability, they have like <LevelXX###> or something like that, I think with jass you can use that... How? I don't know...

Why don't you trigger the whole thing? If it is just 1 hero per player, create an integer Array.
E - Unit learns Ability
C - Learned ability is equal to ABILITY WITH YOUR BUFF
A - Set IntegerVar[Player number of owner of triggering player] = IntegerVar[Player number of owner of triggering player] + 1
 

Stefanman

Member
Reaction score
10
>Why don't you trigger the whole thing? If it is just 1 hero per player, create an integer Array.

I know hot to do that,but i want this for something else...nvm now...then how in dota's spell of Obsidian Destroyer (statue) the spell that replenishes mana when someone cast a spell,how does it detects level of buff (if it detects it actually) ,how they make that spell??? ,i know the part of replenishing mana etc...but u know what i mean what i want to know
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top