Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Add All School Spells from X Class List (http://forums.wolflair.com/showthread.php?t=68127)

The Wyrm Ouroboros December 5th, 2023 03:45 PM

Add All School Spells from X Class List
 
I'm looking to add to a spell list all Divination Spells from the Cleric list. So far, I have managed this:

Quote:

doneif (state.isfocus = 0)

perform focus.assign[sClass.cHelpClr]
Is there a way to narrow this down to just Divination-school spells?

Sendric December 6th, 2023 08:52 AM

Quote:

Originally Posted by The Wyrm Ouroboros (Post 302627)
I'm looking to add to a spell list all Divination Spells from the Cleric list. So far, I have managed this:

Is there a way to narrow this down to just Divination-school spells?

Try the following:

Code:

hero.childfound[cHelpXXX].field[cCstSpExpr].text &= "| (sSchool.Divination & sClass.cHelpClr)"
Timing in final phase I think. XXX = class abbreviation (ie Drd for Druid). This is off the top of my head, so if it doesn't work let me know.

The Wyrm Ouroboros December 6th, 2023 07:05 PM

Hm. No. Not in final phase, not in first phase, which is where 'pClsSplTyp' works.

Sendric December 7th, 2023 06:36 AM

Quote:

Originally Posted by The Wyrm Ouroboros (Post 302630)
Hm. No. Not in final phase, not in first phase, which is where 'pClsSplTyp' works.

Sorry. Wrong field:

Post-Level / 10500:

hero.childfound[cHelpDrd].field[cSpellExpr].text &= " | (sSchool.Divination & sClass.cHelpClr)"

The Wyrm Ouroboros December 8th, 2023 10:16 PM

Unfortunately, that isn't working at any timing point. What is 'cSpellExpr' that it's calling / modifying?

Sendric December 11th, 2023 02:48 AM

Quote:

Originally Posted by The Wyrm Ouroboros (Post 302636)
Unfortunately, that isn't working at any timing point. What is 'cSpellExpr' that it's calling / modifying?

I made an adjustment with that exact script and timing and it worked. I'll need to see what exactly you're doing to see why it's not working on your end. (Note: You do need to change cHelpDrd to whatever class you're trying to modify).

The cSpellExpr field defines the list of spells a class has access to.


All times are GMT -8. The time now is 06:41 AM.

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