Does cloning an object clone it's children as well?


this is a good question...

'deep copying' vs 'shallow copying' (no idea how good this link is - briefly looked at it only, just google search: deep vs shallow copying, if you want to look for better links)

// or (I am using an old apple computer and browser, so it can't handle the 'https / secure http' url usage, argh), so here's the normal/secure (shttp) link of it for everyone with a modern computer/browser, lol:

does quest automatically do 'deep copying' without you having to manually do it (you just do 'shallow copying', but underneath quest actually does 'deep copying') or do you have to manually do 'deep vs shallow' copying ???

see the other thread on this:

as it already has some content/posts

The short answer: Yes.

Be more careful about exits, though. Exits come in pairs, one exit in each direction, and an exit is considered to be "in" the room it comes from. So cloning a room will create duplicates of the outbound exits, but not the ones going back in.

(So I'm going to loop through a room's contents moving all exits and key items somewhere else, clone the room, and then put all the stuff back)

Thanks guys.

This topic is now closed. Topics are closed after 60 days of inactivity.