|
Axe Software Forums
Quest Developer Forum displaying objects in room your not in
|
Author | Topic: displaying objects in room your not in |
gamer1962 |
posted 13-07-2002 06:07 BST
I wanted to use something as a container. From what I can read in help the best way to do this is to move an object in a room. My problem comes in when I want to display all the objects stored in that room. Using QDK I tried to use the "run script for each object in a room" but I the only variable I can find is the #quest.formatobjects# and that will only display the objects in the current room. I am sure I can load a variable with every object that is put in the bag and use an array but I was hoping there was a built in string. Does anybody have a better way of handling a container or know of a string variable I can use ? |
Computer Whizz |
posted 13-07-2002 08:32 BST
#quest.thing# gives the name of the object, so if you use: msg <In the bag you have stored:> that should give you a list - as for alias' I'm not sure. Computer Whizz |
Computer Whizz |
posted 13-07-2002 08:36 BST
Just thought of one: $objectproperty(#quest.thing#;alias)$ or something along those lines.... #object;property# won't work because of the two #'s, but something along the lines of the example above... Computer Whizz |
gamer1962 |
posted 13-07-2002 13:49 BST
Thanks that worked great |
Alex |
posted 13-07-2002 18:07 BST
quote: #(quest.thing):alias# will work, but only if the aliases are set up as properties rather than as normal tags. The most reliable way to get an object's alias, whatever method you use for setting it, would be to use $displayname(#quest.thing#)$ |
MaDbRiT |
posted 14-07-2002 04:55 BST
Gamer 1962 wrote... quote: Well I'm currently re-writing my Q3ext.qlb library to improve it and make it QDK friendly. One of the BIG improvements in it (I think) is the far better way the new version handles containers. The new version automatically handles muliple & nested containers, object visibilty /accessibilty whilst in containers, weight & size limits, opening and closing things... all the stuff you need for easy coding of containers (I hope!). Unfortunately the new lib is far from finished yet, (it does all sorts of other stuff too), but it might help you to help me test the lib 'in action' being used for a game. Remembering that it is seriously unfinished at present and WILL have bugs of course! Al |
gamer1962 |
posted 15-07-2002 06:19 BST
Thanks, I will look for the library when it's available. For now the only container I needed was a spell book that would contain spells as they were learned. I decided to have the spells menu selections. I used string variables for the choices and set the varibales to = "" in the start script. As they are learned at specific places I loaded the variable designated for that spell with the spell name. The script for all choices started with if #spell1# = #actualspellname# do #actualspellname# procedure. The menu would show when you used the spell book. I used an array for the spell names that would display the names learned when you "read spell book" or "Look in spell book" somewhat messy just to avoid having too many objects appear int he object window. I will look forward to the library |