
I am ready to start writing API (because you can't do the above in a macro, I've checked and asked) and realised I don't know how to get input from the players (such as the damage roll) into the API script.
Ideally the script would:
1. Trigger when anyone hits the "Damage-Roll" macro
2. Store the damage they wanna roll
3. Store how many times it should be rolled (Don't ask, a mate is inventing a system, kind of)
4. Actually roll it that many times, which as far as I am aware should be as simple as:
MakeDamageRollPretty( damageRoll );
for( int i = 0; i < numberOfTimesToRoll; i++ )
{
DelayByXSecondsForSuspense( X );
PutThisStringInChatAndExecuteIt ( damageRollMadePretty );
}
The problem I have is not knowing how to do a bunch of things: Get numberOfTimesToRoll, damageRoll from the player at 'runtime', make it trigger when they click the macro, and... Well tbh, any of it. I'm new to javascript, my background pretty much just C# and some C++ over 3 years ago.
'Elp?
Thanks in advance :)
P.S. rereading that it seems I am basically asking you to write it for me... the problem is I have no idea where to start so advice on where to start would also be handy :)