FirstCopy tag troubles
Ability says: Each time the rogue selects this avoidance, she gains a +1 dodge bonus to AC when fighting defensively. So I did this:
<First/500> Code:
~ If we're not shown, just get out now |
I am pretty sure CustomSpec Picks don't get Helper.FirstCopy unless you apply it yourself first. If you have the community pack installed this is easy as calling X1SetFirst.
You can see an example HERE. |
Quote:
|
Still having problems
Quote:
Code:
~ Set Helper.FirstCopy for custom abilities |
Why not store DamRed as an abvalue and have the other copies reference that?
|
Still not getting this...
I thought I had this figured out, but after a few months I revisited the ability, and realized it wasn't working as I hoped.
It's a custom ability that can be selected multiple times. Each time, it adds +1 dodge bonus to AC when hero is fighting defensively. I don't receive any error messages, and the bonus adds to AC correctly, but the livename doesn't reflect the correct value after the first copy. It could be a timing issue, but I tried other phases to no avail. <Post-Attributes 10000> Code:
call X1SetFirst |
I think normally the livename field is set late in the Final phase.
Try just pulling just this line out to something like Render/5000: field[livename].text = field[thingname].text & " +" & field[abValue].value |
Yeah, odds are you would need to have the effect and live name changes at different timings
|
Quote:
It seems so simple, yet I just can't seem to get the concept right. Talk me off the ledge, someone! |
Here's how I'd write this:
Code:
<eval index="1" phase="PreLevel" priority="1000"><![CDATA[ And then use the automated livename generation mechanisms to set abValue as an append to the livename, and set it as signed - but that all happens in tags, not in a script. |
All times are GMT -8. The time now is 03:55 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.