Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Authoring Kit (http://forums.wolflair.com/forumdisplay.php?f=58)
-   -   Removing Spells (http://forums.wolflair.com/showthread.php?t=45489)

tkarn August 24th, 2013 04:19 AM

Removing Spells
 
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?

Mathias August 24th, 2013 10:52 AM

Here's the wiki page that lists everything that you can put into a table_dynamic: http://hlkitwiki.wolflair.com/index....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.

tkarn August 25th, 2013 12:31 AM

Thank you.

tkarn August 25th, 2013 09:05 AM

1 Attachment(s)
I add a <existence>!Exist.Runen</existence> to my table ad get the following error message when I add a spell. What is wrong?

Mathias August 25th, 2013 02:38 PM

You didn't complete your <existence> element - you need to add a phase & priority to it:

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

tkarn August 26th, 2013 05:03 AM

Ah OK, maybe that ist the problem....

tkarn August 26th, 2013 06:44 AM

OK. Now the Expression works fine without errors but the spelltags are still in the taglist.

Mathias August 26th, 2013 07:27 AM

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.

tkarn August 26th, 2013 08:09 AM

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?

Mathias August 26th, 2013 08:19 AM

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>

tkarn August 26th, 2013 08:26 AM

Ah OK, I try it.

tkarn August 26th, 2013 09:01 AM

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....

Mathias August 26th, 2013 09:10 AM

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.

Mathias August 26th, 2013 09:12 AM

Oh, something quick to check - do all of the tables that are displaying these things have alwaysupdate="yes" set?


All times are GMT -8. The time now is 10:37 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.