• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Adding spells to a domain with a script.

frumple

Well-known member
I am trying to allow certain spells to be added to a domain.

I know for classes this can be done with the following script
Post-Levels/5000
perform hero.child[cHelpXXX].assign[ClsAllowSp.spYYYY]

Is there something equivalent for adding spells to domains?
 
Look on the class helper. There should be a candidate expression field for secondary spells. You could modify that directly, but I dont remember an automatic tag mechanism.
 
Looks like the field is cSpellScExpr.

Aaron, could you post the full tag statement for that field (for the Cleric, since I am doing domains). Can't make the field browser big enough to display it all. :)
 
usually when I'm modifying a spell expression I do like they've done and go

Code:
field[cSpellScExpr].text = "(" & field[cSpellScExpr].text & ") | (INSERT IDS HERE)"

then you don't need to know what's already in the field.
 
ahhh.

I just didn't want to do anything to $%^# up the logic in the expression. :) But since it is simple as that. :)
 
Got it working! Here is the code.

Code:
Final/1000

doneif (tagis[Helper.SpcDisable] <> 0)

~ list the ids of the spells
var spells as string
spells = * list of spell thingids *

~ now add it to our class's cSpellScExpr field
perform linkage[table].setfocus
focus.field[cSplScExpr].text = "(" & focus.field[cSplScExpr].text & ") | (" & spells & ")"
 
Back
Top