04-02-2020, 11:54 PM | #1 |
Join Date: Sep 2004
Location: Orem, Utah, USA
|
Parent/child relations in a template
Is there a way to save parent child relationships between advantages into a template so that when the template is loaded a desired relationship will be shown in the advantage list? I'm using the Phoenix sheet if that makes a difference.
|
04-03-2020, 01:26 PM | #2 |
Join Date: Aug 2004
Location: Binghamton, NY, USA. Near the river Styx in the 5th Circle.
|
Re: Parent/child relations in a template
The parent trait can use parentof() to specify traits that should be children of it. This will require that the parent trait either be a new advantage or is designed using the creates() tag in a larger template.
__________________
Eric B. Smith GURPS Data File Coordinator GURPSLand I shall pull the pin from this healing grenade and... Kaboom-baya. |
04-05-2020, 06:47 PM | #3 |
Join Date: Sep 2004
Location: Orem, Utah, USA
|
Re: Parent/child relations in a template
I'm clearly doing something wrong but I'm not sure what. I created this parent advantage,
Code:
Astral Projection, 0,tl(),usernotes(),familiarities(),description(), cat(Exotic,Paranormal), parentof(AD:Insubstantiality, AD:Warp, AD:Invisibility (electromagnetic)) |
04-07-2020, 06:37 AM | #4 |
Join Date: Aug 2004
Location: Binghamton, NY, USA. Near the river Styx in the 5th Circle.
|
Re: Parent/child relations in a template
The issue has to do with what order traits are added in. In a trait (a template, here) the creates() tag is processed first, then the adds() tag, then the parentof() tag. The problem is that the template adds the parent item using the creates() tag, and at that time the items in the adds() tag have not yet been processed, so they are not present. They need to be added as part of the parent item; that is, they need to be in the parent items adds() or creates() tags.
__________________
Eric B. Smith GURPS Data File Coordinator GURPSLand I shall pull the pin from this healing grenade and... Kaboom-baya. |
04-07-2020, 11:21 AM | #5 |
GCA Prime
Join Date: Aug 2004
Location: Portland, OR
|
Re: Parent/child relations in a template
Alternatively, if you have it already working one way, the childof() tag does the inverse of parentof(), and has an item make itself a child of an existing trait.
Honestly, I don't know if parent/child will work (points-wise and organizationally) correctly inside an owner/component (what templates do) structure. You may be better served to make a mini-template of your desired parent/child, and add that template from the owning template.
__________________
Armin D. Sykes | Visit my GCA5 blog for updates and previews. | Get GURPS Character Assistant 5 now at Warehouse 23. Last edited by Armin; 04-07-2020 at 11:24 AM. |
Thread Tools | |
Display Modes | |
|
|