Ok, why is this not working?
Doing some code and, as far as I can tell, it all works. However, it keeps coming back wrong.
Code:
var stat as string Code:
trunc = length(stat)-5 Code:
stat = "#attrmod[" & stat & "]" Code:
bonus = stat |
length(stat)-5 might be picking up the . before aWIS, have you tried with -4?
|
So the lines
Code:
stat = "#attrmod[" & stat & "]" You aren't actually using the #attrmod macro, it's just text in the string. The field might be different for d20, but in Pathfinder I would change those lines to be something like this instead: Code:
~ make a tag expression to match the right attribute |
Fantastic, that works. :D
The reason I needed this code to work is that it is going to be repeated a lot in Path of War and Path of War: Expanded. Maneuvers and abilities rely on "initiation modifier" instead of just stating what modifier to use. |
Ok, these Things will be able to be shared among multiple classes. How would I go about making these Things check for the tag on the class they are in?
|
I think all class-based special abilities (for d20 and pathfinder) are tagged with a SpecSource.? tag that gives you the id string for the class helper that provides the class special ability.
If it is tagged with SpecSource.cHelpExample, you can find the class helper by searching for thingid.cHelpExample in the Hero container. |
Doesn't help in this regard. These Things have their own unique source so they can be assigned to a class with a script. What I need is to be able to run script that'll pull a tag from the class they have been assigned to
|
Quote:
|
Quote:
I am trying to tell the individual maneuvers to check what modifier the class uses and use that to set the DC |
Quote:
ie: if (tagis[CustTaken.cHelpCru] <> 0) then use STR endif That is, unless whatever you're doing above works. |
All times are GMT -8. The time now is 06:12 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.