New Graphic Set: Celtic Energy
Pathfinder Spell Database Library (UPDATED 19.0811.1)
Moderators: dorpond, trevor, Azhrei, Gamerdude
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: Pathfinder Spell Database Library (UPDATED 19.0805.1)
- Attachments
-
- PFSpells - Celtic Energy Graphic Set.zip
- (327.5 KiB) Downloaded 94 times
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."
Re: Pathfinder Spell Database Library (UPDATED 19.0805.2)
new version up (19.0802.2)
[*]New theme editor
[*]Big changes to how settings are stored. Delete all settings.
[*]Exclusive graphics by Full Bleed
[*]New theme editor
[*]Big changes to how settings are stored. Delete all settings.
[*]Exclusive graphics by Full Bleed
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: Pathfinder Spell Database Library (UPDATED 19.0805.2)
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:
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 89 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."
Re: Pathfinder Spell Database Library (UPDATED 19.0811.1)
New version up (19.0811.1)
all done1) 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.
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: Pathfinder Spell Database Library (UPDATED 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. )
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."
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: Pathfinder Spell Database Library (UPDATED 19.0811.1)
Here is a quick fix for the tooltip issue.Full Bleed wrote: ↑Mon Aug 12, 2019 11:15 am1) Unfortunately, the theme tool-tip broke a bunch of other tool-tips.
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."
-
- Kobold
- Posts: 1
- Joined: Sun Nov 18, 2018 8:14 am
Re: Pathfinder Spell Database Library (UPDATED 19.0811.1)
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.
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.
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: Pathfinder Spell Database Library (UPDATED 19.0811.1)
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.Darkfenrir92 wrote: ↑Sat Jun 13, 2020 6:43 amHi 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.
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]
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."