• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Changing Skill Attributes by selection

Kalladar

Well-known member
I am trying to have an eval script for a trait that chooses two skills and changes their ability checks to use Wisdom. I am not sure how this should look. The selection box debug shows them to be ChooseSrc1.hero and ChooseSrc2.hero. I am not sure how to have the script go through two selections and add wisdom as the parent attribute. Any help would be great. Here is the script I have borrowed and modified so far.


~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)

call fTargetFoc
doneif (state.isfocus = 0)

For ChooseSrc1.hero perform focus.assign[SkillOver.aWIS]
perform focus.assign[Helper.ClassSkill]

For ChooseSrc2.hero perform focus.assign[SkillOver.aWIS]
perform focus.assign[Helper.ClassSkill]

field[abSumm].text = focus.field[name].text & " becomes a Wisdom-based, class skill."
 
I believe fTargetFoc is setting the focus to the first selection, and they you're assigning the tag to that same focus twice.

Try:
PostLevel 10000
Code:
if (field[usrChosen1].ischosen <> 0) then
  perform field[usrChosen1].chosen.assign[SkillOver.aWIS]
  perform field[usrChosen1].chosen.assign[Helper.ClassSkill]
  endif

if (field[usrChosen2].ischosen <> 0) then
  perform field[usrChosen2].chosen.assign[SkillOver.aWIS]
  perform field[usrChosen2].chosen.assign[Helper.ClassSkill]
  endif
 
Back
Top