Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old July 6th, 2013, 11:16 AM
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
risner is offline   #1 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 6th, 2013, 12:00 PM
I'm pretty sure Alignment changes cannot be scripted, you just have to change them yourself.
AndrewD2 is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old July 6th, 2013, 01:09 PM
Quote:
Originally Posted by AndrewD2 View Post
I'm pretty sure Alignment changes cannot be scripted, you just have to change them yourself.
I think its something new they just added for Ultimate Campaign actually as I don't recall a Good vs Evil total value.

@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.
ShadowChemosh is offline   #3 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old July 7th, 2013, 01:49 AM
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
bodrin is offline   #4 Reply With Quote
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old July 7th, 2013, 06:17 AM
Quote:
Originally Posted by bodrin View Post
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..
Is alignment bootrapped?
risner is offline   #5 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old July 7th, 2013, 08:37 AM
Quote:
Originally Posted by risner View Post
Is alignment bootrapped?
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
bodrin is offline   #6 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old July 7th, 2013, 03:48 PM
Use a prerequisite to require the user to change the alignment. You can't change alignments with a script.
Mathias is offline   #7 Reply With Quote
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old July 7th, 2013, 04:50 PM
Quote:
Originally Posted by Mathias View Post
Use a prerequisite to require the user to change the alignment. You can't change alignments with a script.
Interesting, do you know a thing that I can use as an Example?
risner is offline   #8 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old July 7th, 2013, 09:38 PM
Quote:
Originally Posted by risner View Post
Interesting, do you know a thing that I can use as an Example?
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.
ShadowChemosh is offline   #9 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:42 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.