…or it may not be that complicated, i don’t know, it’s just that i don’t know how to begin to work out how to do it… or even if it’s possible.
The first part is easy - “Top of the mossy stairs is up from bottom of the mossy stairs”. The rest of it is pretty hard.
What i’m trying to do is the first time the player goes from the bottom of the mossy stairs to the top (Note: In my game, there is no way to reach the top of the mossy stairs without first going through the bottom of the mossy stairs), a message is displayed - “As you start to climb the stairs, you slip and fall, landing on your front. As you try to stand up, you realise that you are no longer standing on stairs but instead a sloping heap of loose stones that it’s hard to stand up on. As you flounder on the floor for a bit, a weird rock emitting green smoke lands near you, melting through the rocks as if they were butter. You look up towards the roof where it came from and see two… creatures throwing them down at you”
At this point i want to code a way to simulate the player having difficulty scrambling up these stones while dodging whatever’s being thrown. Ideally whether or not the player gets hit is random, yet more likely the longer the player stays put. If the player gets hit, it’s game over.
If the player manages to scramble to the top without dying, the game displays the message “You manage to get to you feet and begin to break into a run, when you turn to see everything as it had been before. The rocks are gone, replaced by the stairs you’ve always known and whatever creatures were on the roof are now gone”.
If the player ever goes up the stairs again, the game displays the message “You’re understandably hesitant about climbing these stairs, yet this time nothing notable happens”
So how do i simulate the player having trouble climbing the rocks and being pelted by these creatures? Also, how do i have it so it only happens the first time you climb the stairs?
Thanks in advance