rakugoteam / Rakugo-Dialogue-System

Inspired by Ren'Py, Rakugo is a project aiming to provide a way to make narrative-based games on Godot easily. Simplify your project, if it is a visual novel, point and click, RPG, interactive text game or many other styles and blends of styles.
https://rakugoteam.github.io
MIT License
221 stars 7 forks source link

Fix Ask, is not correspond to the doc #245

Closed theludovyc closed 1 year ago

theludovyc commented 1 year ago

In the doc [var_name] = ? [character_tag] [question] [placeholder]

In rakugo [var_name] = [character_tag] [question] ? [placeholder]

The doc version is better.

Plus the current ask regex "^(?<variable>{VARIABLE}) = ((?<character_tag>{NAME}) )?(?<question>{STRING}) \\? (?<default_answer>{STRING})$"

Force the user to add a space at the end after the '?', if you do not want to add default answer

Jeremi360 commented 1 year ago

@theludovyc I also think that doc version is better - it easier to find/see where you have asks in script.