Senior Member
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150
|
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? |
#1 |
Member
Join Date: May 2021
Posts: 84
|
Code:
if (field[abilActive].value <> 0) then ~ do stuff... endif |
#2 |
Senior Member
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150
|
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. |
#3 |
Member
Join Date: May 2021
Posts: 84
|
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?
|
#4 |
Senior Member
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150
|
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.
|
#5 |
Member
Join Date: May 2021
Posts: 84
|
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 |
#6 |
Senior Member
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150
|
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. |
#7 |
Senior Member
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150
|
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? |
#8 |
Member
Join Date: May 2021
Posts: 84
|
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. |
#9 |
Senior Member
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150
|
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. |
#10 |
Thread Tools | |
Display Modes | |
|
|