Wrathgon's rewrite of Plothos' Spell Manager

These are tools and utilities that make it easier to run games. This includes Lib: macro tokens dropped into MapTool to manage the game, a conversion file for CharacterTool to allow use in MapTool, or just about anything else you can think of -- except graphics with macros and anything specific to a particular campaign framework. Those are already covered by the Tilesets subforum and the Links and External Resources forum.

Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice

Post Reply
wrathgon
Dragon
Posts: 735
Joined: Wed Feb 06, 2008 10:28 am
Location: Guildford, UK

Wrathgon's rewrite of Plothos' Spell Manager

Post by wrathgon »

Introducing the new spell management interface for 3.5 D&D && PF campaigns.

A single button on your player token will open the Spell Manager dialog, which uses macrolinks to manage all your spells for the core 3.5 D&D system. You can set casting ability, domains, specialty schools, etc., and much of the spell management is done for you. For instance, if you have an Int of 20 and set yourself to be a wizard of 10th level, you will be given access to up to 5th level spells (all spells from the PHB are listed with the option to add as many houserule spells as you like) and your spells per day will be set for you according to the charts in the PHB for wizards and for bonus spells by ability score. Spells belonging to your specialty school are marked to stand out, and prohibited spells are kept from you automatically (the GM can manage these by houseruling the campaign from within the manager). Rest to recover your SPD, then prepapre your spells and cast them, with reports going to the chatlog. GMs using the manager in their campaigns can call any code they have set up for individual spells as well, to have the manager initiate saving throw rolls, damage, or whatever. You can even save a template for your prepared spell casters to reset to when they rest and recover spells, so you don't have to prep the same things over and over.

How to Install it

There are two ways.
First way is to download the cmpn file and open it like a normal one, then use that as a base and just add maps.

If wanting to add to existing framework open the file, copy the Caster, Image, and Lib copy(or save them). Export the cmpn properties(if not using lmarkus001 framework that is, if are they are already in there) and open file you want to add the manager to, copy the saved tokens onto the map and then you can copy the spell manager button onto any token(as well as cast and SLA buttons if like). if want to use aliasmask's spell library dl it from http://forums.rptools.net/viewtopic.php?f=46&t=12370 and follow the instructions

This package requires a stack size of at least 3MB and when used in combination with other frameworks may require 4MB or even more. Failure to set the proper stack size will result in "Stack Overflow" exception messages. If you receive one of those, the only way to fix it is to shutdown MapTool and start it again with the correct size. This is a major bummer if you're hosting the server. -- Moderator



Well folks i taken a great framework and improved on it. ALL classes are in and working. My goal is make this product be able to use any class, as i have taken out all of the hardcoded stuff and once i get this tested can work on adding a class add page so can add any of your PrC and classes that use spells.

WHAT IS DIFFERENT FROM Plothos Spell Manager??
multiply saved templates for each preparing class(so you name each and could call your combat template or your defence template).
Less pages to click on, i rather click as little as possible so i merged some pages together to save time.
with the new things below this is where it bridges the gap so see below->>>>
start.png
start.png (190.83 KiB) Viewed 11888 times
The main screen is the same, other than you click on which class you want to edit, and it gives you your CL and lvl for each class for ease of use.
Learning.png
Learning.png (231.22 KiB) Viewed 10829 times
Learning and forgetting spells are easy, just click on links
preparing.png
preparing.png (284.66 KiB) Viewed 10829 times
You can prepare spells higher or lower than the base level, good for using metamagic
makeclass.png
makeclass.png (108.76 KiB) Viewed 11888 times
One major reason i rewrite this, to make your own classes. This is a flexible system that will allow you to make any class in 3.5 or PF or other d20 i think. I need more ppl to test and try to break this please.
casting.png
casting.png (383.82 KiB) Viewed 10829 times
Casting shows all classes spells for each level, no more swaping between cleric and mage to find your spells!
After you entering the spell details, it will bring up any targets in range for you choose, and roll the damage and SR roll, even Spell Failure and Concentration checks right there!

