Member
Join Date: Apr 2014
Posts: 50
|
if you mean this line:
Code:
<linkage linkage="wprofic" optional="yes"/> |
#21 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Try this:
Code:
perform linkage[wprofic].pulltags[Profic.?] |
#22 |
Member
Join Date: Apr 2014
Posts: 50
|
Still not working:
Code:
Linkage pick 'wprofic' not located for current context Location: 'eval' script for Component 'WeaponBase' (Eval Script '#2') near line 12 Code:
if (islinkage[wprofic] = 0) then field[wpSpeed].value += 44 endif Code:
if (islinkage[wprofic] <> 0) then field[wpSpeed].value += 44 endif |
#23 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
So, double-check the weapon you're testing with - make certain that you've defined a linkage for it.
Then, double-check your test character - make certain that the proficiency pick that you want to use for the weapon you're testing with has been added to the character. |
#24 |
Member
Join Date: Apr 2014
Posts: 50
|
On the weapon:
Code:
<link linkage="wprofic" thing="prSwords"/> Anyway, I've also found that when I try to save portfolio with my test heroes I've got such errors: Code:
Attempt to access field 'grIsEquip' that does not exist for thing 'prKnives' - - - Attempt to access field 'grIsEquip' that does not exist for thing 'prSpears' - - - Attempt to access field 'grIsEquip' that does not exist for thing 'prSwords' - - - Attempt to access field 'grIsEquip' that does not exist for thing 'prKnives' - - - Attempt to access field 'grIsEquip' that does not exist for thing 'prSpears' - - - Attempt to access field 'grIsEquip' that does not exist for thing 'prSwords' |
#25 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
You've confirmed one of the things to test. Confirm the other, as well, please - has prSwords been added to the character yet?
For the new error message, looks like you need to look at the pick template you've chosen to use for the table where you're adding your weapon proficiencies. I think you're re-using something without customizing it for the purpose you're now using it for. |
#26 |
Member
Join Date: Apr 2014
Posts: 50
|
OK, I did it, it works (at least for tab_armory) but still got errors - perhaps some places where some display go through all the fields (I've notice that adjustment for weapon have access to proficiencies) so probably I need some additional filtering.
Probably will try to get rid of those tomorrow. Just saw your recent post. Yes, Hero had prSwords. I guess I can indeed have some re-use somewhere - so I'll be doing some clean-up. Thanks. Last edited by Gomo; May 7th, 2014 at 01:59 PM. |
#27 |
Member
Join Date: Apr 2014
Posts: 50
|
I had to add condition:
Code:
if (tagis[Armory.Melee] = 1) then Code:
if (eachpick.field[grIsEquip].value <> 0) then So no more this error for now: Code:
Attempt to access field 'grIsEquip' that does not exist for thing 'prKnives' |
#28 |
Member
Join Date: Apr 2014
Posts: 50
|
Errors again.
My previous test just proved that something is working. After changing this: Code:
if (container.ishero <> 1) then @value = linkage[wprofic].field[prRoll].value else @value = -2 endif Code:
if (tagis[Armory.Melee] = 1) then @value = linkage[wprofic].field[prRoll].value else @value = -2 endif Code:
Linkage pick 'wprofic' not located for current context Location: 'field calculate' script for Field 'wpProfic' near line 7 I tried to remove sumary statblock, tab_proficience, tab armory, sumary_armory enitrely but nothing helped. Also I need somthing to assign the value -2 if any needed proficiency is given to hero - right now what I have is not working (also with "if (container.ishero <> 0)" ). How can I properly test it? |
#29 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
There is a better test to determine if a linkage has been established (container.ishero is entirely unrelated to linkages, and won't tell you anything relevant).
Here's the page on the wiki that describes all the actions and tests you can do from the pick context (which is the context of a field calculate script): http://hlkitwiki.wolflair.com/index....ext#references I'd like you to study that and see if you can figure out the answer for yourself. If not, I'll point you at the answer. That way, you can start learning what the code actually means, instead of just copying random things without understanding what they do. |
#30 |
Thread Tools | |
Display Modes | |
|
|