Skip to main content

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

2. yeah, of course!

at the start of the script, I defined a 'deaths' variable 

$ deaths = 0

then, whenever you died, I put in a

$ deaths += 1

for the death count UI, there was a custom gameUI screen (first called when you come up to the castle), that only contains a frame & vbox in the top left with text saying 

"{image=skull.png}deaths = [deaths]"

and when Eulogy references the amount of deaths you've had, she just says

"(...) you died [deaths] times!"

so it's all just referencing the variable :)


but I think for your idea, since the deaths are different and the player is meant to collect them all (let's say there r three), I'd put a

$ death_A = false
$ death_B = false
$ death_C = false

at the start of the script, then each death I'd change the value to be true

"you died in way A!"
$ death_A = true (...same for B and C)

and then at the end I'd put a STACKED if statement, like

if death_A == true and death_B == true and death_C == true:
    "congrats! you died in every way possible :)"
    # secret ending time
else:
    "aw... try dying more next time!"
    return