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
Kalladar
Member
 
Join Date: Aug 2013
Location: Lenexa, KS
Posts: 71

Old October 7th, 2014, 12:11 PM
I am trying to create a trait based on Two World Magic from Sargava, the Lost Colony. I have tried changing the 2nd Custom Expression to select another 0 level spell. That part looks like it should work correctly. When I try to modify the Eval Script, this is when I run into problems.

Since the class is no longer being selected by the 2nd Custom Expression, I tried to add the cCleric class into the script, but I evidently don't have the expression correct. Here is the old expression.


~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen2].ischosen = 0)

~now that we've chosen a class, we can restrict the list of spells available
field[usrCandid1].text &= " & !(" & field[usrChosen2].chosen.tagids[sClass.?,"|"] & ")"

~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen1].ischosen = 0)

doneif (tagis[Helper.FtDisable] <> 0)

~ If we are a spontaneous caster this will set the correct cantrip
perform field[usrChosen1].chosen.pulltags[ClsAllowSp.?]
perform field[usrChosen2].chosen.pushtags[ClsAllowSp.?]


This is what I have changed it to:


~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen2].ischosen = 0)

~now that we've chosen a class, we can restrict the list of spells available
field[usrCandid1].text &= " & !(" & field [chosen.tagids[sClass.cCleric,"|"] & ")"
field[usrCandid2].text &= " & !(" & field [chosen.tagids[sClass.cCleric,"|"] & ")"



~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen1].ischosen = 0)

doneif (tagis[Helper.FtDisable] <> 0)

~ If we are a spontaneous caster this will set the correct cantrip
perform field[usrChosen1].chosen.pulltags[ClsAllowSp.?]
perform field[usrChosen1].chosen.pushtags[ClsAllowSp.cCleric]

perform field[usrChosen2].chosen.pulltags[ClsAllowSp.?]
perform field[usrChosen2].chosen.pushtags[ClsAllowSp.cCleric]



The program doesn't like this modified expression. I have modified other scripts in the past, but I am missing something here.
Kalladar is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,217

Old October 7th, 2014, 12:20 PM
Instead of building a tag expression based on the chosen class:

Code:
field[usrChosen2].chosen.tagids[sClass.?,"|"]
You know exactly what tag you want that to generate:

sClass.cHelpClr

So:

Code:
field[usrCandid1].text &= " & !(sClass.cHelpClr)"
Also, the last line - instead of pushing to the chosen class, you now know which class you want to push to:
Code:
perform hero.childfound[cHelpClr].pushtags[ClsAllowSp.?]
Mathias is offline   #2 Reply With Quote
Kalladar
Member
 
Join Date: Aug 2013
Location: Lenexa, KS
Posts: 71

Old October 7th, 2014, 12:22 PM
Thank you. I will work with that.
Kalladar is offline   #3 Reply With Quote
Kalladar
Member
 
Join Date: Aug 2013
Location: Lenexa, KS
Posts: 71

Old October 7th, 2014, 12:42 PM
I modified the script, and it shows up in the traits area. The selection feature works on the trait, but the spells are not showing up on the cleric spell selection section. They just aren't there. Do I need all of the other statements ending the script or should it work as described. This is the way it looks now.


~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen2].ischosen = 0)

~now that we've chosen a class, we can restrict the list of spells available
field[usrCandid1].text &= " & !(sClass.cHelpClr)"
field[usrCandid2].text &= " & !(sClass.cHelpClr)"

~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen1].ischosen = 0)

doneif (tagis[Helper.FtDisable] <> 0)

~ If we are a spontaneous caster this will set the correct cantrip
perform hero.childfound[cHelpClr].pushtags[ClsAllowSp.?]
Kalladar is offline   #4 Reply With Quote
Kalladar
Member
 
Join Date: Aug 2013
Location: Lenexa, KS
Posts: 71

Old October 7th, 2014, 12:46 PM
The trait allows me to select any 0 level spell and put it on the cleric spell list. I wasn't sure if I phrased that in the first posting.
Kalladar is offline   #5 Reply With Quote
Kalladar
Member
 
Join Date: Aug 2013
Location: Lenexa, KS
Posts: 71

Old October 7th, 2014, 12:47 PM
sorry, two 0 level spells.
Kalladar is offline   #6 Reply With Quote
Kalladar
Member
 
Join Date: Aug 2013
Location: Lenexa, KS
Posts: 71

Old October 7th, 2014, 01:06 PM
My mistake. I didn't use the pulltags line when I modified it again. I have updated it and it works perfectly. Thank you for your assistance.
Kalladar is offline   #7 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 04:13 AM.


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