#Custom Trigger %1.tooltip1

29 messages · Page 1 of 1 (latest)

lone owl
#

Custom Trigger %1.tooltip1

rich kiln
#

!tooltip

jade gardenBOT
#

To get a value from a buff or debuff's tooltip (the absorb amount on a shield buff for example), tick "Use Tooltip Info" in the buff trigger. This will have WeakAuras grab the whole tooltip, which can be accessed as %tooltip, and also the first three number values from the tooltip will be extracted and set as %tooltip1, %tooltip2 and %tooltip3.
If you need to manipulate any of these in code then they can be access in Custom Text with aura_env.states[triggerNumber].tooltip1. But the Format Options settings in Display will probably handle most of what you would need.

dark dragon
#

I think we actually need to take a step back and ask the question of what you are actually trying to do as your information is quite confusing

#

Do you just want to use the tooltip info for progress information of your aura?

lone owl
#

I've actually managed to do without the tooltip, all the tooltip did was spell power * 1.61

stray briar
# rich kiln !tooltip

aura_env.states[triggerNumber].tooltip1, I'm not finding tooltip1 this table inside the aura_env. I see that aura_env.stats has 3 different table (with keys = 1,0,-1), if i have only 1 trigger, which table should i look for? Thanks

rich kiln
#

aura_env.states[triggerNumber].tooltip1
If you're not seeing tooltip1 available then...
tick "Use Tooltip Info" in the buff trigger.

stray briar
#

I checked Fetch Tooltip Information, but nothing

#

for k,v in pairs(aura_env.states[1]) do print(k,v) end print(aura_env.states[1].tooltip1)

Second print return nil, and in the first list of print can't see the tooltips variables (idk if it's a table or more variables)

rich kiln
#

Does the tooltip in question have numbers in it?

#

You deleted the original post so I have no idea what you're actually trying to acheive

stray briar
#

I need the whole tooltip. Where is it saved?

#

The same as %tooltip in text

rich kiln
#

It's the same

stray briar
#

Since i need to find some particular word

rich kiln
#

Anything in the state table can be shown in text with %whatever

stray briar
#

So tooltip info are not saved in aura_env.state but inside the trigger info inside aura_env.states[]?

rich kiln
#

?

#

aura_env.states contains a table for each trigger in your Aura.

#

aura_env.states[1] is trigger1's state table

stray briar
#

Yes I understand this. I'm not the author of this poster but since this discussion was about it a wrote down here

rich kiln
#

Oh, apologies, I didn't notice that

#

Better to make a new post really. But might as well carry on now

stray briar
#

Anyway, checking the Fetch Tooltip Information on trigger 1, inside the table aura_env.states[1] there aren't anything related to tooltip information

rich kiln
#

You closed config and activated the buff in question?

stray briar
#

Ok, for some reason i activate the buff and was printing with WA opened and it was not present. Closing WA is now present and diplayed. Solved thanks

rich kiln
#

WA does almost nothing with config open.

#

Mostly just displays some dummy info so you can see what Auras basically look like