Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old August 16th, 2022, 02:51 PM
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.
Illyahr is offline   #1 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old August 17th, 2022, 03:36 AM
Quote:
Originally Posted by Illyahr View Post
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
WepFocus.eachweapon is an invalid tag. I think there's an easier way to handle this. First, change all the thingid.w? tags on the general abilities to WepFocus.w? then apply the following changes to the script on class special starting with the doneif line:

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.
Sendric is offline   #2 Reply With Quote
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old August 22nd, 2022, 08:08 AM
Quote:
Originally Posted by Sendric View Post
WepFocus.eachweapon is an invalid tag. I think there's an easier way to handle this. First, change all the thingid.w? tags on the general abilities to WepFocus.w? then apply the following changes to the script on class special starting with the doneif line:
That doesn't work as WepFocus hasn't been assigned yet. The chooser picks the discipline and is supposed to assign Broadcast.WepFocus tag to each of the discipline weapons. I have that working without issue.

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 need to assign the WepFocus.? tag to the hero for each of the weapons to meet prerequisites for feats and classes. For example: the feat quickstaff requires the hero be tagged with WepFocus.wQtrstaff. If the chooser is Setting Sun, which has quarterstaff as a discipline weapon, it needs to tell that to the hero

I have a Patreon and PayPal. Donations are appreciated but are not mandatory. They are only to show support while I program stuff.
Illyahr is offline   #3 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old August 22nd, 2022, 12:07 PM
Quote:
Originally Posted by Illyahr View Post
That doesn't work as WepFocus hasn't been assigned yet. The chooser picks the discipline and is supposed to assign Broadcast.WepFocus tag to each of the discipline weapons. I have that working without issue.

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 need to assign the WepFocus.? tag to the hero for each of the weapons to meet prerequisites for feats and classes. For example: the feat quickstaff requires the hero be tagged with WepFocus.wQtrstaff. If the chooser is Setting Sun, which has quarterstaff as a discipline weapon, it needs to tell that to the hero
I tested the changes I recommended before I posted it and it does work. The tags appear on the hero. It does look like the script is running later than Weapon Focus so push the script back to Pre-Levels/5000. I've tested this with the example you give above and it works.

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.
Attached Files
File Type: zip 3.5 - Tome of Battle.zip (118.4 KB, 2 views)

Last edited by Sendric; August 23rd, 2022 at 05:03 AM.
Sendric is offline   #4 Reply With Quote
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old August 23rd, 2022, 07:47 AM
Quote:
Originally Posted by Sendric View Post
I tested the changes I recommended before I posted it and it does work. The tags appear on the hero. It does look like the script is running later than Weapon Focus so push the script back to Pre-Levels/5000. I've tested this with the example you give above and it works.

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.
I see where the disconnect is. I have the weapons tagged in the discipline things as thingid.weapon and you have them tagged as WepFocus.weapon.

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.
Illyahr is offline   #5 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:37 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.