Try out the latest build.
The development of the engine for Busty Barrister Barbara has been going well. A few days ago I figured out how to deal with branching which was one of the last missing features. I’ve done this before in plenty of other games. What I normally do is:
- Make sure every event has an identifier.
- Chain events together with a nextEventId
- Create Decision events with multiple nextEventIds.
const event1 = { id: "1", nextEventId: "2", message: "hello" }
const event2 = { id: "2", nextEventId: "3", message: "hello to you too" }
const decision = { id: "3", options: [
{ text: 'Say hello again', nextEventId: '4' },
{ text: 'Ask what time it is', nextEventId: '14' },
{ text: 'Stare at them', nextEventId: '24' },
]}
That works pretty well. Then I’d store all the events in a HashMap like this.