Display One Room Description At a Time

cybernetsurfer7
11 Sept 2013, 23:24Hello. I have what is probably a relatively simple question. I am curious how to have the text window reset every time you enter a new room. Currently, the text piles up on top of each other in an endless stream. Thanks in advance!
Cheers!
Caleb
Cheers!
Caleb
HegemonKhan
11 Sept 2013, 23:49You'll have to find the ~ "goto" script~function in the core coding, and add this code line in:
http://quest5.net/wiki/ClearScreen
to change the core coding safely, in the GUI~Editor, in the lower left corner, click on the "Filter -> Show Library Elements" button, this unhides the core coding stuff, which will be the light grey stuff on the left side (the "tree of stuff"), find what you want (~ "goto"), click on it so it is highlighted, then on the right side, click on the copy button (this protects the core code, as you're just changing a copy file), and add in the code line ( http://quest5.net/wiki/ClearScreen ) into the correct place.
----------
otherwise you'll have to do each room individually (lol, ARGH!), which can be done simply by adding in the code line ( http://quest5.net/wiki/ClearScreen ) to the "on entering room" in whatever the Tab for that room in the GUI~Editor.
----------
actually, you could make your own code too, to work globally:
or maybe there's a "changed_script" for it too... but I'm not sure...
http://quest5.net/wiki/ClearScreen
to change the core coding safely, in the GUI~Editor, in the lower left corner, click on the "Filter -> Show Library Elements" button, this unhides the core coding stuff, which will be the light grey stuff on the left side (the "tree of stuff"), find what you want (~ "goto"), click on it so it is highlighted, then on the right side, click on the copy button (this protects the core code, as you're just changing a copy file), and add in the code line ( http://quest5.net/wiki/ClearScreen ) into the correct place.
----------
otherwise you'll have to do each room individually (lol, ARGH!), which can be done simply by adding in the code line ( http://quest5.net/wiki/ClearScreen ) to the "on entering room" in whatever the Tab for that room in the GUI~Editor.
----------
actually, you could make your own code too, to work globally:
<game name="blah">
// blah coding
<old_room type="object">null</old_room> // Or: <old_room type="objectlist"></old_room>
// blah coding
</game>
<turnscript name="clear_screen_when_entering_new_room">
<enabled />
<script>
game.old_room = GetObject (player.parent)
if (not player.parent = game.old_room) {
ClearScreen
// though, you'll probably have to do more coding, due to what scripts get run first (as you don't want to clear the display texts for the new room)
}
</script>
</turnscript>
or maybe there's a "changed_script" for it too... but I'm not sure...
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
<changedparent type="script">
ClearScreen
</changedparent>
</object>

cybernetsurfer7
12 Sept 2013, 01:12HegemonKhan: Thanks! Took a little digging and trial and error but I found the place I needed to call the function. I'm very impressed with this program's customizability. Again, thank you for your assistance.
HegemonKhan
12 Sept 2013, 01:41Just understand that if you changed the core coding, that change is going to be applied at the game engine level, it'll always be clearing the text window, when you change rooms. So, you have to be careful, as changing the core code, can make your game no longer functional (at worst), or it could have unintended consequences that you did not want, too. If you do the GUI~Editor copy method, then you're safe from making quest unplayable, but if you altered the actual core files in your quest folder themselves, then you could make quest unplayable, and you'd have to down load or just re-install it again...

cybernetsurfer7
12 Sept 2013, 02:04Thanks for the tip. My method was just finding the OnEnterRoom function within the editor, hit the copy button, and then found the place it called the ShowRoomDescription function. Just before it calls that function, I have it run the ClearScreen function. Pretty straight forward and works exactly as I wanted. If I ever need to go back to the original I'll just delete the ClearScreen function from the OnEnterRoom function.
HegemonKhan
12 Sept 2013, 02:40yep, that works too, I was going to mention that you could probably find the "on enter room" too (but I wasn't sure if that was just for that individual room or globally~for all rooms), and I was too lazy to go back and type this in, lol.
You got this stuff understood perfectly, hehe.
You got this stuff understood perfectly, hehe.

cybernetsurfer7
12 Sept 2013, 04:13Thanks for the vote of confidence. Though I'm not quite sure I'm at the "understanding this perfectly" stage yet. There's some adjustments that I'd love to make to the interface, but I don't have a clue where to begin on that front. For now I'll just work on developing the rest of the game.
...Out of curiosity, do you know if anyone has tried to add buttons to the control menu. Such as a "Look" button under the compass directions?
...Out of curiosity, do you know if anyone has tried to add buttons to the control menu. Such as a "Look" button under the compass directions?
HegemonKhan
12 Sept 2013, 04:22there's been some threads~posts on this stuff, but you'll have to find them on your own, lol. It requires a good bit of coding knowledge (other coding languages) though too to do~change stuff. You can simply check (open up) the actual files in notepad, wordpad, notepad++, or whatever else is needed~used to do so (such as for the .dll files) in the quest folder.
blah path -> Quest 5 -> .js, or .dll files
~or~
blah path -> Quest 5 -> Core -> (this doesn't have the file for the interface ~ I don't think it does, anyways)
... good luck ... I don't really understand this stuff much yet, lol.
you can try asking the mods here, or Alex too himself, of where (what file) to find it at, I think everything (all code) is public, so you should be allowed to see the source code stuff, but maybe not everything is, not sure.
------------------
HK Edit:
viewtopic.php?f=10&t=3641 ----> viewtopic.php?f=18&t=3789
I found this thread so far...
also check here (this is the library and code forum area) for maybe more stuff:
viewforum.php?f=18
enjoy!
blah path -> Quest 5 -> .js, or .dll files
~or~
blah path -> Quest 5 -> Core -> (this doesn't have the file for the interface ~ I don't think it does, anyways)
... good luck ... I don't really understand this stuff much yet, lol.
you can try asking the mods here, or Alex too himself, of where (what file) to find it at, I think everything (all code) is public, so you should be allowed to see the source code stuff, but maybe not everything is, not sure.
------------------
HK Edit:
viewtopic.php?f=10&t=3641 ----> viewtopic.php?f=18&t=3789
I found this thread so far...
also check here (this is the library and code forum area) for maybe more stuff:
viewforum.php?f=18
enjoy!