Loading…
![]() String updated in the repository |
|
![]() String updated in the repository |
|
![]() String updated in the repository |
|
![]() Source string changed |
|
![]() String updated in the repository |
|
![]() Source string changed |
|
![]() String updated in the repository |
|
![]() Source string changed |
|
![]() String updated in the repository |
|
![]() String updated in the repository |
|
Things to check
Key
adventures->story->levels->5->story_textFlags
ignore-double-space, ignore-ellipsis, ignore-inconsistent, ignore-long-untranslated, ignore-same, ignore-translated, placeholders:r"`([^`\n\r]+)`|## ", python-brace-format
In the example code you can see how to make 2 different endings.
### Exercise 1
Write a new short story of at least 6 lines of code about a topic of your choosing.
No inspiration? Choose one of these topics: a superhero, a boring school day, stranded on a desert island.
Now give the player a change to choose a happy or a bad end, just like in the example code.
Program both the endings.
### Exercise 2
Copy the story you've created in your own story adventure in the previous levels.
Find a way to add at least 2 `{if}` and `{else}` commands to your story.
This can be with a happy or bad ending, but you can also try to find other ways to incoporate the commands.
Pikirkan dua alternatif akhir cerita kamu. Misalnya:
- Seorang putri menjelajahi hutan
- Dia bertemu dengan seekor monster
- Akhir yang bahagia: Dia mengambil pedangnya dan monster tersebut lari
- Akhir yang buruk: Monster tersebut memakan sang putri
Kamu juga dapat menggunakan nama yang dimasukkan. Ini sama dengan yang ada di level 3. Kamu dapat menggabungkan ini dengan `if` dan akhirnya sebuah cerita dengan dua alternatif akhir jadi!