• 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

Spell filters

MToscan

Member
I was playing last night with a Cleric that fell under a silence spell.
Since the cleric was decently high level, it was hell browsing through his spells to see which ones he could cast that had no vocal components.
If I can, I'd suggest a feature to filter available spells based on components.
If I have my arms held, I'd like to see which spells I can cast that only have vocal components.
If I have lost my spell pouch, I'd like to see which spells which require material components I cannot cast anymore until I go in town.
Etc...
 
Since all the text in the description box is searchable, you can get close to this with the existing filter mechanisms. Searching for "V" is too general, but how often does ": V" or "V," or "components: V" appear, unless it's among the spell components listing.

A more complex search capability for everything in HL is on the to-do list, of course.
 
Have been trying to implement this as a spell effect condition... thusfar the following has been working.
Code:
    foreach pick in hero from BaseSpell where "!Helper.CustomItem"
      if ( eachpick.tagis[sComp.V] <> 0) then
        eachpick.field[sIsOver].value = 1
        eachpick.field[CustDesc].text = eachpick.field[CustDesc].text & "{br}Currently disabled as caster's lack of speech precludes spells with a verbal component."
      endif
      nexteach
Setting sIsOver to 1 is kind of a kludgy hack, though... just picked that since it redlines the spells. Is there a more elegant way to do this similar to Helper.ftDisable or Helper.SpcDisable for spells?
 
I posted this question in another thread, but it got buried pretty fast. Anyone know of a mechanism similar to Helper.SpcDisable or Helper.ftDisable that can be used to disable select spells (such as those with the sComp.V tag for the inability to cast verbal spells while silenced) and/or spellcasting as a whole (for Transformation)?
 
Please don't post barely related questions to other threads because I haven't answered the original yet. sIsOver is the only disabling mechanism that currently exists for spells.
 
Eh? It was related for two different spell adjustments... which I listed... and which I'd hoped to add there after figuring out the mechanism for it.
Pardoneh mwah.

Anyways, thanks for the heads up. I haven't figured out a way to access a list of the Helper objects as they seem to live in the compiled part of the data files and the editor doesn't have a means I've found for poking around in their guts.
 
BTW, I wouldn't recommend doing a silence spell adjustment yet. The effects of the spell are probably best handled within the definition of how spells work, rather than from an external thing (I want to be able to set flags for not having any material components/not having the expensive components for this spell, or not being able to gesture, or not able to speak, that the spells look up and apply the effects of, so all the Silence adjustment will do is set the flag).

When you do Transformation, just skip the "no spellcasting" part - the user can ignore that themselves.
 
Back
Top