• 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

Having Difficulties with a Script

Bodhizen

Active member
I have a script that I am attempting to run that would, ideally, state the exact range for the ability in the listing. However, it is not properly working. Here is the script:
Code:
      ~our bonus is level /2
      var bonus as number
      bonus += field[xAllLev].value / 2
      field[abValue].value += maximum(round(bonus,0,-1),1)*5 + 25
field[livename].text = "Translocate (" & field[abValue].value & " ft. range)"

The ideal outcome, at 20th level, would be for it to list as Translocate (75 ft. range).

However, it displays nothing other than Translocate (30 ft. range).

Your help is appreciated in advance.
 
Last edited:
Never mind. I got it. The proper script was as follows:

Code:
      ~our bonus is level /2
      var bonus as number
      bonus += #totallevelcount[]/2
      field[abValue].value += maximum(round(bonus,0,-1),1)*5 + 25
field[livename].text = "Translocate (" & field[abValue].value & " ft. range)"
 
My take is that as you don't list a phase/priority that your running First/100 the default. Which is WAY too early. As your dealing in levels I would say "post-levels/10000".

Also I would tweak the section on the livename as follows:
Code:
field[livename].text = field[name].text & " (" & field[abValue].value & " ft. range)"
That way if you change the name of the ability you don't have to change the script.
 
Nah, the phase wasn't the problem. :) Thanks for that additional bit of code, though.

I'm currently in the process of encoding multiple new races and I'm trying to come up with a host of unique racial abilities, alternate racial abilities, feats, traits, etc... for them.
 
Back
Top