Page 1 of 1

[Pathfinder] Book of Arcane Magic

PostPosted: Sat Aug 26, 2017 9:09 am
by LearnTribe
Hi,
Just looking for a bit of advice on coding. I'm working on getting boam ready for release but have hit an issue that's got me scratching my head. There are feats in the book for wizard/sorcerer/bard to be graduates of arcane magic schools. These grant an extra L1 spell known from specific school, and an extra spell cast at each spell level from that school. I tried basing this on class ability for specialist wizard but it doesn't pull through on test character with the feat.

https://pcgenorg.atlassian.net/plugins/ ... WSOURCE-25

Any advice most welcome.
Cheers, Gordon.

Re: [Pathfinder] Book of Arcane Magic

PostPosted: Thu Sep 07, 2017 12:53 pm
by LearnTribe
Hi,

I have the bonus spell known and additional spells/level displaying on test characters for book of arcane magic source, but have a problem with this line:
BONUS:SPECIALTYSPELLKNOWN|CLASS=Bard;LEVEL=1|1|PRECLASS:1,Bard=1|SCHOOL=Conjuration
This should allow 1 extra 1st level spell from the school of conjuration, and displays in the #spells known summary as +1 but when I test it out by trying to add a new spell I get the error "your remaining slots(s) must be filled with your speciality" - which is perfect, except that it also pops up when the chosen spell IS from the appropriate school (in this case conjuration). I get the exact same error when adding spells for a Sorcerer (code is same as above but with Sorcerer instead of Bard). Wizard doesn't give the error - presumably because there isn't a limit to how many spells they can know.
Any suggestions?
Thanks, Gordon.

Re: [Pathfinder] Book of Arcane Magic

PostPosted: Fri Sep 08, 2017 1:14 am
by Distant Scholar
First guess: put the PRExxx tag at the very end. That's where they usually go.

Re: [Pathfinder] Book of Arcane Magic

PostPosted: Mon Sep 11, 2017 1:11 pm
by LearnTribe
Hello,
Thanks for the response. I've tried re-ordering the sequence to have Pre at the end of the item BONUS:SPECIALTYSPELLKNOWN|CLASS=Bard;LEVEL=1|1|SCHOOL=Conjuration|PRECLASS:1,Bard=1
but still get the same error when trying to select a spell, with no log errors.

Moving the school to the start of the section generated a series of log errors about illegal tokens - eg
13:59:29.689 LSTERROR Thread-12 LstUtils:166 Illegal Token 'BONUS' 'SPECIALTYSPELLKNOWN|SCHOOL=Conjuration|CLASS=Bard;LEVEL=1|1|PRECLASS:1,Bard=1' for pcgen.core.Ability Bartek's School Graduate in file:/C:/Users/gml28r/OneDrive/Roleplaying/PCGen/6.07.03/data/pathfinder/4_winds_fantasy_gaming/book_of_arcane_magic/boam_feats.lst
13:59:42.493 INFO AWT-EventQueue-0 CharacterManager:200 Loaded character Sorc_boam - C:\Users\gml28r\OneDrive\Roleplaying\PCGen\6.07.03\characters\Sorc_boam_L1.pcg

I've also tried BONUS:SPECIALTYSPELLKNOWN|CLASS=Bard;LEVEL=1|1|SCHOOL=Conjuration;|PRECLASS:1,Bard=1 but no joy. As this is just a snippet from a longer line of code it's possible something else is upsetting it - but this is the only bit that specifically referes to adding an extra 1st level spell of a named school of magic.
Any suggestions?
Thanks, Gordon.

Re: [Pathfinder] Book of Arcane Magic

PostPosted: Mon Sep 11, 2017 1:24 pm
by Nylanfs
This might require some more hands on help. You could take out the | and replace with tab.

You can also ask in the Chat room.
https://www.hipchat.com/gmddByrFS

Ask for @GwenT or anyone that is hanging out in the room.

Re: [Pathfinder] Book of Arcane Magic

PostPosted: Tue Sep 12, 2017 4:28 am
by LegacyKing
That BONUS is only allowed for Wizards. Period. Forget you ever saw it, and don't use it. (I'm not going to even attempt to give a hack to make it work, because it'll be a lot of effort for little gain, and be extremely outside the normal rules to even contemplate).

So, option 1: (Easy)

BONUS:SPELLKNOWN is the best you'll get and leave it to the user to self-police.


Option 2: (Hope you have free time)

Add each spell permissible to the class with a SPELLKNOWN tag. This is extremely time consuming, but likely to net you more cookies.


There are other options, but I think these two are the two extremes you can select.

Cheers,

Re: [Pathfinder] Book of Arcane Magic

PostPosted: Tue Sep 12, 2017 7:46 am
by LearnTribe
Well that explains why it wasn't working!
I think it's best to go for option 1 and let users self-police, as otherwise there will be never ending updates everytime a new source is added with spells.
I'll comment the code to explain it for future reference - other than that I think this is just about ready for review as a new source. I'll do a bit more testing then submit the latest version on Github. New semester has just started here but hopefully I'll have it ready by the weekend.
Thanks, Gordon.