• 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

Removing Spells

tkarn

Well-known member
Hi, I try to make so test an easy rulesystem.

I have an advantage that grants me a spellaccess. I make a tab visible and there is a dynamic table, that grants me a spellselection.

If I remove the advantage from my hero, the tab is unvisible, but all the spells are still in the taglist. How can I remove automatically all the chesen spells from the dynamic table?
 
Here's the wiki page that lists everything that you can put into a table_dynamic: http://hlkitwiki.wolflair.com/index.php5/TableDynamic_Element_(Data)

You're going to use either the secondary or existence option for this.

In this scenario:

The user starts adding spellcasting this way, and adds a few spells, then changes their mind and deletes the option that gave them spellcasting, and then changes their mind a second time, and re-adds spellcasting (they might re-add it using a different option that grants spellcasting).

If you want the same spells they selected earlier to re-appear, use a secondary expression for this. In order for this to happen, the spells are actually still present, but non-live while they can't cast spells.

If you want the spells to have been removed as soon as they turned off spellcasting, use an existence expression. This would be more appropriate if you can get to spellcasting multiple ways, and each one has different lists, and you think it's reasonable that a user might change their mind during character creation as to which way they want to add spellcasting to their character.
 
I add a <existence>!Exist.Runen</existence> to my table ad get the following error message when I add a spell. What is wrong?
 

Attachments

  • Error.jpg
    Error.jpg
    77.9 KB · Views: 3
You didn't complete your <existence> element - you need to add a phase & priority to it:

<existence phase="Something" priority="Something">!Exist.Runen</existence>
 
Tell me about how that Exist.Runen tag gets assigned to the hero.

Also, tell me about the timing that it gets assigned at - and what timing your existence expression is being run at.
 
Last edited:
The Exist Tag is in real named Vorteil.

I add and remove it as a advantage with an other dynamic table....

<existence phase="Initialize" priority="200">!Exist.Runen</existence>



The Vorteil Component has a eval script.

<!-- Track the ability on the actor -->
<eval index="1" phase="Setup" priority="5000"><![CDATA[
perform forward[Vorteil.?]
]]></eval>


Maybe there is an opposition to the perform assign function?
 
Last edited:
If your exist tag is named Vortiel, don't you want to test for those tags:

<existence phase="Initialize" priority="200">!Vortiel.?</existence>
Also, your tag needs to be present BEFORE your existence expression runs:

<!-- Track the ability on the actor -->
<eval index="1" phase="Initialize" priority="195"><![CDATA[
perform forward[Vorteil.?]
]]></eval>
 
Does nnot work.

Its the same Situation like in Savage World, when you take the Arcana edge and some spells. After removing the edge, the spells are still in the tag list....
 
Last edited:
I'm sorry, but a simple "does not work" isn't enough information to help me diagnose why it doesn't work. You need to describe what's happening so that I can figure out what's going wrong.
 
Oh, something quick to check - do all of the tables that are displaying these things have alwaysupdate="yes" set?
 
Back
Top