Trekiros / battleSim

A simple encounter simulator for TTRPG battles, to help game master plan fun games.
battlesim-zeta.vercel.app
50 stars 19 forks source link

Added the "No other action is available" or "low priority default" condition #19

Closed RKO closed 1 month ago

RKO commented 2 months ago

I have run into situations, especially with player characters, where it was hard to define the priorities of abilities with the current conditions. Especially if you have multiple 'default' attacks that have charges/spell slots, then 'A use of this action is available' was not enough.

I'm not sure if this is the way to go, as it might be better to just add a priority system to attacks, so it first checks the condition, then the priority and lastly the current way of sorting by name.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
battlesim ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 0:55am
Trekiros commented 2 months ago

Hmm, I was convinced that in the case where two actions are equally valid, we used the first one in the list. I didn't remember using alphabetical order 😬

Would switching to "whatever order we find" be a good way to handle your cases? I can add a very simple drag and drop UI thingy to make it easier to reorder your actions, if necessary

RKO commented 2 months ago

Yes, I actually think that would be much better, as that will work with all conditions of the same type!