Can you combine objects?
thesynapse
27 Dec 2011, 16:48Hi there,
Can you combine objects in Quest 5?
In this example I'm using a boiling tube to capture a gas, but the gas will escape the tube unless you use a bung in the top of the tube to trap the gas.
What's the best way to go from "boiling tube with gas in it" to "boiling tube and bung with gas in it"?
Is it to combine items (somehow, I can't find a way), or should I move out some items and move a new replacement item into the room to act as this combination?
Cheers.
Can you combine objects in Quest 5?
In this example I'm using a boiling tube to capture a gas, but the gas will escape the tube unless you use a bung in the top of the tube to trap the gas.
What's the best way to go from "boiling tube with gas in it" to "boiling tube and bung with gas in it"?
Is it to combine items (somehow, I can't find a way), or should I move out some items and move a new replacement item into the room to act as this combination?
Cheers.
Alex
31 Dec 2011, 12:45You can't combine objects really (well, you can put objects inside each other, but in this case you probably want to treat the "tube and bung" as one object). So, you have two options:
1. Swap objects around. Have "tube without bung" and "tube with bung" as two separate objects, and move them when required
2. Modify the object. You can change any object attribute with a script, so you could change the alias of the tube, set a flag etc. Your scripts can check for the presence of the object flag to determine what happens.
1. Swap objects around. Have "tube without bung" and "tube with bung" as two separate objects, and move them when required
2. Modify the object. You can change any object attribute with a script, so you could change the alias of the tube, set a flag etc. Your scripts can check for the presence of the object flag to determine what happens.
thesynapse
31 Dec 2011, 12:53Cheers for the reply Alex.
How would I change the alias?
I've been digging around the wiki but it's a little difficult to understand outside of the 'point-and-click' kind of instructions.
How would I change the alias?
I've been digging around the wiki but it's a little difficult to understand outside of the 'point-and-click' kind of instructions.
Alex
31 Dec 2011, 12:57You can change an object's alias simply by setting its alias attribute.
For example, to change Bob into Angela:
For example, to change Bob into Angela:
Bob.alias = "Angela"
thesynapse
31 Dec 2011, 13:03And this would be done by running a script (expression) in response to a verb right?
Alex
31 Dec 2011, 13:37Yes, you would do that as part of a script.