Scripting: Tag ID question
In the script below I am trying to add Proficiency, Expertise, and Advantage to all Artisan Tools the character is carrying. It is part of a set of 3 scripts on a major Ring artifact.
Everything works fine except I'm at a loss on how to add Expertise (double proficiency). Since the changes to Tools, it looks like Double Proficiency is done by adding the ProfTooDbl.? (where ? is the tag of the Tool - i.e.: gTooTinker for Tinker's Tools) directly to the hero. What I am trying to do is extract the tag from each set of Tools the hero is carrying and assign ProfTooDb.{Tool tag} to the hero from within a foreach loop. I'm at a loss on who to get the appropriate tag, append it to ProfTooDbl. and then assign it. Any help would be greatly appreciated. :confused: Quote:
|
Please note I did this off the top of my head so misspelled/mistype words could happen. :)
Code:
doneif (field[gIsEquip].value = 0) |
Many thanks Chemosh:
I'll give this s try tomorrow. Thx again. |
I was working on a similar artifact, granting advantage to gaming toolsets. My code is pretty much a copy of what is here, but is there a way to have the * show up to show the advantage?
I tried: Code:
doneif (field[gIsAttuned].value = 0) |
Based on what I have seen the tag does not provide the *. That * represents that you have added "situational" text to be displayed on the Pick.
Try this: Code:
doneif (field[gIsAttuned].value = 0) |
Hmm, I tried your situation code and it doesn't work - I get the error:
Quote:
I'm not sure how to assign a matrix field and then add the text to it, although I'm reading the wiki and other threads now. I'm also not sure that assigning a SitList matrix to the tool would even work, since the proficiency gets derived from an equipment "thing" and the code from LW may not be there to see the SitList and generate an * during the output. But, thanks for the clarification - I thought the Helper.Advantage tag generated the *. I'll keep picking away at it. If I can't get it to work, I might put in a feature request. |
All those matrix/fields are part of the "Component" which we non-LW people do not have access too. I know Skills, Saves and ability scores get situational text but I guess not gear.
What you had before using the "DescAppend" is the best your going to get in this case. :( |
All times are GMT -8. The time now is 07:57 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.