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)
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:
Duration 5.000
Period count: -1
Period duration: 0.25
I'm trying to grab the period duration using:
<d ref="Effect,PersistentName,PeriodicPeriodArray[0]" precision="2" />
But, that reference is returning 0 instead of 0.25
Any1 know why?
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.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So in a weapon's tooltip I have:
<d ref="Effect,PersistentName,PeriodicPeriodArray[0]"/>
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?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
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:
Duration 5.000
Period count: -1
Period duration: 0.25
I'm trying to grab the period duration using:
<d ref="Effect,PersistentName,PeriodicPeriodArray[0]" 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:
http://www.sc2mapster.com/forums/resources/tutorials/17879-data-button-tooltip-referencing/
Fixed!
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.