|
Junior Member
Join Date: Feb 2017
Posts: 7
|
Sorry, I have no idea how to word this. I need to write a script for a class I'm building, and I'm frankly rather lost. What I'm doing is a modification of the Disruptive Strike/Improved Disruptive Strike from the Hunter class. Improved Disruptive Strike gives the user an additional use of Disruptive Strike as an encounter power per encounter.
The script for Improved Disruptive Strike is as follows: Quote:
Last edited by sleepyspoonie; May 23rd, 2017 at 06:29 AM. |
|
#1 |
Junior Member
Join Date: Feb 2017
Posts: 7
|
I expect it would go something like this, with the parts I don't know how to write out marked by **
Quote:
|
|
#2 |
Senior Member
Join Date: Jul 2008
Posts: 1,321
|
I had my lovely and patient coding expert take a look at this, and she said:
Quote:
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:
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 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 |
||
#3 |
|
|