This thread has been locked by iATEM4P5.
So in a weapon's tooltip I have:
Normally this works for other effects, behaviors, etc. However, for some reason, I get 0 when I try to get the period duration of a create persistent effect. (I've also heard trying to get the offsets also returns 0).
Any reason I'm getting 0 instead of the period of the create persistent effect?
edit: added in period duration* (misleading sentence)
You know arrays need a different format of query right?
That is just asking for the first period in the array. The duration is a combination of the periods and the number of periods executed.
Contribute to the wiki (Wiki button at top of page)
Considered easy altering of the unit textures?
For my public assets look here!
No I just want the duration of one period. In this case, I only want the duration of the first period. However, SC II is returning 0 instead of the period of the effect.
So for example, I have a persistent effect with:
Period count: -1
Period duration: 0.25
I'm trying to grab the period duration using:
<d ref="Effect,PersistentName,PeriodicPeriodArray" precision="2" />
But, that reference is returning 0 instead of 0.25
Any1 know why?
edit: For those of you that have never used dynamic tooltips, you can learn how to use them here:
I just used the built in clickable browse/insert data reference thing in the tooltip instead of typing it myself. I guess I had a typo that I just couldn't see? or this specific reference only works when the editor generates it for you? either way, fixed now.