Friday, September 27, 2019

RPG: Events & Dialog

The event system for the RPG has been significantly improved. Not only have the number of triggers and actions been increased, the code itself has been restructured such that it is much easier to expand the numbers of triggers and actions. You can also have multiple triggers for a set of actions to execute.

But the most significant change from the user's perspective is I can now offer dialog trees to users!

I have a priest in a church on the starting island that offers to heal you for free or teach you the healing spell for a small price.


If you have the gold and you ask for the healing spell...


The new tactic becomes available!


When you're in a conversation, time isn't frozen and you aren't locked in place. If you walk too far from the conversation then it automatically ends.

The new event system can even handle the player's death!

Not a good idea to stand idly by while a slime is killing you...


Oops...


And after you wait for aid, you'll awaken at the nearest healer but with reduced stats.


Just a few more triggers & actions and shops will be supported via the event system!