Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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 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] Is there something I'm missing? Thanks, Andrew |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Make sure that when bootstrapping the xChannel pick, you give it the same SpecSource tag you have in the tagexpr string variable.
|
#2 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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
|
#3 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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. |
#4 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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. |
#5 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Thanks Aaron, I sent it out.
|
#6 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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 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! |
#7 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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.
|
#8 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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?
|
#9 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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.
|
#10 |
|
|