View Single Post
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old February 20th, 2007, 04:05 PM
At 06:04 PM 2/17/2007, you wrote:
Quote:
First, please add more information about what can go in the condition statement of an override. It deserves it's own page in the manual.

How do I set an override depending on what the unique ID of the parent is?

The child unit in question has different stats, depending on what unit is selecting it as a parent.
Overrides are designed for use with different rulesets. As such, they are based solely on GLOBAL tags. There is no way to have an override based on the parent unit. If a child unit differs based on a parent unit in some way, those differences need to be handled via conditional links and options on the child unit in conjunction with the parent unit.

So you'll need to have the parent unit inform the child unit who it is. This can be done with one or more tags either passed down to the child unit or reference by the child within the parent. Once the child unit knows which parent is involved, it can make appropriate adjustments to customize itself.

Remember that you can use tags with a numeric suffix. By using "tagvalue" on a wildcard tag specification, you could have the parent unit specify the value to be used for a stat within the child unit. For example, the parent might assign the tag "group.value7" to the child, and the child could extract the value from the tag "group.value?", which could then be assigned to a stat value of the child.

Hope this helps,
Rob
rob is offline   #2 Reply With Quote