Cloning an empty container and putting cloned items into it?
lightwriter
05 May 2015, 19:33Is this possible, if so how?
In my game I have an individual room for items and stuff...
and I use the 'before player enters room' and the Clone and Move function to move things into the room. This way if I have to edit 1 item I don't have to update it several times.
I know how to clone the container itself but is there a way for me to clone things into the newly cloned container or will I have to manually make the container a duplicate and put whatever I want in there and then clone that object container into the room?
If I'm confusing you, basically, what I'm asking is a way to clone something like an empty chest and then put cloned items into the newly cloned chest?
In my game I have an individual room for items and stuff...
and I use the 'before player enters room' and the Clone and Move function to move things into the room. This way if I have to edit 1 item I don't have to update it several times.
I know how to clone the container itself but is there a way for me to clone things into the newly cloned container or will I have to manually make the container a duplicate and put whatever I want in there and then clone that object container into the room?
If I'm confusing you, basically, what I'm asking is a way to clone something like an empty chest and then put cloned items into the newly cloned chest?

Pertex
05 May 2015, 19:47Sure it is:

or the code:

or the code:
newbag = CloneObject (bag)
CloneObjectAndMove (thing, newbag)
lightwriter
05 May 2015, 19:49thanks!
HegemonKhan
05 May 2015, 20:20You may also want to take a look at this too:
viewtopic.php?f=18&t=3515 (Sora's Stackable Library: items grouping+quantity storage)
it's not quite what you're asking for, but it is related a good bit.
viewtopic.php?f=18&t=3515 (Sora's Stackable Library: items grouping+quantity storage)
it's not quite what you're asking for, but it is related a good bit.