Page 1 of 1

Display turn order

Posted: Tue Jan 24, 2012 12:50 am
by bricks
This is a little change to the the actor display (that I assume almost no one uses) that changes it to show who will take turns between your current turn and your next turn. I was getting sick of not knowing when something was going to take two turns to my one. It also adds a little health display, which could be of some tactical value. If you've never seen this display before, the default key to see this window is "tab". There are a few caveats/issues:

Does not account for speeds other global
Frame is drawn at wrong y coordinate (true for unmodified game)
Id #'s could be more useful - associate numbers with specific names, for example, instead of the whole list
Does not display an actor if it would not take a turn (currently intended, but it would be nice to show all actors)
Some unhandled cases (priority for actors with same speed/energy?)

Also note that any turn order guide is going to just be an estimate. ToME's speed system makes it impossible to perfectly predict how things will play out - stepping on a stun trap during your turn, for example. I'm also not 100% sure of my calculations; they appear accurate, but the turn system is pretty complex. I intend to give the player more conservative estimates (assume, for example, that the actor will take the fastest actions available to them) once I figure out exactly how global speed is applied. If someone wants to grab this concept and run with it, be my guest.

It *will* invalidate your saves. Not sure how to fix that. Remember to change the extension to .teaa, or to extract it into your addons folder.