• 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

Handling Linked Attributes.

Kathorus

Well-known member
I am working on a dataset that contains skill linkage, it is almost exactly like the skeleton files.

I have come across a skill that should allow the user to type in an appropriate name and have tagged it the the User.NeedDomain tag. In addition it also allows variable assignment of the attribute to be linked.

My first thought is to make one skill per attribute, so there will be a skills like the following:

Skillname (Strength)
Skillname (Intelligence)
etc...

Then, the player can choose the appropriate attribute and fill in the name. However, before I do that I was wondering if anyone had a way for the player to choose the attribute at run-time.
 
You can use a menu_things to offer a drop-down selection of all the attributes to the user.

Then, you'd add code that re-assigns the linkage:

Code:
perform setlinkage[skillattr,Attribute,field[usrChosen1].chosen.tagids[thingid.?,"|"]]
 
Code:
if (field[usrChosen1].ischosen <> 0) then
  if (field[usrChosen1].chosen.tagis[component.Attribute] <> 0) then
    change the linkage
 
Back
Top