• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Assembling list of spells without repeating

frumple

Well-known member
I am trying to assemble a master list of all the spells that can be used for spell-like abilities according to the class order given by Paizo (Sorcerer, Wizard, Cleric, Druid, Witch, Alchemist, Bard, Paladin, Ranger, Other).

The problem I am running into is for spells that have two or more listings with different levels. For example the spell Ablative Barrier is a 2nd or 3rd level spell, but for spell-like abilities I only want the version that is a 3rd level spell.

Anyone have ideas on how I can compare different versions of the same spell, but choose the one I need? Ideally, I would love to use a tag, but we cannot add tags to things that are not bootstrapped.
 
I saw you did that list a few weeks ago. It has been very helpful.

I guess I can do some kind of nested foreach loops that compare and filter based on each spell's name, but that is going to take a large amount of cycles. I was hoping there was something more efficient.
 
When I need to know which version of a spell belongs to a particular class, I add a scroll to a hero and filter for the name of the spell. That shows all the different levels available and also shows the different classes that cast that spell at that level in the header.
 
I guess I wasn't being clear of my exact needs.

What I am trying to do is make a panel that allows a template to add spell-like abilities of the user's choosing along with how many times a day, etc. (This is for the Amalgam and Eldritch templates in Advanced Bestiary). When the user selects the integrated magic augment or the spell-like ability eldrtich ability I am having a panel come up that allow the user to select the spell as well as specify the times per day. If a just populate my portal with everything from component BaseSpell I get many repeated entries. I want to trim it down to acceptable spell-like ability candidate spells.

I am modeling the panel to be something similar to the Advances "Gain a New Ability" panel in Alternity.

This is what I have in mind. FYI, all the following are from the Alternity data set which I am using for illustrative purposes.

When the user selects the thing that adds a spell-like ability something similar to this will come up:

2014-12-07_22-57-42.jpg

(Instead of the date fields and notes section it will have selectors for times per day, caster level, etc)

When the user selects the chooser something like this will come up:

2014-12-07_23-03-24.jpg

This is where I need to list the spells and limit them to permissible ones for spell-like abilities.

In an ideal world, spells would have some sort of tag that specifies if it the version to be used for a spell-like ability. However, lacking that I am trying to find another solution. :confused:
 
Ah, so you're trying to build a candidate expression which only would include spells of a certain class if multiple classes can cast it at different levels? That is a tough one.
 
I checked with Colen to see if he could think of a way to construct such a candidate expression, and we couldn't figure out a way to do it well. The "tag one version of the spell" would probably work, but implementing and maintaining that would be a major undertaking. I think this might be an area where it's best to rely on the user to use their own discretion, and spare both wall and head.
 
I realize this thread is a few months old, but I came across it a few times recently while searching for solutions to a similar problem I had. I managed to come up with a reasonable solution to my probem, so I figured I'd link my work in case it helps with your issue. I was trying to add only the lowest level version of each spell to a class spell list, but you could use the same spell-name-text-string-with-"if (pos(x, y) < 0) then"-statements strategy, and just search different class lists in the order you want instead of searching different spell levels in ascending order.
 
Back
Top