Spell Reference D&D 3.5/Pathfinder SRD
Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice
Re: Spell Reference D&D 3.5/Pathfinder SRD
Hey would you be able to look at the datebase code for my program that adds and deletes spells from various groups like classes and schools. I have not got to working the way i want it to and without really knowing alot about databases i am at a loss. If you got a min that would be great.
My next feature i will add is take combat spells and healing spells and start gathering the info for them to be used ON tokens. I think i will start with a few then let the user define the ones they want, then ask anyone using the program to post these objects so i can add them into a master database.
But i see need to get the bugs worked out still not working well enough to rely on in a game.
My next feature i will add is take combat spells and healing spells and start gathering the info for them to be used ON tokens. I think i will start with a few then let the user define the ones they want, then ask anyone using the program to post these objects so i can add them into a master database.
But i see need to get the bugs worked out still not working well enough to rely on in a game.
Re: Spell Reference D&D 3.5/Pathfinder SRD
Adding your lib token but it is not linking spells, take a look new update has your lib in it.
Re: Spell Reference D&D 3.5/Pathfinder SRD
Did you configure the Spell Lib... choosing 3.5 or PF and did you run the onCampaignLoad to define the functions?
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Spell Reference D&D 3.5/Pathfinder SRD
yep did all that, followed setup rules to the letter. The file is uploaded if want to have a look when u got a min
Re: Spell Reference D&D 3.5/Pathfinder SRD
I downloaded your 10c and changed the one line that outputs in View Spells Text.
Of course, you'll have to put the full if check I wrote so if ppl don't have the lib then it won't break.
Seems to work. I'll attach the campaign file. You can send me yours and tell me what where you're trying to call my UDF.
Code: Select all
...
[r:makeKeywordSpellList(replace(json.toList(check),"-[BSD]",""))]<br>
...
Seems to work. I'll attach the campaign file. You can send me yours and tell me what where you're trying to call my UDF.
- Attachments
-
- SpellManagerRewriteV10c.cmpgn
- (1.04 MiB) Downloaded 107 times
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Spell Reference D&D 3.5/Pathfinder SRD
I also updated Show DomSpec Spells.
Show DomSpec Spells
Code: Select all
[h:passed=macro.args]
[h:spec=getStrProp(passed,"Spec")]
[h:dom=getStrProp(passed,"Dom")]
[h:classviewed=getStrProp(passed,"Class")]
[h:spelllevel=getStrProp(passed,"Lvl")]
[h:prep=getStrProp(passed,"Prep")]
[r, if(spec !=""), CODE:{
[r:"<br><i><font size='-2'><b>SPECIALIST</b>:</font></i> "]
[r:makeKeywordSpellList(replace(spec,"-[BSD]",""))]
};{}]
[r, if(dom !=""), CODE:{
[r:"<br><i><font size='-2'><b>DOMAIN</b>:</font></i> "]
[r:makeKeywordSpellList(replace(dom,"-[BSD]",""))]
};{}]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Spell Reference D&D 3.5/Pathfinder SRD
the casting is still not linking to any spell when i cast a spell though.
Not sure what that new code is trying to do, i dont seen any changes in the view spells frame when i load it.
Once it starts to work, can i use your link search to do the following
looks for a name of spell, finds it, checks it object dmg=1 if so read in dmg type and dice damage and returns it to calling function.
That way i can start inputing spell damages to be called and even healing spells to be applied to tokens
Not sure what that new code is trying to do, i dont seen any changes in the view spells frame when i load it.
Once it starts to work, can i use your link search to do the following
looks for a name of spell, finds it, checks it object dmg=1 if so read in dmg type and dice damage and returns it to calling function.
That way i can start inputing spell damages to be called and even healing spells to be applied to tokens
Re: Spell Reference D&D 3.5/Pathfinder SRD
I accidentally posted the reply to this post on another thread, but I loaded 10c in to my existing campaign with my previously set up tokens. I cast a spell and it gave a link. I clicked the link and it showed me the spell. So, seems to work okay.
Maybe you can send me your campaign file and I may be able to debug for you. But I do have a busy weekend coming up and I'm not sure how much time I can dedicate at the moment since my new job, but I don't expect the problem to be too bad.
You should also update your campaign properties for your download to include CasterInfo and other required fields in the basic config. (That's why I saved the lib file and loaded it in to my other campaign).
PS - Ah, the -D -S -B spells need to be filtered to be linked. I suggest wrapping the variable in replace(VARNAME,"-[BSD]","").
Maybe you can send me your campaign file and I may be able to debug for you. But I do have a busy weekend coming up and I'm not sure how much time I can dedicate at the moment since my new job, but I don't expect the problem to be too bad.
You should also update your campaign properties for your download to include CasterInfo and other required fields in the basic config. (That's why I saved the lib file and loaded it in to my other campaign).
PS - Ah, the -D -S -B spells need to be filtered to be linked. I suggest wrapping the variable in replace(VARNAME,"-[BSD]","").
Last edited by aliasmask on Thu Jan 14, 2010 11:56 pm, edited 1 time in total.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Spell Reference D&D 3.5/Pathfinder SRD
10c has your framework installed in it, so if you load that up click on caster token and cast a spell it wont show the link
I do notice the cachedSpellLinks object is empty and your searchlink macro looks like uses that to grab link from and post it back
I do notice the cachedSpellLinks object is empty and your searchlink macro looks like uses that to grab link from and post it back
Last edited by wrathgon on Thu Jan 14, 2010 11:59 pm, edited 1 time in total.
Re: Spell Reference D&D 3.5/Pathfinder SRD
My 10c I downloaded doesn't have the needed campaign properties, like CasterInfo. I wasn't sure of the all the variables needed, so I just saved and loaded the lib file in to my working campaign.wrathgon wrote:10c has your framework installed in it, so if you load that up click on caster token and cast a spell it wont show the link
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Spell Reference D&D 3.5/Pathfinder SRD
they are in already in 3.5 and PF token properties, but i added them into basic as well now for next upload
Re: Spell Reference D&D 3.5/Pathfinder SRD
how can i use your subschools to check if a spell cast is in the subschool? I still cant get the links working though
Re: Spell Reference D&D 3.5/Pathfinder SRD
I'm not sure why. Just delete all the data in the lib file and run config again. I loaded your lib and it seems to work for me as is. I posted a slight change where you should filter the link to remove the -D, -S -B so it will create a link.wrathgon wrote:how can i use your subschools to check if a spell cast is in the subschool? I still cant get the links working though
About the school lists. It's kind of complicated because there's a lot of converting needed from your system to mine. But the lists are in SpellIndex.mttable in the first row (row 0). It's an array of objects where the array position is the index position in the table. So, first item (index 0) in array is first row.
Code: Select all
[H: SpellListIndex = table("SpellListIndex",0)]
[H: obj = json.set("{}","school","Enchantment")]
[H: index = json.indexOf(SpellListIndex,obj)]
[H: spellList = table("SpellListIndex",index+1)]
Code: Select all
[H: spellName = json.get(table("SpellDescriptions",0),index-1)]
Code: Select all
[H: spellData = table("SpellDescriptions",index)]
Code: Select all
[H: subschoolList = json.get(getLibProperty("SpellListKeywords"),"subschool")]
Last edited by aliasmask on Sat Jan 16, 2010 4:18 am, edited 2 times in total.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Spell Reference D&D 3.5/Pathfinder SRD
hmmm ok it might be easier just to make a list i want to check against and store it like i do schools and such.
ok will try to del all the info and rerun that did the trick
where did you post the code? was it those changes from before, i put them in but it still put out a -D after
ok will try to del all the info and rerun that did the trick
where did you post the code? was it those changes from before, i put them in but it still put out a -D after
Re: Spell Reference D&D 3.5/Pathfinder SRD
aliasmask wrote: PS - Ah, the -D -S -B spells need to be filtered to be linked. I suggest wrapping the variable in replace(VARNAME,"-[BSD]","").
ok will try this