|
Axe Software Forums
Quest Developer Forum need a bit of help
|
Author | Topic: need a bit of help |
I think Im Dead |
posted 26-07-2002 19:55 GMT
So I thought I had a way to create rooms perfectly on the fly but I'm having a bit of trouble renaming them how I want. I've been using the Indescription as to where the name is for my rooms, call me weird. Anywho, when I try to rename the room using my command RENAME ROOM AS #new-room#, it doesn't change the quest.currentroom;indescription to #new-room# but instead to the default "You are in" (which yes I realize I can change). I'll paste the code down here and maybe one of you can tell me why and how to fix it... Thanks in advance. Section with asterisks around it I think is the problem, I must be just messing up the code. define game <Quest Beta Environment> Note, I have tried instead of setting the string #indescription# to the #new-room# name, setting the property indescription, but that resulted in not even getting it to print out the default "You are in" so I figured this must be closer to working. Any help would be appreciated. |
gamer1962 |
posted 27-07-2002 08:54 GMT
try this set string <#quest.currentroom#;indescription> = $ucase(#room-name#)$ |
MaDbRiT |
posted 27-07-2002 09:57 GMT
First up - You are going to struggle a bit with this one :-) You can make a room easily enough as you have discovered, but you cannot change its actual name once you have done so. You will have to either settle for changing the alias of the room, (easy and puts the right name on the location bar at the top of the screen) OR re-write so that when you rename a room you actually create a new room with the new name. Personally I'd go with the latter or you could potentially have players trying to give two different rooms the same alias - not a particularly good idea! The actual 'technical' problem with your code as it stands is that you are creating and setting a string called "quest.currentroom;indescription" to a value - it works but is nonsensical - what you need to do is set the indescription property of a room the name of which is held in the quest.currentroom string variable. e.g. you need to use quote: That'll do what you expect - but it isn't really a great idea! The following will provide a better visual result;-
quote: This is still far from ideal... I REALLY urge you to change the concept of your code here! Al |
I think Im Dead |
posted 29-07-2002 01:46 GMT
Eh, I think there was some troubles with communication. I'm not trying to change the actual roomname but what is displayed as the roomname to the player. A typical room I want to go like this(yes it's gemstone style). [A Dark Cavern] Now, I was using the [A Dark Cavern] section as the name for my rooms and had it set up as that being the indescription. Yeah an alias could work there, but I did it this way, not hard to change at all. The problem is, you can't edit a #quest.currentroom#;indescription and have it be THE ACTUAL ROOM DESCRIPTION, it just gives the room a property called 'indescription' and sets it as whatever the variable has been set at. It works the same way for #quest.currentroom#;alias... it just makes a property called alias and gives it whatever value you assigned it, but never does it read it as a room alias, just a property called alias. I think the way to go is to change the room description script to find if a room has a property e.g. 'title' and display that value, in this case [A Dark Cavern], in the [A Dark Cavern] spot, cutting out the need to call DEFINED room properties, and just calling a regular property of the room. Hope that makes sense. P.S. I'm not sure if I understood what madribbit said about renaming the same room, but, I mean to make it so a GM can walk through the game, from a start room, making rooms and objects, exits and go to's all inside the game therefore reducing coding and equally creating a sort of admin ability. Maybe that wasn't kind of what you are talking about, oh well. |
MaDbRiT |
posted 29-07-2002 08:09 GMT
quote: Errr... If you want the name given by your player to a pre-existing room to appear on the title bar at the top of the player window you HAVE to set the alias property... that is the way Quest works! If you want to create a room, name it and give it a description on the fly that is an entirely different operation. You are muddling the two operations up here and that is what is giving you so much trouble. (The 'indescription' tag is supposed to be used for phrases like 'You are in' or 'You are on', but of course like so much Quest it is perfectly possible to use it for something else.)
quote: If it doesn't treat it as a room alias then you have the syntax wrong somewhere...
quote: WHOAAAA!! you are making this all WAY too hard, it really is VERY simple to make rooms, name them and give them descriptions on the fly... Try this code, it only creates a room, lets you name it and provide a description, but it should be pretty obvious how to extend it to allow setting of exits etc. You can cut n paste this - it will run.
quote: Hope this helps! Al |
MaDbRiT |
posted 29-07-2002 08:47 GMT
Oh yes...
Al |
0 Ste 0 |
posted 24-02-2002 21:26 GMT
hey, i been trying to do the same thing. except im using QDK. wot do i need to do to do this using QDK? |
Jakk |
posted 09-03-2002 21:05 GMT
site, you fool. Just put it in a text doc, and then open it with qdk... and is it so damned hard to type what instead of wot |
Gautier UK |
posted 29-03-2002 22:43 GMT
jakk, is that time of the month again? |