itch.io is community of indie game creators and players

Devlogs

Input Request Functions

Worlds - History Simulator
A downloadable game for Windows and macOS

The work on action scripts continues. This weekend I expanded the modding framework to accommodate a special type of functions that request user input. These functions, when executed, will interrupt the simulation to wait for the user to interact with the game. Though these won't be constrained to a single type of dialog like decisions do. For example, for tribal migrations, I added a function that when called, will prompt the player to choose a region on the map where the tribe under their influence should migrate to. Hopefully I'll be able to showcase that function in action this next weekend or the one after.

Given the fact that those functions will depend on user interaction, I had to introduce a validation logic on the mod system to prevent mod creators from accidentally letting the AI try to use those functions. In those cases, the game will throw an error while loading the mod, which hopefully will help mod creators figure out the problem rather quickly. Instead of having t wait for the game to crash in the middle of a run.

Next week I'll start working on the UI interaction that will be needed for the player to choose the target region. As I said, I hope to have this function done in a couple days, but it might take a couple of weekends or more.

Download Worlds - History Simulator
Read comments (3)