• 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

Changing Base Attack and Saving Throw Arrays

Sevisin

Well-known member
Hello,

Due to an unserpassable amount of boredom, I decided to make custom classes with options that would change the base attack and saving throw arrays. Yeah, I can make different classes for each option, but that makes things too easy. Is there any way to change the array(s) via expression? Example, changing the Attack Bonus from "poor" to "good."

Thanks in advance,

-S
 
Hello,

Due to an unserpassable amount of boredom, I decided to make custom classes with options that would change the base attack and saving throw arrays. Yeah, I can make different classes for each option, but that makes things too easy. Is there any way to change the array(s) via expression? Example, changing the Attack Bonus from "poor" to "good."

Thanks in advance,

-S

In theory, yes. Attack bonus and saving throw progressions are controlled by a tag (cAttack.Good, cFort.Poor, etc). I've never played around with these, so you will probably need to experiment with the timing to see if you can get it to work.
 
Since there is no real API available to me (as far as I know), I don't know what code to use to replace the attack.

hero.cAttack = hero.cAttack.good? No, that didn't work.

-S
 
Since there is no real API available to me (as far as I know), I don't know what code to use to replace the attack.

hero.cAttack = hero.cAttack.good? No, that didn't work.

-S

These tags aren't on the hero, they are on the class. Look at the tags on the class. To look at tags (and fields) for various things, look for "Floating Info Windows" in the Develop menu of the portfolio.

The code to replace a tag is actually quite commonly used throughout the community set. Here is an example, but please understand this example assumes you are running the script on the class itself:

Code:
perform delete[cAttack.Good]
perform assign[cAttack.Poor]

This removes the "Good" progression and assigns the "Poor" progression to the class.
 
@Sendric
Thanks for the help. I'm sorry for the elementary question(s). I don't know this code very well :(

-S
 
Back
Top