MayhemLikeMe Posted September 9, 2018 Report Share Posted September 9, 2018 I've run some forum searches but can't find an answer on this. I'm editing an export template for a Heroic campaign to include equipment weights. I've been able to add a column for the weight of each item of equipment, and add total rows for total carried weight and total of all equipment weight. But the one thing I can't figure out is how to include an indicator for each item of equipment showing whether it is carried or not. It seems like there would be some kind of export tag associated with the "carried" check-box for equipment, but I can't find it in the documentation (and have not had an luck with taking some reasonable guesses based on other equipment related tags). Anyone know the tag(s) for carried equipment? Or if no tag, any other ideas on how I could separate/sort the carried and non-carried items? (Other than manually organizing them into separate lists in the HD program's equipment tab, which is my current but sub-optimal solution.) Thanks! Quote Link to comment Share on other sites More sharing options...
Simon Posted September 9, 2018 Report Share Posted September 9, 2018 Three containers/tags that should help: <!--TOTAL_CARRIED--> - gives the total weight of carried items <!--IF_CARRIED--> ... <!--/IF_CARRIED--> - container that will only have contents included if the item is carried <!--IF_NOT_CARRIED--> ... <!--/IF_NOT_CARRIED--> - container that will only have contents included if the item is not carried Quote Link to comment Share on other sites More sharing options...
MayhemLikeMe Posted September 9, 2018 Author Report Share Posted September 9, 2018 Perfect, the IF_CARRIED container was exactly what I needed. I'd tried incorrect things like EQUIPMENT_IF_CARRIED, IF_EQUIPMENT_CARRED, etc. but hadn't stumbled on the correct form. It works. Thanks! Simon 1 Quote Link to comment Share on other sites More sharing options...
MayhemLikeMe Posted September 9, 2018 Author Report Share Posted September 9, 2018 One more, on a related topic - any way to control the number of decimal points displayed in the output of the <!--MATH--> container? Looks like when I use MATH to find TOTAL_WEIGHT minus TOTAL_CARRIED, the output is rounded to the nearest unit instead of carrying 2 decimal places like individual items have on their EQUIPMENT_WEIGHT or that either of the totals tags have on their own. I'm creating a table that lists all the Carried items first then shows a row with the total_carried, then lists all non-carried items and uses MATH to show that lists total weight, then finally a row showing the grand total with total_weight. Everything except that MATH output is showing numbers in 0.00 kg format. I can add the " kg" for the MATH output with HTML but would like to show that output with two decimal places just like the other weight functions. Thanks! Quote Link to comment Share on other sites More sharing options...
Simon Posted September 10, 2018 Report Share Posted September 10, 2018 The MATH container is going to use the HERO System rounding rules (don't get me started...) and output whole numbers only. You'll need to look to use scripting internal to your export (e.g. JavaScript in an HTML export) to sum and display values with 2 decimal places. Quote Link to comment Share on other sites More sharing options...
MayhemLikeMe Posted September 11, 2018 Author Report Share Posted September 11, 2018 Ah, HERO rounding. Well I was afraid that’s what it was, since that’s what you’d want for other potential uses of MATH container. So...Javascript in my export, hmm? Hahaha who need 2 digit precision kgs on the items they’re *not* carrying anyway! Our players can just have rounded non-carried weight and they can LIKE it! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.