Destroying Objects

Redsun
23 Jun 2009, 11:48
Hello all.

I Use the Clone object option quite a bit, what is
the best way to destroy a Cloned Object? Like take
it out of the game?

Thanks in Advance.

Overcat
23 Jun 2009, 14:38
A quick look in the documentation shows there is no "destroy object" command. What kind of objects are you cloning? Are you repeatedly cloning the same kinds of objects over and over?

IE:

original object name: dagger
first cloned object name: dagger_1
second cloned object name: dagger_2

Redsun
23 Jun 2009, 16:04
Yes

If I Clone an Object many many times(I Don't name it though, I leave it as is) can these
clones be removed?

I Did look in the manual it says "Hide command" is like removing it from the game, so I Guess
that may work.

Another Question.

Is there a way I could say remove every single object from the players
Inventory to a specified room? and visa versa, every object in a specified
room back to the players Inventory?

Thanks again :)

Overcat
23 Jun 2009, 21:40

Is there a way I could say remove every single object from the players
Inventory to a specified room? and visa versa, every object in a specified
room back to the players Inventory?



Yes.

for each object in <inventory> {
move <#quest.thing#; someRoom>
}


and then

for each object in <someRoom> {
'do something with each object here, then...
move <#quest.thing#; inventory>
}


I'm assuming the room you're moving all the objects to won't contain anything else except the inventory objects (and at that, temporarily).

As for cloned objects, you must specify a new object name for the cloned object. No?

Redsun
24 Jun 2009, 05:37
Awesome!, I'll write down this code!

Actually when you clone an object you only have to pick what object to clone.
Quest can name it by itself, but The Names I see within the game are the same
as the source Object, This seems to work ok to without manually naming each
new clone.


Thanks again!, That was a big help :)


EDIT: also yes This room is only for Inventory for a MP Game.

Redsun
25 Jun 2009, 07:36
another question to those who may know, in the meantime I'll try to figure it out on my own.

Anyways question is, is there a way that I can make text appear on the screen in a specific
room for all players in that room in a MP game?


Thanks again.