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
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old October 24th, 2013, 09:43 AM
I've got a template that gives channel negative energy. In fact it's figured just like the Nightshade subtype. The nightshade uses two scripts on a racial ability to generate this.

Code:
Post-Levels 1000
      var tagexpr as string
      tagexpr = "SpecSource.stNightsha"
      call ChanEnFind
      doneif (state.isfocus = 0)

      ~ Add our CR to our turning level.
      focus.field[abValue].value += hero.findchild[BaseRace].field[rCR].value
AND

Code:
Post-Attributes/10000
      var tagexpr as string
      tagexpr = "SpecSource.stNightsha"
      call ChanEnFind
      doneif (state.isfocus = 0)

      ~we can turn undead 3 + CHA mod / day
      focus.field[trkMax].value += 3 + #attrmod[aCHA]
I copied this and I'm sure my problem is the SpecSource but I'm not sure what to put there. The Nightshade uses the subtype so I used the template and I've used the racial ability id there, but neither is working.

Is there something I'm missing?

Thanks,
Andrew
AndrewD2 is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old October 24th, 2013, 10:39 AM
Make sure that when bootstrapping the xChannel pick, you give it the same SpecSource tag you have in the tagexpr string variable.
Aaron is offline   #2 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old October 24th, 2013, 10:56 AM
Well it seems to be showing up in the Background tab, but it's not adding to the trkMax field so it's not showing up in the specials tab or in-play
AndrewD2 is offline   #3 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old October 24th, 2013, 11:05 AM
I think I may have found a bug because if I had something with the Nightshade subtype it shows up twice then and still says the specSource is stNightshade even though I changed it.

EDIT: Well I tested again and it disappeared, but no matter what SpecSource I use that's on the hero it's not showing up.

Last edited by AndrewD2; October 24th, 2013 at 11:10 AM.
AndrewD2 is offline   #4 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old October 24th, 2013, 11:50 AM
If you have the nightshade subtype, that grants you a separate channel from whatever it is you are making, so it makes sense there would be two.

Why don't you send me the file and I'll take a look at it.
Aaron is offline   #5 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old October 24th, 2013, 12:18 PM
Thanks Aaron, I sent it out.
AndrewD2 is offline   #6 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old October 24th, 2013, 03:02 PM
Alright, it looks to be working correctly to me when added to any monstrous race with a CR. I think the issue is probably one of testing, as this line:

Code:
focus.field[abValue].value += hero.findchild[BaseRace].field[rCR].value
means that if you add the template without a race, or to a race with no CR value, then the xChannel gets nothing added to the abValue field. In this case, abValue is the effective Cleric level of the channeling, and if there is nothing there then an eval script hides the special.

So in this case, I think you may want to set the value added to something else or else add some more eval scripts to manually re-set the values and un-hide the xChannel pick. (The script which hides it runs at Post-Attr 10001, so your scripts to unhide it would need to apply Helper.ShowSpec after that).

Hope that helps!
Aaron is offline   #7 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old October 24th, 2013, 03:23 PM
Well the actual code in the file I sent you has abValue set to herofield[tCR].value instead of base race because I need to account for the CR added by the template. I tried assigning Helper.ShowSpec and it still doesn't show up for me.
AndrewD2 is offline   #8 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old October 24th, 2013, 03:32 PM
I just want to get this right, you're saying you added my template and everything showed up on a race that had a CR value?
AndrewD2 is offline   #9 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old October 24th, 2013, 03:43 PM
I've manually set all the abValues on xChannel and it still doesn't show up. I guess I'll try bootstrapping it straight to the template.
AndrewD2 is offline   #10 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:07 AM.


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