
I've been getting to know Roll20 for a few months now and I'm planning on using it as an aid for table top games once things are back to normal, more than for running ones online. I've been trying out the different system my group tends to use and working out the necessary macros, in a few intances I've come across the problem that what I want it to do, can't be done using macros, so I'm now looking towards the API. However I have no knowledge of computer programming, so before I upgrade to a Pro account and sign up with CodeAcademy to learn JavaScript I wanted to make sure that what I was trying to do could be done through the API. The first issue was writing to token bars. I was planning on using the token bars to represent Hit Points, Temporary Hit Points and Healing Surges in D&D 4th edition, when a power gives the caster or an ally temporary hit points is it possible for it to be automated, could a similar script also be used to apply damage to hit points and reduction in healing surges when they are used. The second one i have come across is with systems that use a Trait + Skill dice roll, where any trait can be combined with any skill, such as the old Whitewolf Vampire system. In Vampire there are 9 traits and over 30 skills so that is a lot of macros to write to do all the possibilities. The obvious option for me was to write a macro that asked for the trait and then for the skill and then rolled that number of dice, but it appears that a query can't pull the information from the character sheet that way. The only way to do it at the moment, is to do the macro with a dice pool query and then work out the dice pool manually by opening up the character sheet to get the trait and skill levels. I'm partially sighted and the character sheet takes up most of the width of a 24" monitor so i can read it, having to open and close it constantly gets rather annoying, unfortunately I don't have room for a bigger monitor and certainly not for a second one. These are problems I have come across so far, no doubt there are other issues I will find the more I delve into it. So would the API help with this and is it time I started banging my head against the brick wall of computer programming and tried to learn JavaScript. Any advice to a complete novice would be welcome.