View Single Post
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