Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 770
|
Quote:
I am attempting/failing in adding the ability to have the 3 schools and 3 families that let the player pick which trait to recieve a bonus to. I have in right now that the family and school work but I can not make this chooser work. I am not sure were all I need to add and what all I need to add. I believe that I need to be in the tab_clans.dat (Clans Tab) for the menu and that I have to add two areas one that is going to have the hidden menu for picking a Trait and that I have to add that menu in but I am lost to the hows and whats. I have added the following for the purpose of making this work Added in the traits.str line 97 <identity group="AllowTrait"/> I am not sure were to add the All we need to do is have each family that is selected copy its "AllowTrait" tags to the actor. This is achieved through a single line of script code. We want to do this early so that other mechanisms can base their logic on the presence of the tags. So we end up with the following Eval script. <eval value="1" phase="Initialize" priority="4000"><![CDATA[ perform forward[AllowTrait.?] ]]></eval> |
|
#61 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 770
|
Oh we started this conversation back on page 5 of this thread to help out I have reread it and its got me running in circles.
|
#62 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 770
|
I have all the menus in place its just making that palyer pick work i have a screen shot to help.
|
#63 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
Page references aren't helpful. Each user can configure the number of posts per page, and mine is set to 20, so your post with this question appeared at the top of page 4 for me. Makes it kind of hard to find a reference on page 5, eh? :-)
Please cite the post number when referencing a specific post. You'll find it in the lower left corner of the post, beneath the details on the poster. For example, your new posts are #61 through #63, so this one of mine should be #64. |
#64 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
Quote:
"So how do we get the tags from the family to the actor? We need to write a script that copies them. Since we want all families to do this automatically, we'll add an Eval script to the Family component." I'm assuming you were following the sequence I had outlined. If so, you should have a component with the id "Family". This component contains the particulars of managing the various families for the clans, and the "Family" component set would incorporate this component. By defining the Eval script within the component, it means that every single thing based on the component automatically inherits the script. Consequently, every family you define as a thing (e.g. "Hida") will have the script. That means that every family will automatically forward all the "AllowTrait" tags that are assigned to it up to its container - i.e. the character. |
|
#65 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 770
|
Quote:
|
|
#66 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
It appears I was looking at the wrong posts then. So now I'm not sure if I answered the correct question above. I hope so. If not, please point me to the specific question you want answered and I'll do my best to help.
|
#67 |
|
|