gurps icon indicating copy to clipboard operation
gurps copied to clipboard

[Feature Request] Prompt for input in On-the-Fly formulas

Open Gloogirl opened this issue 2 years ago • 4 comments

For effects with variable costs like Healing or spells. So the user is prompted to input the amount they want to spend and the OtF formula can use that number to calculate things like cost, damage and healing.

Gloogirl avatar Jun 25 '22 18:06 Gloogirl

Oh, I like this! Now how to get it to work... hmmm...

crnormand avatar Jul 26 '22 17:07 crnormand

The prompt would have to be very simple: something like a single Label and TextField. But yeah, I bet we can do that!

mjeffw avatar Jul 26 '22 20:07 mjeffw

There is a SpellDamage macro and several variants (including one for healing) that do exactly this on the Cool Macros page of the wiki here.

devakm avatar Sep 12 '22 23:09 devakm

Oh, I agree. This would be a great feature. Unfortunately, there's a bit of multithreaded work involved to allow the processing of the macro to stop while we're waiting for the user to enter a value. And allow the macro to stop executing if they cancel.

It's not impossible, but it's a little more work than your standard chat command. but it is definitely on my list

crnormand avatar Sep 13 '22 00:09 crnormand