
Hi! I am new to Roll20 (playing DnD5e) and new to javascript as well. But I can learn best if I have a specific task in mind .... I have added actions for my NPCs/creatures for attacking (I think like those added with TokenAction), plus a reference to a target. Now, if my creatures attack player it is written into the journal (attack rolls, damage, and target of attack). What I want to have is a script that captures such a message and adds a button below that message, 'apply damage'. I am well aware of dozens of cases where such damage shouldn't be applied automatically, but most combats are standard combats. So I am satisfied to 'manually' decide if the situation is a standard situation and save a lot of time when applying the damage to the targeted player. It would be great if players could hit such a button also, so that I don't have to change hps of my monsters by myself. I really think this could save a lot of time. I am looking through the codes of applydamage.js for example, and I think I can figure out how to do this from here, _if_ the functionality of such a button is possible at all. So my question is: Is this possible or are there any severe problems to solve? In the forum this idea has been mentioned several times, but I didn't find a finished script :-) Best regards, Norman