Senior Member
Join Date: Jun 2007
Posts: 273
|
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 by tkarn; April 2nd, 2023 at 03:58 AM. |
#1 |
Senior Member
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 1,124
|
There's a macro for "Add to the description of the designated thing":
#appenddesc[thing_id, desc] Maybe this would help? Current RPG's: Pathfinder (GM), Pathfinder (Player), Gamma World (GM, Pathfinder homebrew). HeroLab: 3.5 & Pathfinder. HL User Files for PF: Greyhawk Setting, Gamma World (WIP). DM and player of D&D since 1980. |
#2 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
Hmm, Not rallye.
|
#3 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
Hmm, not realy.
The eval Script bringst back an Syntax error. |
#4 |
Senior Member
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 1,124
|
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. Current RPG's: Pathfinder (GM), Pathfinder (Player), Gamma World (GM, Pathfinder homebrew). HeroLab: 3.5 & Pathfinder. HL User Files for PF: Greyhawk Setting, Gamma World (WIP). DM and player of D&D since 1980. |
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,238
|
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?
|
#6 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
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. |
#7 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,238
|
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.
|
#8 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
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 by tkarn; April 2nd, 2023 at 02:02 PM. |
#9 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,238
|
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.
|
#10 |
Thread Tools | |
Display Modes | |
|
|