Pathfinder Spell Database Library (UPDATED 19.0811.1)

Show off your RPG maps, campaigns, and tokens. Share your gaming experiences and stories under General Discussion and save this forum for things you've created that may help others run their own games. Use the subforums when appropriate.

Moderators: dorpond, trevor, Azhrei, Gamerdude

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Pathfinder Spell Database Library (UPDATED 19.0805.1)

Post by Full Bleed »

New Graphic Set: Celtic Energy

Celtic Energy - Sample.jpg
Celtic Energy - Sample.jpg (121.97 KiB) Viewed 6990 times
Celtic Energy - Sample2.jpg
Celtic Energy - Sample2.jpg (141.74 KiB) Viewed 6990 times
Attachments
PFSpells - Celtic Energy Graphic Set.zip
(327.5 KiB) Downloaded 86 times
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

aranginor
Giant
Posts: 131
Joined: Fri Dec 05, 2008 2:32 pm

Re: Pathfinder Spell Database Library (UPDATED 19.0805.2)

Post by aranginor »

new version up (19.0802.2)

[*]New theme editor
[*]Big changes to how settings are stored. Delete all settings.
[*]Exclusive graphics by Full Bleed ;)

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Pathfinder Spell Database Library (UPDATED 19.0805.2)

Post by Full Bleed »

aranginor wrote:
Mon Aug 05, 2019 9:05 pm
new version up (19.0802.2)

[*]New theme editor
[*]Big changes to how settings are stored. Delete all settings.
[*]Exclusive graphics by Full Bleed ;)
Excellent. That's much easier to use now. :)

Created a new graphic set and got it up and running in no time. Went with symbolism on this one so the tool-tips are essential. ;)

Samples:
Primal Skin Graphic Set - Sample 1.jpg
Primal Skin Graphic Set - Sample 1.jpg (160.58 KiB) Viewed 6952 times
Primal Skin Graphic Set - Sample 2.jpg
Primal Skin Graphic Set - Sample 2.jpg (124.26 KiB) Viewed 6952 times

Couple minor suggestions:

1) Not sure if you already do this or not, but when setting the width of a new graphic set, maybe have it check for the "even/divisible by 3" rule so people can't mess it up.
2) Give the "Warning" under the search bar a tooltip with the extra warning text. Will be cleaner.
3) Maybe tooltip the "Pathfinder Spells" text to display the theme name, too so you don't have to go to settings>select theme to see which you're currently viewing.
Attachments
PFS - Primal Skin Graphic Set.zip
(363.02 KiB) Downloaded 81 times
Last edited by Full Bleed on Mon Aug 12, 2019 11:17 am, edited 1 time in total.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

aranginor
Giant
Posts: 131
Joined: Fri Dec 05, 2008 2:32 pm

Re: Pathfinder Spell Database Library (UPDATED 19.0811.1)

Post by aranginor »

New version up (19.0811.1)
1) Not sure if you already do this or not, but when setting the width of a new graphic set, maybe have it check for the "even/divisible by 3" rule so people can't mess it up.
2) Give the "Warning" under the search bar a tooltip with the extra warning text. Will be cleaner.
3) Maybe tooltip the "Pathfinder Spells" text to display the theme name, too so you don't have to go to settings>select theme to see which you're currently viewing.
all done

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Pathfinder Spell Database Library (UPDATED 19.0811.1)

Post by Full Bleed »

aranginor wrote:
Sun Aug 11, 2019 11:10 pm
New version up (19.0811.1)
1) Unfortunately, the theme tool-tip broke a bunch of other tool-tips.
2) Might want to add the new theme (Primal Skin) that I created above. (Edit: Of course, it would have been nice if I'd included it! Now attached above. :oops: )
3) I think the Theme tab should be more clear when you're editing a Theme and when you're creating a new one (maybe make "Create New Theme" its own button.) Right now you click on the Theme tab and then "Choose Theme"... it's unclear what you're choosing it for at that point. There is a lot of text about what New does...

EDIT:

