Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 273

Old August 24th, 2013, 04:19 AM
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?
tkarn is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old 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.
Mathias is online now   #2 Reply With Quote
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 273

Old August 25th, 2013, 12:31 AM
Thank you.
tkarn is offline   #3 Reply With Quote
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 273

Old August 25th, 2013, 09:05 AM
I add a <existence>!Exist.Runen</existence> to my table ad get the following error message when I add a spell. What is wrong?
Attached Images
File Type: jpg Error.jpg (77.9 KB, 3 views)
tkarn is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old 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>
Mathias is online now   #5 Reply With Quote
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 273

Old August 26th, 2013, 05:03 AM
Ah OK, maybe that ist the problem....
tkarn is offline   #6 Reply With Quote
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 273

Old August 26th, 2013, 06:44 AM
OK. Now the Expression works fine without errors but the spelltags are still in the taglist.
tkarn is offline   #7 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

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

Last edited by Mathias; August 26th, 2013 at 07:42 AM.
Mathias is online now   #8 Reply With Quote
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 273

Old 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?

Last edited by tkarn; August 26th, 2013 at 08:12 AM.
tkarn is offline   #9 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old 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>
Mathias is online now   #10 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:24 PM.


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