Players creating rooms and objects
Anonymous
27 Jan 2004, 03:59Is it feasible to create commands that allow players to create rooms or containers?
For example, what if I wanted a game where players could build a house or something. Is it possible to allow something like that in Quest? Would they be able to also name their house? I haven't yet found any script commands that make use of input boxes, but then I'm not very familiar with Quest yet.
For example, what if I wanted a game where players could build a house or something. Is it possible to allow something like that in Quest? Would they be able to also name their house? I haven't yet found any script commands that make use of input boxes, but then I'm not very familiar with Quest yet.
iamdaman13
27 Jan 2004, 04:31You can make your players create a new house. Simply make a custom command that the player must type, as well as having any required inventory. Then make the command open an existing location, which you create before hand but has no access to begin with. Include in scripting an "out" command, which links to the location of the player when he or she types in the command "build house" or whatever the command is.
Not really sure if you can have a user input name.
Hope this helps.
Not really sure if you can have a user input name.
Hope this helps.
I think Im Dead
27 Jan 2004, 04:48Yes, it's very easy, though as you pointed out there aren't any text input boxes. You basically do something like...
command <create room> {
msg <What NAME would you like to give your room?|n>
enter <room.name>
msg <What ALIAS would you like to give your room?|n>
enter <room.alias>
msg <What LOOK description would you like to give your room?|n>
enter <room.look>
create room <#room.name#>
property <#room.name#; alias=#room.alias#>
property <#room.name#; look=#room.look#>
msg <Your room has been created!|n>
goto <#room.name#>
}
That's pretty simple, and realistically it's a pain in the ass to try and write a whole look desc in one go(coz of gramatical and spelling errors and such). But players can create/edit rooms, objects, properties, actions and just about anything else as long as you code them the commands to do so.
command <create room> {
msg <What NAME would you like to give your room?|n>
enter <room.name>
msg <What ALIAS would you like to give your room?|n>
enter <room.alias>
msg <What LOOK description would you like to give your room?|n>
enter <room.look>
create room <#room.name#>
property <#room.name#; alias=#room.alias#>
property <#room.name#; look=#room.look#>
msg <Your room has been created!|n>
goto <#room.name#>
}
That's pretty simple, and realistically it's a pain in the ass to try and write a whole look desc in one go(coz of gramatical and spelling errors and such). But players can create/edit rooms, objects, properties, actions and just about anything else as long as you code them the commands to do so.
Big J Money
27 Jan 2004, 18:34Do you think we could see text input boxes in a future version? They don't make for IF friendly games so much, but it would be nice to allow text-input windows since we already have button capable windows.
Alex
27 Jan 2004, 18:41What do you mean - where would the text boxes appear?
Big J Money
27 Jan 2004, 19:02I mean like a little pop-up window that prompts the user to enter some information. Same as the little windows that pop up and have you click yes or no.
I assumed Quest could do that, but somebody said there were none.
I assumed Quest could do that, but somebody said there were none.
codingmasters
24 Feb 2004, 06:03There is no need for input boxes. Alex, you should know this. There is a command that makes the user type in something and have that stored in a variable. That's one way to have a user enter a name at the start of a game and use it throughout a game.
Oh, by the way. This is my come back message people! I've been inactive for over a month because the current Telstra Bigpond launchpad does not support XP very well. But I'm back and hopefully here to stay!
Matthew G.
Oh, by the way. This is my come back message people! I've been inactive for over a month because the current Telstra Bigpond launchpad does not support XP very well. But I'm back and hopefully here to stay!
Matthew G.