• 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

Manioulate description

tkarn

Well-known member
Manipulate description

I want to manipulate the descrition field of a tag via script, but i have no success. Is it possible to add additional text to a tag description? If I try to write to a tag.field[descript].text I get an error: Can not access to a non-derived field. Where can i change it? Is there an other way to become successful?

Thanks.
 
Last edited:
There's a macro for "Add to the description of the designated thing":
#appenddesc[thing_id, desc]
Maybe this would help?
 
Can you simply alter your tag to have the description you want, or do you have a base tag that you want to add something to in certain circumstances?
Just to check: you are doing this with the Authoring Kit (writing your own data set), not just modifying something in an existing data set? If the first, you may need Mathias to make a suggestion or see if there is anything helpful in the Authoring Kit wiki.
 
All information set for tags is fixed, and can't be changed at run-time. I'd use two different tags - different ids, different description text, same name, and switch which tag is present whenever this circumstance comes up. Oh, and make the tag Ids have the same initial part, like Custom.Foo and Custom.FooModified, so that when looking for "do we have 'Foo'", you can test Custom.Foo?
 
I use the Authoring Kit tzo write my own datasets.
Ok, what will I do.

The first component is a list of all available spells.
Component: "spell"

The second component is a list of spellnames according to a "class".
Component: "spelllist"
There is a linkage to the "spell" component and a tagadd to "class".

I want to enter the spelldescription once, in the "spell" component.

In a dynamic table i show the spells from "spelllist" component and want to show the description off the corresponding "spell" when i hover the mouse over the info portal of the tabelentry.
 
Please explain your project some more. I'm not really following what it is you're trying to accomplish, but from what I do understand, I wouldn't use the description text on tags to do it. And avoid code and Ids, please - just tell me the game rules you're implementing.
 
I will do my homebrew system in german, basing on LevelUp (Adv. 5e), but with a minimalized use of the rulesystem - the 5e is to migthy on one side, but some rules are missing.

I want to build the magic rules. There is a pool of spells in one list, with the complete descrition of the spell, entered in the great description text field in the editor. When I add such a tag, the description is shown, when I move my mouse over the info field.

then i have a second list with all spells for f.e. the wizard class. But there is only the name of the spell and a reference link to the complete spellist. I dont want to enter the spelldescription twice, but want to see the description, when i hover the i in that list.

The usage of 2 lists is more clear for me (the editors are well-arranged).

My be the right question is, who can I change, what is shown in the info field, when I move the mouse over the "i"?
I didn't find, where the action "info" is defined. A text search in the files had no result.

Maybe I think to complicated.
 
Last edited:
Can't you just assign a tag to each spell that is a wizard spell, and then for the wizard, show only the sub-set of spells that are for that class (the spells that have that tag)? It sounds like you're defining two different things in the editor to represent the same thing.
 
I have an tag_pick for the second list and with the candidatepick for the template and there I have only the required entries for the selection. My "problem" is, when I have an innate spellability or a second spellcasting class, I have to enter the whole spell twice (I'm a little bit lazy and I have a lot of redundant content), not only the entry in the second list. The tag_pick allowes only one tag for a spell.

Or do you mean a tag, that is defined in the tags.1st file? And assign it with the assign command?
 
Last edited:
it_tagpick is the editor control to use when you should pick 0-1 tags from a category of tags. it_taglist is what to use when you select a list of 0+ tags from a list, all of which apply.

I mean to define a tag group like "SpellUsedBy", and then you'll have several values for that - Wizard, Cleric, etc. Then, on each spell you've defined, set all the SpellUsedBy tags that apply. Then, each class can be set up to only show the user the spells with the tag for that class, but it means you don't have to set up more than one copy of each spell in the editor - you set it up once, set the tags that apply, and then you don't have to do any referencing.
 
Oh, but than there will be an other Problem.

In Prereq expression for the second list, i had the classlevel of the class.
This will Not work in the suggested way When i have a cleric 2 and wizard 4 as multiclass.

Do the candidate expression work with different Tags? F.e. " class.cleric & (Level.1 | Level.2 )" to Show All cleric spells of Level 1 und 2?
 
If this is based on 5e, won't the two classes each have their own tabs for spellcasting? So different expressions can be set up for each one?

Code:
class.cleric & (val:Level >= 1) & (val:Level <= 2)


is how I'd write the tag expression for this - it's about the same at low levels, but at high levels, it's lots less typing to say <= 9 than to include every tag from 1-9.
 
If you're creating a class-based system, it's important to become familiar with agent tabs. Here's another thread where the person was beginning work on a class-based game: http://forums.wolflair.com/showthread.php?t=60834&highlight=agent


Also, this thread has gotten away from the original question - to make things in this forum easier to search for, for future users, I'd recommend that new questions be in new threads, each with a name that describes that problem.
 
If this is based on 5e, won't the two classes each have their own tabs for spellcasting? So different expressions can be set up for each one?

Code:
class.cleric & (val:Level >= 1) & (val:Level <= 2)


is how I'd write the tag expression for this - it's about the same at low levels, but at high levels, it's lots less typing to say <= 9 than to include every tag from 1-9.

Both classes have different panels for their spells.
 
Showing and selecting spells working fine now. But I have a new problem. I post it in a new thread.
 
Back
Top