HeroGM Posted June 20, 2021 Report Share Posted June 20, 2021 1: How do I do a plug-in for HD? plug-in directory, call the external classes. Anything else? 2: how can I pull out information from the notes section in the characteristics and other pre-made areas? for example on Size (for vehicles) all the length, height, etc is in the Notes, I want to pull them out and make their own items of them. Similar to what the 5th edition sheet was. Quote Link to comment Share on other sites More sharing options...
Simon Posted June 20, 2021 Report Share Posted June 20, 2021 Plugins need to be packaged in a .jar file with a manifest containing the following information: author contact description mainClass (the class file containing the "public static void main()" to launch the plugin) name Once packaged, place in the plugins directory and HD will load it during startup. The Notes column on the Characteristics tab are generally compiled from various methods within the relevant Characteristic -- you'll want to look to those to see if you can put the information together differently/the way that you're after. Or you can parse the notes string itself. Quote Link to comment Share on other sites More sharing options...
HeroGM Posted June 20, 2021 Author Report Share Posted June 20, 2021 So there are no easy export tags to grab and pull them out? Quote Link to comment Share on other sites More sharing options...
Simon Posted June 20, 2021 Report Share Posted June 20, 2021 Nothing easy, no. ATTRIBUTE_VALUE will get you the levels that have been added in for height, width, etc...but you'd be doing math from there. I'll also point out that you're going to likely want to stick with the values in the Notes field -- there are some really screwed up calculations required to calculate some things on Vehicles (in particular) that go against all of the rounding rules in the system (which are a whole 'nother topic of discussion). They're generally table-based and follow their own, special logic. Quote Link to comment Share on other sites More sharing options...
HeroGM Posted June 21, 2021 Author Report Share Posted June 21, 2021 Hero? Logic? Quote Link to comment Share on other sites More sharing options...
HeroGM Posted June 21, 2021 Author Report Share Posted June 21, 2021 That's something I meant to ask. How exactly does ATTRIBUTE_VALUE work? Quote Link to comment Share on other sites More sharing options...
Simon Posted June 22, 2021 Report Share Posted June 22, 2021 The contents of the container should be the name of a getter method on the current object -- if a match is found, the container will be replaced with the output from the matching getter method. Quote Link to comment Share on other sites More sharing options...
HeroGM Posted June 22, 2021 Author Report Share Posted June 22, 2021 But we're actually using that Atteibute_value with the item inside? So [a_v]item[/a_v] Quote Link to comment Share on other sites More sharing options...
Simon Posted June 22, 2021 Report Share Posted June 22, 2021 <!--ATTRIBUTE_VALUE-->getTotalCost<!--/ATTRIBUTE_VALUE--> or... <!--ATTRIBUTE_VALUE-->totalCost<!--/ATTRIBUTE_VALUE--> either will work and return the same. 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.