Game over when player walks into a room

So basically when the player enters the room, there'll be a text pretty much saying how they died. Then I want it to say "game over" in the top right like I've seen in some Quest games before, however Idk how to do that. I know you could just put the player in the room with no way to get out but I don't want that. I'd like to make it look proper.


image


image


image


I don't have any of those scripts that you showed. Nothing under or called gametstate, nothing about entering a room, leaving, before entering/leaving. Really not sure what's up with that.


Are you making a text adventure?

You posted:

So basically when the player enters the room

I was thinking I remembered you making a game book, but game book's have pages instead of rooms, and you specifically said, "when the player enters the room," so I decided I must be mistaken about the game book thing, and I posted screenshots from a text adventure.


No, I am making a gamebook. I just referred to different pages as rooms, sorry if that confused you.


I'm very, very new here and have basically just tried to pick up the basics by myself and if I can't do that then I've tried to get help here. This is my first game I'm trying to make so sorry if I say silly things.


Is it easier to make a text adventure than it is a gamebook? I might try that instead if it is.


Game books are not set up to finish the game (for some reason), but you can copy and paste this into a script on a page to make it happen:

JS.uiShow ("#gamePanes,#gamePanesFinished")
JS.uiHide ("#gamePanesRunning")
JS.setCss ("#gamePanesFinished", "position:fixed;right:5px")

In the editor:

Add a new Page named "Finish".

image


Make it 'Script + Text'.

image


Click on 'Code View' on the script.

image


Paste in the code I posted above.

image


Click the 'Code View' button on the script again, to switch back to normal editing mode (you can skip this step; this just shows what it looks like afterwards).

image


Add whatever text you like.

image


As long as you don't add any links to this page, the player will not be able to do anything. So:

GAME OVER


Add a link to this page wherever you'd like to kill the player.

image


image



Thank you very much once again. You're a great help and I truly appreciate it <3


It's absolutely great to see you're so dedicated to helping people across the forums, well done to you.


I'm very, very new here and have basically just tried to pick up the basics by myself and if I can't do that then I've tried to get help here. This is my first game I'm trying to make so sorry if I say silly things.

You're good!

If I came across as rude, I apologize. I was just being sure to use the correct terminology to be certain we are on the same page. (Forgive me for the terrible pun.)


Is it easier to make a text adventure than it is a gamebook?

Not really, but there is actually documentation and a tutorial which will teach you quite a bit before diving into your own game.

There is also a video tutorial.


When creating a text adventure, you have many more things to choose from when adding scripts. You also have to do more work.


Not at all, you weren't rude. I did try to read through the tutorials, and while most was helpful, I just got stuck and it didn't seem to make any sense, so I came to the forums for help. Anyway, thanks again!


Thank you very much once again.

You are very welcome!


It's absolutely great to see you're so dedicated to helping people across the forums, well done to you.

Aw, gee... Shucks...

I knew nothing about programming in 2017. The people on this forum taught me everything I know. So, I try to help out (when I'm not busy writing my own game).

In fact, just so you know, I can make my own websites now, just by learning to do things in Quest. So, stick with it, and you'll be helping new people on here before you know it!


Also, ignore my posts if they don't make sense or don't help, as I'm often lazy, and so do things in code...

KV/RH, Pixie, Mrangel, and etc are all much better helpers and more knowledgeable with quest and programming than I am

I found quest knowing ZERO/NOTHING about programming and coding, nor game making/designing as well, and through quest and all of the helpful people here (or "ex-here"... some aren't here anymore, sighs), I've not only learned to use quest and to make games, but I've also learned to code, and am now taking college classes on computer science (programming/coding and more), and was shocked at how well prepared/knowledgeable/skilled at programming I was with the first programming classes, all thanks/due-to/from quest and the people here (or who were here), hehe (though now the classes are harder and on stuff that never learned through quest programming, lol). I know (more or less well): C++, Java, Python, html (hyper-text markup language), css (cascading style sheets), js (JavaScript), and a few other programming languages

In the past, I've written step by step using GUI guide posts for people new to quest and to programming, but I've gotten more lazy over the years, usually just helping with code now... as it takes a lot of effort and time to walk through using the GUI/Editor and its script options, than just writing and pasting in code, lol

(see your other thread on 'objects', as I made a pretty big second attempt at explaining the stuff... hopefully it'll be more helpful to you than my other post with the links... lol)

(that one post with the links though, does offer the needed stuff to learn quest and its coding/game-making, but it's a lot to take in all at once, I had the same problem: information overload/overwhelmed and confused like crazy, lol. Take it slowly, little step by little step... there's a lot to learn and understand, and then on how to apply it on your own... not easy to do)

(you can see my thread back when I first found quest and tried to understand its coding, here: https://textadventures.co.uk/forum/quest/topic/3348/noobie-hks-help-me-thread , if you want a good laugh, and see how clueless and lost I was too, lol)

so, if you're interested in learning to program, if I can do it, you can do it, hehe

I love to help, but often I suck at it... I'm not the best explain'er... and being lazy, doesn't help much, on top of being bad at explaining, lol.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums