View Single Post
charlieluce
Senior Member
 
Join Date: Jul 2008
Posts: 1,321

Old May 24th, 2017, 03:30 PM
I had my lovely and patient coding expert take a look at this, and she said:
Quote:
Either add the following 3 lines of XML code or, in the editor click the Edit button for “List of Text Items” and enter Trick Shot, Violent Shot & Fan the Hammer in the boxes for rows 0, 1 & 2.
Code:
      <arrayval field="usrArray" index="0" value="Trick Shot"/>
      <arrayval field="usrArray" index="1" value="Violent Shot"/>
      <arrayval field="usrArray" index="2" value="Fan the Hammer"/>
Quote:
Set your eval script to run at or around Setup 1000, and use the following code:
Code:
  doneif (activated = 0)
  if (compare(field[usrSelect].text, "Trick Shot") = 0) then
    hero.childfound[pwGSDisSht].field[spcMax].value += 1
  elseif (compare(field[usrSelect].text, "Violent Shot") = 0) then
    hero.childfound[pwGSViolSh].field[spcMax].value += 1
  elseif (compare(field[usrSelect].text, "Tan the Hammer") = 0) then
    hero.childfound[pwGSFtHam].field[spcMax].value += 1
  endif
Let me know if this works for you or if you have any problems.

Currently Running: Pathfinder Second Edition
Currently Playing:
Pathfinder First Edition, Star Trek Adventures
Former HL Games: D&D 4e & 5e, Mutants & Masterminds 2E & 3E, Savage Worlds
charlieluce is offline   #3 Reply With Quote