loudoweb / fabula

Parser and engine for stories, events and dialogs parsed from xml.
MIT License
4 stars 0 forks source link

Variability #1

Open loudoweb opened 1 year ago

loudoweb commented 1 year ago

Fabula could offer variability through choosing random/procgen text for events and choices.

//here the welcome event hasn't any text so it will search in a list the content
<sequence>
    <event id="welcome"/>
</sequence>
<list id="welcome">
    <event if="condition" text="lorem ipsum"/>
    <event text="dolor amet"/>
</list>

This could even manage to bring more than variability since the event in the list could lead to another sequence depending on randomness or conditions.