Senior Member
Join Date: Jun 2007
Posts: 273
|
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? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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. |
#2 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
Thank you.
|
#3 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
I add a <existence>!Exist.Runen</existence> to my table ad get the following error message when I add a spell. What is wrong?
|
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
You didn't complete your <existence> element - you need to add a phase & priority to it:
<existence phase="Something" priority="Something">!Exist.Runen</existence> |
#5 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
Ah OK, maybe that ist the problem....
|
#6 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
OK. Now the Expression works fine without errors but the spelltags are still in the taglist.
|
#7 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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 by Mathias; August 26th, 2013 at 07:42 AM. |
#8 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
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 by tkarn; August 26th, 2013 at 08:12 AM. |
#9 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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> |
#10 |
|
|