4) The rules section should have a GM only section describing the custom functions that PF Spells has: linkSpell, showSpell, getSpellDetail, getSpellDetailList, searchSpells, getClassSpellList, getDomainSpell, getBloodlineSpell, gotoBloodline/Domain/Class/Spell. I think that's all of them...
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Pathfinder Spell Database Library (UPDATED 19.0811.1)

Post by Full Bleed »

Full Bleed wrote:
Mon Aug 12, 2019 11:15 am
1) Unfortunately, the theme tool-tip broke a bunch of other tool-tips.
Here is a quick fix for the tooltip issue.

Replace the function "graphic" on Lib:PFSpells with this:

Code: Select all

[h: imageName = arg(0)]
[h: hid_graphics = pfspells.playerget("graphics")]

[h, switch(imageName), code:
	case "title": { [h: hid_offset = 1] };
	case "classes": { [h: hid_offset = 2] };
	case "bloodlines": { [h: hid_offset = 3] };
	case "domains": { [h: hid_offset = 4] };
	case "schools": { [h: hid_offset = 5] };
	case "descriptors": { [h: hid_offset = 6] };
	case "rules": { [h: hid_offset = 7] };
	case "chat": { [h: hid_offset = 8] };
	case "home": { [h: hid_offset = 9] };
	case "settings": { [h: hid_offset = 10] };
	case "classhome": { [h: hid_offset = 12] }]

[h: hid_index = 30 + (50 * (hid_graphics-1)) + hid_offset]
[h: hid_entry = table("pf.spells.images",hid_index)]
[h: hid_theme = pfspells.getTheme(hid_graphics)]
[h: hid_name = if (imageName == "title", "Theme: " + json.get(hid_theme,"name"), upper(imageName, 1))]

[h: macro.return = "<img border=0 alt='" + hid_name + "' src='" + tableImage("pf.spells.images", hid_index) + "'>"]
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

Darkfenrir92
Kobold
Posts: 1
Joined: Sun Nov 18, 2018 8:14 am

Re: Pathfinder Spell Database Library (UPDATED 19.0811.1)

Post by Darkfenrir92 »

Hi all! I'm using this great macro but i have something that doesn't works.
Can anyone explain to me why I can't link (or search) a spell that contains 3 or more words? Substantially the macro "spell link" works only with spell that contains 2 or 1 words.

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Pathfinder Spell Database Library (UPDATED 19.0811.1)

Post by Full Bleed »

Darkfenrir92 wrote:
Sat Jun 13, 2020 6:43 am
Hi all! I'm using this great macro but i have something that doesn't works.
Can anyone explain to me why I can't link (or search) a spell that contains 3 or more words? Substantially the macro "spell link" works only with spell that contains 2 or 1 words.
Unfortunately, Aranginor has vanished so he's not likely to provide any help. And I've significantly modified this for my framework so a lot of the changes I've made won't work with the original.

But I took a look at the issue and there is something wrong with one of the user defined functions that capitalizes input when entering link names and searches.

The function was designed to make sure that people could do spell searches and spell links without capitalizing the correct letters in spell names, but it appears to create an invalid string list out of the spell name instead of a proper string.

This seems to fix the problem...

Replace the function "capitalize" on Lib:PFSpells with this:

Code: Select all

[h: inputSpellName = trim(arg(0))]

[h: retVal = ""]

[h: inputSpellName = replace(inputSpellName, ",", ";comma;")]

[h: inputSpellNames = stringToList(inputSpellName, " ")]

[h: properSpellName = ""]

[h, FOREACH(spellWord, inputSpellNames), CODE:
	{
		[h: newString = upper(substring(spellWord, 0, 1)) + lower(substring(spellWord, 1))]
		[h: newString = replace(newString, ";comma;", ",")]
		[h: properSpellName = properSpellName + " " + newString]
	}
]

[h: properSpellName = trim(properSpellName)]

[h: retVal = replace(properSpellName, "  ", " ")]

[h: macro.return = retVal]
There may still be some spells that won't link or search properly, but this should fix the problem with it only working with 1 or 2 word spells.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

Post Reply

Return to “User Creations”