Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

bitsy

a little engine for little games, worlds, and stories · By adam le doux

Exit from a specific dialog choices

A topic by annasinginthewoods created 11 days ago Views: 36 Replies: 1
Viewing posts 1 to 2
(1 edit)

Hi, guys!

I am working on a game myself and I face some difficulties when it comes to dialog choices. I use Borksy to add the dialog choices hack and the exit from a dialog hack. However, I have no idea how I can allow the player choose a specific option from the dialog and then it will jump right into a specific room. I tried using gpt, and it told me I should do something like

DLG npc1

"""

Where are you going?

{choice

  - I am going to the garden

    {exit "garden"}

  - I am staying at home

    {exit "bedroom"}

}

"""

but it didn't work, the choices is there but it didn't exit and lead me to the specific room. 


Thank you for your help!

(2 edits)


Update 2: 

Ohhh... I see now, the exit hack works with sprite but not item.

----------------------------------------

Update1 : it didn't work suddenly /crying, anyone please helps me

-------------------------------------------

Ohhh.... I solved the issues myself!

the code should be: 

What you going to to tonight?{choice
- Go to the park
(exitNow "park")
- Stay at home
(exitNow "home")

If I just use (exit), it means the game will exit after the conversation ends. But since I want the scene to change immediately after the player makes a choice, I should use (exitNow).