Senior Member
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294
|
Hi Team,
I'm having a crack at the scripting language and have come across some questions. #1 Is there a tutorial to show how to handle choices made by the player in an Array-Based Menu? Specifically i am playing with Feat creation. I can get a menu to give the player a choice. I assume i just need to know the handle of that thing in order to work with it. #2 I'm trying to get simple IF / THEN statements to work. Given the code below I believe it should check to see is the Charisma Attribute is less than 5, if so add +1 Charisma. However it is adding +1 Charisma no matter what. if (hero.child[aCHA].field[aStartMod].value < 5) then hero.child[aCHA].field[aStartMod].value += 1 else ~ do nothing endif #3 Does Hero Lab 5E SRD allow attributes to exceed 20? Can anyone provide some insight here? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: Aug 2012
Posts: 779
|
Quote:
Quote:
Quote:
|
|||
#2 |
Senior Member
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294
|
Thanks,
Quote:
You answer below rules out the requirement for this however. Quote:
|
||
#3 |
Member
Join Date: Feb 2013
Posts: 67
|
When looking for these sorts of things, I like to look at something similar and adapt it. So, I'd be checking the code from the Ioun Stone of Leadership for this - that increases Charisma by 2, to a maximum of 20.
So, the feat would include the code Code:
hero.child[aCHA].field[Bonus].value += 1 |
#4 |
Senior Member
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294
|
From what i can tell this does this same thing.
Quote:
|
|
#5 |
|
|