Region Highlighting and Instruction Dialogs


Another weekend working on the Tribe Expansion Action. This time I worked on adding region hover highlighting and adding a custom instructions dialog to let players know what to do when the action requests the player to choose the target region.

Both things took more time than expected. Though the hardest by far was adding the instructions dialog because I wanted the text to come from the action script file as parameter to the region selection function. This required me to add extra functionality to the expression parsing system so that it could handle dynamic strings (which I uncreatively call 'mod texts'). While doing this, I almost fell into a rabbit hole trying to handle a very rare case where mod texts can't be parsed when using certain special characters. But I stopped myself after a few hours and decided to leave that rare case unfixed, given that it be easily worked around.

There's still quite a bunch of things to do before I can move on from Action scripts. It is clear now it's going to to take more time than expected. In any case, here's a gif of the region hover highlighting in action. This will let players more easily see which region they are clicking on, since some regions can be very small and region borders will be hard to see in those cases.

Get Worlds - History Simulator

Comments

Log in with itch.io to leave a comment.

nice