• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Showing duration of an ability in the form of a dice roll.

Redcap's Corner

Well-known member
I have a class ability with a duration of 2d4 rounds. If I set abDuration to "2d4" and "Round" it outputs as "20000 rounds", presumably because abDuration is a numeric value-based field, not a text-based one. How do I trick it or otherwise circumvent it? I don't want to fudge it because of the possibility of a chooseable class ability that alters this duration. Thanks!
 
You will need to script it manually. I am pretty sure Render/99999999 is plenty late enough.

If you want to have be adjustable you can use the abValue fields to set the values so you can then easily adjust it from outside.

Code:
~ Set number of dice
field[abValue].value += 2
~ Set dice size
field[abValue2].value += 4

~ Append rounds on to the thing's name
field[livename].text &= " " & field[abValue].value & "d" & field[abValue2].value & "/rounds"
 
Ahhh, that makes total sense. If I wanted to just adjust the final value of abDuraText with the following code, so it was all still stored as the ability's duration, what timing would you suggest?

Code:
field[abDuraText].text = field[abValue].value & "d" & field[abValue2].value & " rounds"
 
Ahhh, that makes total sense. If I wanted to just adjust the final value of abDuraText with the following code, so it was all still stored as the ability's duration, what timing would you suggest?

Code:
field[abDuraText].text = field[abValue].value & "d" & field[abValue2].value & " rounds"
Wish I could say but abDuraText is a newer field and I have never tried to mod it before. You will have to try some different timing and see what works.

I would try:
First/10000
Post-level/10000
Post-Attributes/10000
Final/10000
 
"Set abDuraText if Blank" runs at Render 600, but if you set text into the field before that the default logic doesn't run. If you're hoping to manipulate the text after it is set but before it's used in the livename generation, you'll probably want to do it at Render 700. "Default livename Modify" runs at Render 750 and may want to use abDuraText.
 
Back
Top