Member
Join Date: Jan 2013
Posts: 61
|
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. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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.?,"|"]] |
#2 |
Member
Join Date: Jan 2013
Posts: 61
|
Sweet
|
#3 |
Member
Join Date: Jan 2013
Posts: 61
|
How do I throw a test around this to see if the usrChosen1 field has a valid value?
|
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Code:
if (field[usrChosen1].ischosen <> 0) then if (field[usrChosen1].chosen.tagis[component.Attribute] <> 0) then change the linkage |
#5 |
Member
Join Date: Jan 2013
Posts: 61
|
you're the man Mathias
|
#6 |
|
|