Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Jobe00
Senior Member
 
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150

Old July 29th, 2022, 11:03 PM
A friend running a PF1 campaign gave the party three blocks of incense that once you meditate for 8 hours and prepare spells or regain your spell slots, you gain a +2 alchemical bonus to Int and gain +1 caster level for 24 hours.

I know this is an activation, but how do I do the eval script to get the bonus when active?
Jobe00 is offline   #1 Reply With Quote
ploturo
Member
 
Join Date: May 2021
Posts: 84

Old July 30th, 2022, 07:44 PM
Code:
   if (field[abilActive].value <> 0) then
      
      ~ do stuff...

   endif
ploturo is offline   #2 Reply With Quote
Jobe00
Senior Member
 
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150

Old August 2nd, 2022, 04:17 PM
How would I make it a +2 Alchemical Bonus to a selected casting attribute (Int, Wis, Cha) and the +1 Caster Level bonus?

I figure something like an Alchemist's Mutagen, but I'm not sure what to copy and paste for it which is how I do most things because I go too long working on HLC datafiles that I basically have to relearn everything.
Jobe00 is offline   #3 Reply With Quote
ploturo
Member
 
Join Date: May 2021
Posts: 84

Old August 3rd, 2022, 01:53 PM
Does the hero need to choose a specific class affected by the incense that determines which caster level and spellcasting attribute are boosted, or does the hero gain +1 CL to all spell casting classes and just choose an attribute?
ploturo is offline   #4 Reply With Quote
Jobe00
Senior Member
 
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150

Old August 5th, 2022, 01:02 PM
The +1 CL is to all casting classes. They would choose their casting attribute if single class or one casting attribute if they have more than one spellcasting class.
Jobe00 is offline   #5 Reply With Quote
ploturo
Member
 
Join Date: May 2021
Posts: 84

Old August 5th, 2022, 03:52 PM
The orange prism ioun stone has script to add +1 to all CLs, and the magenta prism ioun stone from Seeker of Secrets has conditional code for increasing a user-selected ability score (although I ended up using the #applybonus macro instead).

In addition to the script, you'll need to add some stuff in the "Item Selection" section of the details in the editor.

You'll want to check the "Show selection options on the in-play tab" box, and add "component.BaseAttr & AttribCat.Mental" to the Custom Expression text box.
The component.BaseAttr part limits it to ability scores, and the AttribCat.Mental limits it to Int/Wis/Cha.

I also added a few extra lines of script to hide the mental attribute menu when the incense isn't active, since it only needs to be there when it is being used.


Code:
if (field[abilActive].value <> 0) then
      
    ~ add +1 to caster level of all spell casting classes
    foreach pick in hero from Spellcast where "CasterType.?"
        eachpick.field[cCasterLev].value += 1
    nexteach

    ~ add +2 alchemical bonus to selected ability score
    if (field[usrChosen1].ischosen <> 0) then
       #applybonus[BonAlch, field[usrChosen1].chosen, 2]
    endif

else
	
    ~ hide the attribute selection menu when the incense isn't active
    field[usrCandid1].text = ""

endif
ploturo is offline   #6 Reply With Quote
Jobe00
Senior Member
 
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150

Old August 8th, 2022, 06:10 PM
Thank you. You are awesome.

Now to figure out how much this costs.
Orange Prism Ioun Stone is 30K, so half that as it's not a permanent equipped item.
The +2 Alchemical Bonus to an attribute would be 4000.
So 15,000+6000 is 21,000.
As a 1 use item for a day, it would be a divisor of 5.
So final cost for one block of this incense would be 4200 gp.
That seems a little high though.
Jobe00 is offline   #7 Reply With Quote
Jobe00
Senior Member
 
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150

Old August 8th, 2022, 08:42 PM
I put in the Eval Script as you posted. Copy/paste. I went Pre-levels and Priority 5000.
I checked "Show selection options on the in-play tab."
I added the Custom Expression. Copy/paste.
I checked "Show in Activated Abilities list."
I gave Activation Name as "Inhaled."

It isn't showing up on the In-Play tab.
So what did I do wrong?
Jobe00 is offline   #8 Reply With Quote
ploturo
Member
 
Join Date: May 2021
Posts: 84

Old August 8th, 2022, 09:16 PM
Is the "Can be Equipped" box checked in the "Equipping" section of the details?

If it is, that item will only show up on the in-play tab if the box to equip it is checked in the list of magic items.
ploturo is offline   #9 Reply With Quote
Jobe00
Senior Member
 
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150

Old August 9th, 2022, 06:48 PM
Derp. That did it.
Once more, you are awesome.

Is there a way to remove the free spell in a spellbook for spellbook casters that pops up? Nothing else is affected with Intelligence selected.
Jobe00 is offline   #10 Reply With Quote
Reply

Thread Tools
Display Modes

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 03:29 PM.


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