Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jeremi360 opened this issue May 17, 2023 · 4 comments
Open

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

Jeremi360 opened this issue May 17, 2023 · 4 comments
Labels
enhancement New feature or request proposal proposal how improve Rakugo RakuScript Rakugo Scripting Dialogue Langue
Milestone

Comments

@Jeremi360
Copy link
Contributor

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"
@Jeremi360 Jeremi360 added enhancement New feature or request RakuScript Rakugo Scripting Dialogue Langue discussion need a discussion with our community proposal proposal how improve Rakugo labels May 17, 2023
@theludovyc
Copy link
Collaborator

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
Copy link
Contributor Author

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

@Jeremi360 Jeremi360 removed the discussion need a discussion with our community label Oct 17, 2023
@theludovyc
Copy link
Collaborator

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
Copy link
Contributor Author

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.

@theludovyc theludovyc added this to the 2.1.3 milestone Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proposal proposal how improve Rakugo RakuScript Rakugo Scripting Dialogue Langue
Projects
None yet
Development

No branches or pull requests

2 participants