Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Hi, I would really appreciate assistance with one last thing.

What I intend to do is set up a token system where, if a player has read through a certain piece of dialogue or said yes to something, a token is set to "true". In other parts of the game, if the token is detected to be "true", a new button will appear. This is so that the player has to unlock the next chapter before reading it, or to add a new item to the character's inventory.

I've managed to do this before in the Quest game engine. Here is a photo of the script I used to do this.

Here is a copy of the script from the Quest game engine:

if (HasSeenPage(Chapter1Page1)) {

  AddPageLink (Chapter select page, Chapter2, "Chapter 2")

}

I have tried to do this with variables in Tuesday. Here is a screenshot of the variable I tried to do this with.

^ In the block, where the token will be set to true once the scene has been seen

^ In the menu where variables are made

Would this be a functional translation to code for Tuesday?:

if (HasSeenBlock(Block1Scene1Dialog1)) {

  Add.button{border-radius:8px;backdrop-filter: blur(12px);text-align:center;} (MainMenu, Block2, "Chapter 2")

}

Lastly, do I need to make any additional variables, to account for if the token is set to "false"?

not "true"; / token1="true";
correct simply true

It is better to use numbers 0 and 1.

to check use the element "legacy_choice"

https://kirilllive.github.io/tuesday-js/doc_editor.html#legacy_choice

The Choice and Art elements have a show or hidden function depending on the value in the query.

assign function to variable TuesdayJS won't allow

(+1)

Thank you so much for helping me again! I'm really grateful for Tuesday and all of the help you've given me!