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
Gomo
Member
 
Join Date: Apr 2014
Posts: 50

Old May 6th, 2014, 11:21 AM
After reading some post and code I still can't figure out how to set proper linkage from my weapons to proficiencies.
To clarify - I want to show beside my weapon statistics in Tactical Console also an according proficiency in that weapon.
So far I was able to set proficiencies for weapons through editor panel.
But now I've stuck.
Within WeaponBase component I have such line
Code:
if (container.ishero <> 0) then
        perform linkage[wprofic].pullidentity[Profic]
		done
        endif
Which isn't working (at least I have errors).
I've set in this component also:
Code:
 <linkage linkage="wprofic" optional="yes"/>
And my proficiencies have Identicty "Profic":
Code:
    <identity group="Profic"/>
.
But I still get those errors:
Code:
Linkage pick 'wprofic' not located for current context
Location: 'eval' script for Component 'WeaponBase' (Eval Script '#2') near line 11
I assume expression container.ishero doesn't fit in that place, so I tried other one that I've found (didn't work).
I don't know if should work in Tactical console at this point.
So what is wrong?
Gomo is offline   #11 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 6th, 2014, 11:59 AM
I'm sorry, but I don't understand the goal of all this. What are you trying to accomplish?
Mathias is offline   #12 Reply With Quote
Gomo
Member
 
Join Date: Apr 2014
Posts: 50

Old May 6th, 2014, 12:19 PM
Beneath is my window from TC panel.
TC_prof_req.jpg
There where is underlined, on the end, I want to show stats for weapon (now it is just a template) and among them a proficiency for that weapon.
It can't be added or subtracted to any other stat because it is handled differently.
Also I've made some roll buttons which at least one of them would need to access that proficiency value
Gomo is offline   #13 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 6th, 2014, 01:00 PM
How are those numbers calculated? (give me the game rules for how they're calculated, not how you're doing it in Hero Lab).
Mathias is offline   #14 Reply With Quote
Gomo
Member
 
Join Date: Apr 2014
Posts: 50

Old May 6th, 2014, 01:12 PM
Each weapon has its proficiency, like swords, staffs etc.
Proficiency bonus is just a number between -2 - +5.
It defines how many re-rolls you are allowed to do in a test, and that's it.
I didn't implemented re-rolls to my roll trigers but at least I would know how meny are they.
Gomo is offline   #15 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 6th, 2014, 01:33 PM
So the proficiencies are something that the user is adding to the character on a different table?

You need to establish a connection between each weapon and the proficiency that applies to that weapon, right?

Are proficiencies specific to each weapon - greatsword and longsword are separate proficiencies? Or are they for weapon classes - greatsword and longsword both use the swords proficiency?
Mathias is offline   #16 Reply With Quote
Gomo
Member
 
Join Date: Apr 2014
Posts: 50

Old May 6th, 2014, 01:42 PM
Quote:
So the proficiencies are something that the user is adding to the character on a different table?
Yes - just like skill but different table, different but similar component

Quote:
You need to establish a connection between each weapon and the proficiency that applies to that weapon, right?
Yes, and I managed to fill that for most of weapons in the editor panel (it even shows a drop down menu)

Quote:
Are proficiencies specific to each weapon - greatsword and longsword are separate proficiencies? Or are they for weapon classes - greatsword and longsword both use the swords proficiency?
There would be probably division for short and longswords, with some relations (like bonus for longswords is that from swords -1 if hero has no longsword proficiency) but right now just swords for all of them would be enough.
Gomo is offline   #17 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 6th, 2014, 01:46 PM
Could you post the entire eval script #2 in the WeaponBase component, please?

The error message you've posted says the error is on line 11, but you haven't posted any code that's at least 11 lines long, so I want to make sure of which error message we're fixing, and where in the code the error is.
Mathias is offline   #18 Reply With Quote
Gomo
Member
 
Join Date: Apr 2014
Posts: 50

Old May 6th, 2014, 01:51 PM
Code:
<eval index="2" phase="Setup" priority="5000"><![CDATA[
		  ~container.parent.field[wpPiercing]
		  ~container.child[gCustMagic].field[gCustEquiv].value
		        ~doneif (container.parent.field[gIsEquip].value = 0)
				~#competencebonus[hero.childfound[kHide], 5]
					~if (linkage[defAttr1].field[attrBonus].value >= linkage[defAttr2].field[attrBonus].value) then
					~perform linkage[defAttr1].setfocus
					~perform linkage[LinkAttr].setfocus
  ~perform linkage[wprofic].field[prRoll].value
  	    if (container.ishero <> 0) then
        perform linkage[wprofic].pullidentity[Profic]
done
        endif
				~if (linkage[wprofic].field[prRoll].value <> 0) then
				 ~(field[wpPenalty].value >= 15)
				~endif
  ]]></eval>
Most of the code are comments, which I use to store some tests.
Gomo is offline   #19 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 6th, 2014, 02:00 PM
The wprofic linkage is defined in the WeaponBase component, right?
Mathias is offline   #20 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 07:38 PM.


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