|
Senior Member
Join Date: Feb 2013
Posts: 357
|
Hey Sendric, can you look at the Discipline Weapon Focus ability for the Swordsage (Tome of Battle)? I got it to apply Broadcast.WepFocus to each of the discipline weapons but when I tried to assign WepFocus.eachweapon to the hero it kept giving an invalid tag error
I have a Patreon and PayPal. Donations are appreciated but are not mandatory. They are only to show support while I program stuff. |
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
Code:
doneif (field[usrChosen1].ischosen = 0) perform field[usrChosen1].chosen.pulltags[WepFocus.?] perform hero.pushtags[WepFocus.?] var weapons as string weapons = tagids[WepFocus.?, "|"] foreach pick in hero where weapons perform eachpick.assign[Broadcast.WepFocus] nexteach Last edited by Sendric; August 17th, 2022 at 03:53 AM. |
|
#2 |
Senior Member
Join Date: Feb 2013
Posts: 357
|
Quote:
the problem is this line Code:
perform field[usrChosen1].chosen.pulltags[thingid.w?] id = tagids[thingid.w?, "|"] focus = replace(id,"thingid","WepFocus",0) perform hero.assignstr[focus] I have a Patreon and PayPal. Donations are appreciated but are not mandatory. They are only to show support while I program stuff. |
|
#3 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
Edit: Changing the timing messed up the candidate expression. I don't know why the script needs to adjust that so I made some changes to remove that part of the script. I also added some text to the description so users can at least see what weapons they'll be getting weapon focus for. See attached. Last edited by Sendric; August 23rd, 2022 at 05:03 AM. |
|
#4 |
Senior Member
Join Date: Feb 2013
Posts: 357
|
Quote:
I have the candidate expression the way it is due to feats from Path of War that will allow you to swap out disciplines for different ones. In that instance, the Swordsage would need to find the thing for that discipline instead of the one forgotten. I'll do some working and see what I can do. I have a Patreon and PayPal. Donations are appreciated but are not mandatory. They are only to show support while I program stuff. |
|
#5 |
|
|