View Single Post
Gumbytie
Senior Member
 
Join Date: Jun 2010
Location: Florida
Posts: 242

Old July 30th, 2023, 03:28 PM
A good start hint, thank you very much. I can sorta see where I am supposed to going with this but Trademark Weapon uses a Chosen field to drive it.

I need this to work on a magic weapon the character "purchases".

So I get to this:
Code:
if (field[grIsEquip].value <> 0) then
   foreach pick in hero where "component.WeaponBase"
      if (eachpick.uniqindex = field[usrChosen1].chosen.uniqindex) then
        eachpick.field[wpDmgBonus].value += 2
        perform #traitprof[skFighting,+,2,"Pathblocker"]
      endif
   nexteach
endif
This of course throws an error because nothing is "chosen". I am not grokking what I need to replace in this line to move forward.
Code:
if (eachpick.uniqindex = field[usrChosen1].chosen.uniqindex) then
So the field[usrChosen1].chosen. section is what I need to swap out I think. Nothing I have tried so far works.
Gumbytie is offline   #3 Reply With Quote