Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Kathorus
Member
 
Join Date: Jan 2013
Posts: 61

Old September 13th, 2013, 08:49 AM
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.
Kathorus is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old September 13th, 2013, 08:58 AM
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.?,"|"]]
Mathias is offline   #2 Reply With Quote
Kathorus
Member
 
Join Date: Jan 2013
Posts: 61

Old September 13th, 2013, 09:10 AM
Sweet
Kathorus is offline   #3 Reply With Quote
Kathorus
Member
 
Join Date: Jan 2013
Posts: 61

Old September 13th, 2013, 11:52 AM
How do I throw a test around this to see if the usrChosen1 field has a valid value?
Kathorus is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old September 13th, 2013, 11:57 AM
Code:
 
if (field[usrChosen1].ischosen <> 0) then
  if (field[usrChosen1].chosen.tagis[component.Attribute] <> 0) then
    change the linkage
Mathias is offline   #5 Reply With Quote
Kathorus
Member
 
Join Date: Jan 2013
Posts: 61

Old September 13th, 2013, 12:01 PM
you're the man Mathias
Kathorus is offline   #6 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:59 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.