Senior Member
Volunteer Data File Contributor
Join Date: Jun 2010
Posts: 623
|
I'm trying to reduce the alignment on the Evil/Good axis:
~ reduce alignment one step on evil alignment hero.child[Totals].field[tGoodVEvil].value -= 3 But I get an error: Only Derived Fields can generally be modified via scripts (field tGoodVEvil) Does anyone know how to script an alignment change? Especially a method that will work with or without Ultimate Campaign |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
I'm pretty sure Alignment changes cannot be scripted, you just have to change them yourself.
|
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
@risner usually a Derived field is one that can't be changed or not expected to be changed by a script. If I get time I will take a look later this weekend but I have not otherwise worked with that field before. Not even 100% sure what its suppose to be storing/showing. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#3 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Could you bootstrap the required alignment via the script? Using an if then statement? If we're LE Alignment then ...... do stuff and bootstrap NE Alignment instead.
I don't know if that would prevent user alteration or not but it might be a solution. Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
|
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jun 2010
Posts: 623
|
|
#5 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Don't know, but it's crazy enough to just work.
Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
|
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Use a prerequisite to require the user to change the alignment. You can't change alignments with a script.
|
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jun 2010
Posts: 623
|
|
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Paladin class enforces an alignment.
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#9 |
|
|