Added in since last upload New version 11e

Major adding new class bug fixes Other major bugs fixed

All PF spells, domains, and classes added and edited and can been seen now! (thanks Neofax)



new features:

When cast a spell that has spell details in manager, will output a link to click to assign dmg or healing to selected tokens and if has active mod assigned to it will output a link to activate mod on selected token and if needs an attack roll will bring up attack window to roll an attack for spell automatic.

Full Pathfinder support, now you can change the value EH on the lib token to 3(Default now), 0 if want 3.5 lists and all the PF fun starts, at will cantrips, PF spell list, even Sorcerer bloodlines and bonus spells are coded in. The spell lists will have to be updated lets hope someone will take this on.


Targeting for spells works now

PF templates for each class each are working and the notes are showing the correct values, play with them should be fine.

Mouse over will show short txt of spell when learning spells and if want full text can click on it to bring it up.

Adding some new fields for both Lib and tokens so make sure you add them in if upgrading.

Now allow SLA ONLY rest in case you need to only rest your SLA(like when you add them)

1. Targets for spells, once spell is setup in database checks range and find tokens in range and allow you to select which tokens are target of spells. Area effect spells not really supported, you just choose all tokens in the area to be listed.

Added in support for non caster classes and added them in. Can now put in SA based on their class level directly to find usages per day.

Added in Spellcraft DC to ID casting a spell and Save DC for each spell cast. Note this just uses the caster stat and level of spell, nothing else. At some point i will find a way to add in the feats and other things that increase DCs of spells but for now its a start.

Resting rests all classes now.

Templates save SPD left, if have more SPD since saving template, do a normal rest without clearing prepared spells.

Added in some DM notifying code to keep the players honest.

After fighting with PrC i finally got them working. You can add ones that will increase your caster level of other classes, and even can add ones that do it to multiply classes, up to 5!

User Request: Allow preparing and casting like sorcerer, so when you cast a spell it uses slots per day and do not lose the spell from memory.
Ranger and Paladin SPD fix.

SLA and SAs : added them to caster page to use. Also can make templates and save them to be added to many tokens. Right now i got the PF class powers in there, i got 3 classes, others may follow if get time. If you go to add SLA from main menu can add SLAs and add templates. Right now i have not set up adding templates that will be added next release.

ADD new class! Yes that is right it is here!! I need people to start to break this and see what strange combo classes you can get working. I dont have PrC in yet, am still working on how to deal with them.


Caster page shows all classes and SA on one page without having to switch to each class.



this will be the base file, then i will upload the update for my manager. Follow same rules to use this basefile in another file(see Above)

http://www.megaupload.com/?d=4Y7DFAH0

Download this and replace magic lib token with this one.
magic_lib_newest11E.rptok
Newest Lib Token
(284.54 KiB) Downloaded 386 times





what i am working on

Templates, assign a token to spell and when it is cast can place said token on map at grid cors.
Last edited by wrathgon on Wed Dec 22, 2010 5:56 am, edited 51 times in total.

neofax
Great Wyrm
Posts: 1694
Joined: Tue May 26, 2009 8:51 pm
Location: Philadelphia, PA
Contact:

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by neofax »

Couple errors I have found trying to use the framework. First, if you do not have any domain spells, you receive an error and cannot move on adding normal spells to your prepped list. Here is the error I receive for this problem:

