Member
Join Date: Oct 2013
Posts: 79
|
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 |
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
|
|
#2 |
Member
Join Date: Oct 2013
Posts: 79
|
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 |
#3 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
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] |
|
#4 |
Member
Join Date: Oct 2013
Posts: 79
|
@Sendric
Thanks for the help. I'm sorry for the elementary question(s). I don't know this code very well -S |
#5 |
|
|