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

Choice (show/hide) if in menu statement in Rakuscript #235

Open Jeremi360 opened 1 year ago

Jeremi360 commented 1 year ago

Example

menu locked_door:
  "Lock pick" show if (has_lockpics > 1) > lockpick_minigame
  "Open Door" if has_key > open_door
  "Open Door" > missing_key
  "Go Back to exploring"
theludovyc commented 1 year ago

Hello :) !

I prose to make only show if in this issue. Hide if is just the invert.

And we can open an another issue for an if/else system to jump Like "Open Door" if has_key > open_door else closed_door

Jeremi360 commented 1 year ago

I prose to make only show if in this issue. Hide if is just the invert.

we can open an another issue for an if/else system to jump

"Open Door" if has_key > open_door else closed_door

@theludovyc Yes this is a good idea and it will be simpler

theludovyc commented 1 year ago

If the show_if return false, I propose to not send it in the choices menu, it is ok for you ? Here signal sg_menu(choices)

Jeremi360 commented 1 year ago

If the show_if return false, I propose to not send it in the choices menu, it is ok for you ? Here signal sg_menu(choices)

@theludovyc Yes, I like this way of handling this.