💬Dialog Game minification

by Ricardo “Rudxain” Fernández Serrata

Version 1 (September 26, 2023)

Download (59 downloads)

Proof of Concept of EXTREME flow minification using a dictionary and a choice log. With this method, the minification ratio approaches
♾️infinity! because it has constant block-count while also holding an arbitrary amount of dialogue.

If you want a richer set of choices, you can adapt this to use a Choice Dialog instead. This has advantages such as saving game-state on dialog close, and making Var Set unnecessary.

The problem with Choice Dialog is that it's more complex, and only has title without message, so space is limited unless you use notification.

An advantage of using a dictionary is that you don't need to implement a binary tree using a multidimensional array, the dictionary maps everything for you (so you can add branches easily) and only needs a unique value for each unique line of dialogue (I used a bit string. If you use 3 choices you'll need a ternary string, if 4 then cuaternary and so on)

Of course, you don't need to fill up memory by appending digits to a log. You can assign ANY name you want to each "scene" and avoid appending by just overwriting the "log" with the next scene that you want to show. This makes it easier to track all scenes and know which is which instantly. It also gives you freedom to "teleport" back and forward in time.

AndroidQuest wouldn't need Premium if they used this technique.

Similar: llamalab.com/automate/community/flows/18413

Rudxain profile: llamalab.com/automate/community/flows/42921

LICENSE: https://unlicense.org

4.0 average rating from 3 reviews

5 stars
1
4 stars
1
3 stars
1
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.