Code: Select all

   Invalid condition in IF(wizbonus>0 || dombonus>0) roll option.       Statement options (if any): h,if(wizbonus>0 || dombonus>0),code       Statement Body (first 200 characters): { [macro("Add Spell to List@Lib:spells"):passed] [Type=macro.return] [if (wizbonus>0), CODE:{ [SpecSPDleft=json.set(SpecSPDleft,spelllevel,wizbonus-1)] [Type=json.set(Type,"SpecSPDleft",SpecS
Next, I get an error when trying to add 10 different spell caster types and 20 levels. Here is the error:

Code: Select all

java.lang.IndexOutOfBoundsException: Index: 9, Size: 9 error executing expression LearnedSpells=json.set(LearnedSpells,CMSLbefore,Divine).
So far though, it is nice. However, is there a way to have it run Azhrei's spells macro when you press the cast spell link?
Image
Time-Zone information UTC -5

wrathgon
Dragon
Posts: 735
Joined: Wed Feb 06, 2008 10:28 am
Location: Guildford, UK

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by wrathgon »

that is what i am working on, be patient :) it took me a month of coding to change over from the old manager to json objects. Let me get it working at the same pace as it was before, then i start to add the new stuff i want to add, which is linking it to that database(since he is my DM on tues)

i look at those errors, i remember when the out of bounds one and just forgot about them(my test PCs were not 20th lvl or had 10 classes :P)

neofax
Great Wyrm
Posts: 1694
Joined: Tue May 26, 2009 8:51 pm
Location: Philadelphia, PA
Contact:

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by neofax »

The 20th Lvl and 10 Classes was just for my appeasement. Wanted to see if it would work. I have to say though, great work!
Image
Time-Zone information UTC -5

wrathgon
Dragon
Posts: 735
Joined: Wed Feb 06, 2008 10:28 am
Location: Guildford, UK

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by wrathgon »

I cant recreate your error with no domains, when i do it i can prepare and learn spells fine.

can you tell me step by step how you got the error?

fixed 2nd error and uploaded new file

wrathgon
Dragon
Posts: 735
Joined: Wed Feb 06, 2008 10:28 am
Location: Guildford, UK

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by wrathgon »

looks like my last upload didnt take, am not at home now but when i get home will update it again, plus will have all the classes in and ready to test.

wrathgon
Dragon
Posts: 735
Joined: Wed Feb 06, 2008 10:28 am
Location: Guildford, UK

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by wrathgon »

ok re-uploaded the file, i think i fixed both problem(the problem was there was 1 array short for learned spells (had 9 not 10 fields) so that should fix both(as i cant get the other msg since i changed it)

wrathgon
Dragon
Posts: 735
Joined: Wed Feb 06, 2008 10:28 am
Location: Guildford, UK

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by wrathgon »

ok i found a ton of bugs or flaws in logic heh so got them all fixed, also got the add house rule spell link working. updated file.

will be testing this with my group tonight with cleric wizard bard and ranger/druid should see how it does.

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by Azhrei »

We tested his changes to the spell manager and it went very well for a first public viewing. I know that because as a programmer I've done plenty of public demos and many of mine haven't gone this well. ;)

That doesn't mean it was perfect, though. So he's making some tweaks over the next few days and we'll test it again next Tuesday. I'm also planning to switch our game from PF Beta to PF Final, so there will be a lot of changes.

There were a couple of things that were sort of kludgey (like adding -S to the end of a custom spell name to mark it as a specialist spell) but nothing that a little documentation wouldn't fix. Since the panel used by the spell manager is HTML, there could be tooltips that give a summary of "solutions" (for example, a tooltip over 0-level PF spells that says at-will spells should be set so that the spells can be cast 999 times).

I'm looking forward to seeing what he does with the finished product...

wrathgon
Dragon
Posts: 735
Joined: Wed Feb 06, 2008 10:28 am
Location: Guildford, UK

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by wrathgon »

i already fixed all the problems we found so uploading new ver now before bed.

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by Azhrei »

The link still says V03. Should it say V04 now?

Edit:

I just tried a ranger/druid combination (4 levels of each) and setting the SPD didn't work. It asked me whether I wanted to do Ranger or Druid and I selected Ranger. It then asked me for the bonus spells for the ranger once (they are +0 and +1 for 0th and 1st level) and then it asked me for them again?? Was it supposed to progress to the druid or give me back the input dialog asking which class I wanted to update?

Using the Edit SPD function from inside the spell preparation page did the same thing as above.

I went back to do the Druid and it did the same thing, looping around twice. The default values were filled in based on my previous answers, though. In addition, the SPD for druid L2 were set to zero even though I typed in "3" (2 from level, 1 from Wis) both times it asked. (This may have something to do with the CasterLvl and ClassLvl being wrong. Both the ranger's and the druid's values are 3 and 3 inside the CasterInfo JSON object when they should be 4 and 4.)

It filled in the Spells Known for the Ranger but didn't for the Druid -- instead I had to click on each of the spells on the right-hand side of the panel.

It looks like selecting spells on the Prepare panel causes the chat window to scroll by one line. A missing h: somewhere?

I think for casting spells, I'd like to see all available spells (by level) when there are multiple classes. Otherwise it'll be a pain for the player to jump back and forth between panels trying to decide what the best one to use might be. (Granted multiclass spellcasters aren't common in my campaign, but still. :)) More blank lines from clicking on the various links on the Casting page, too.

The spell database menus don't seem to work at all. Am I missing properties for my Lib: token? Perhaps the lib: token should be using Wiki: getLibProperty() and Wiki: setLibProperty() so that a new property type isn't needed?

I seem to have found a bug regarding getTokenPortrait not returning an asset id for tokens that very definitely have portrait images. So I've been sidetracked. :)

wrathgon
Dragon
Posts: 735
Joined: Wed Feb 06, 2008 10:28 am
Location: Guildford, UK

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by wrathgon »

just didnt change ver since only u had dl it:) next one will be 4

am working on database menus now

i look at those bugs tomorrow

the caster and class lvl are not used for anything other than tracking changes.

wrathgon
Dragon
Posts: 735
Joined: Wed Feb 06, 2008 10:28 am
Location: Guildford, UK

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by wrathgon »

ok guys i updated the program again. I think i found all the bugs now but if you do find anymore please post.

i am on holiday for two weeks so wont be doing any more work so please use it and post errors.

User avatar
plothos
Great Wyrm
Posts: 1890
Joined: Sat Jun 21, 2008 1:07 am

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by plothos »

Just dl'ed it and tried it out on b1.3.59.

I started by clearing casting info.
I tried to add a cleric level and first it sent me a dialog with a single input for "rage" default to 0. Not knowing what it was, I tried both 0 and 1 as my input. Both sent me to the domain selection stuff. I picked my domains and was hit with "Unknown JSON type in function json.get." in the chat window. No changes seemed to stick in menu, but when I closed it and reopened it, I had casting abilities. (Also many of the defaults are looking rather random - I clear casting data and go to add new casting abilities and it defaults to level 5 for some reason. Seems inelegant.)

Similar problem with the wizard. Same "Unknown JSON type in function json.get." error comes up after choosing schools.

If I haven't rested, the spell prep and cast menus give a JSON error and do nothing. After resting, I was able to prep and cast spells, but the option to prepare with a higher slot didn't seem to work.

Not sure saving specialist spells in a separate spot in the prepped list is all that useful. Once it's prepped, it doesn't matter much that it's a specialty spell.

I miss the (x3) thing Azhrei was so right to push for in the original program.

I find the background image, while cool, makes the menu a little harder to read. (Just my preference here).
Drop-In Utilities:
My Spell Manager for D&D3.5 and PFRPG
My Inventory Manager for D&D and PFRPG, but more generally useable than that.
My Message Manager -- My Top-Down D&D Token Images
and my Custom Initiative & Status/Spell-Effect Tracker (work in progress, but functional).

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Wrathgon's rewrite of Plothos' Spell Manager

Post by Azhrei »

So is V04 the new one? While I like that you're updating the original post, there needs to be something that clarifies when a new version was posted. Maybe a comment in the message that says V04 - 2009-10-22 - bug fixes or something?

If this is the version we used last night then we've done some testing with it already and it was pretty solid right then, I thought. (I think the issue with Niles not having any L0 spells was because of the ranger class, right?)

Post Reply

Return to “Drop-In Macro Resources”