Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
poizen37
Senior Member
 
Join Date: Dec 2010
Location: Northeast Quadrant
Posts: 128

Old July 5th, 2012, 04:21 PM
This one is turning out to be pretty tricky for me.

Feat reads thus: "The monster’s size bonus to CMD is doubled"

I have very limited XML experience (read: has entered simple stuff in hero lab). How would I go about scripting this? I need it to find and pull out the variable number that is the CMD size bonus.

In short, I need script for (CMD = CMD + sizebonus) which I think I could figure out if I could get the thingid for the sizebonus, otherwise it's a ridiculous series of if/then (if large then CMD = CMD + 1, if colossal then CMD = CMD +8, etc etc etc)
poizen37 is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 10th, 2012, 08:24 AM
Double size bonus to CMB and CMD like this:

hero.childfound[Maneuver].field[tManSize].value *= 2

If it's ONLY CMD then you'll likely have to do the if/then, since tManSize is added to both.
Aaron is offline   #2 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 09:46 PM.


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