Move object from room to game?
NecroDeath
23 Sept 2016, 14:23Is there a way to move an object from a room to the game? It doesn't come up as an option when you click 'move'

onimike
23 Sept 2016, 15:09Make a spare room called storage, items, weapons, etc and use these rooms as storage space for your items, plus works great like folders for organizing and quick reference where certain items are. Then instead move object to game move it to its correct room(folder).
Hope it helps
Mike
NecroDeath
23 Sept 2016, 15:15Thanks, nice idea
hegemonkhan
24 Sept 2016, 03:48onimike's suggestion of using Objects to store/organize is the best approach, but to directly answer your question:
you set its 'parent' Object Attribute to 'null'
<object name="whatever">
<attr name="parent" type="object">null</attr>
</object>
-------------------------------------
you can set the Object to being contained by the game (within the '<asl></asl>' creation tag block), which means the Object is not inside of another Object, by:
setting the 'parent' Object Attribute of that Object to: null
for example:
// the 'ball' Object is contained within the 'room' Room Object:
// (the 'room' Object is NOT contained within another Object, it is contained by the game, aka: within the <asl></asl> creation tg block, it's unseen but automatically set 'parent' Object Attribute is set to 'null')
<object name="room">
<object name="ball">
</object>
</object>
// the 'ball' Object is contained within the 'room' Room Object:
// (the 'room' Object is NOT contained within another Object, it is contained by the game, aka: within the <asl></asl> creation tg block, it's unseen but automatically set 'parent' Object Attribute is set to 'null')
<object name="room">
</object>
<object name="ball">
<attr name="parent" type="object">room</attr>
</object>
// the 'ball' Object is NOT contained within any other Object (the 'ball' is only contained by the game itself, which is being contained within the '<asl></asl>' creation block, which is your entire game code / game):
// (the 'room' Object is NOT contained within another Object, it is contained by the game, aka: within the <asl></asl> creation tg block, it's unseen but automatically set 'parent' Object Attribute is set to 'null')
<object name="room">
</object>
<object name="ball">
</object>
// the 'ball' Object is NOT contained within any other Object (the 'ball' is only contained by the game itself, which is being contained within the '<asl></asl>' creation block, which is your entire game code / game):
// (the 'room' Object is NOT contained within another Object, it is contained by the game, aka: within the <asl></asl> creation tg block, it's unseen but automatically set 'parent' Object Attribute is set to 'null')
<object name="room">
</object>
<object name="ball">
<attr name="parent" type="object">null</attr>
</object>
// the 'ball' Object is NOT contained within any other Object (the 'ball' is only contained by the game itself, which is being contained within the '<asl></asl>' creation block, which is your entire game code / game):
// (the 'room' Object is NOT contained within another Object, it is contained by the game, aka: within the <asl></asl> creation tg block, it's unseen but automatically set 'parent' Object Attribute is set to 'null')
<object name="room">
<object name="ball">
<attr name="parent" type="object">null</attr>
</object>
</object>
// the above will change it, so that the 'ball' Object is not contained within the 'room' Room Object, which will be seen changed as this:
// (the 'room' Object is NOT contained within another Object, it is contained by the game, aka: within the <asl></asl> creation tg block, it's unseen but automatically set 'parent' Object Attribute is set to 'null')
<object name="room">
</object>
<object name="ball">
</object>
-----------
this:
<object name="room">
</object>
<object name="ball">
<attr name="parent" type="object">room</attr>
</object>
will put the 'ball' Object inside of the 'room' Room Object, which we'll see changed as this:
<object name="room">
<object name="ball">
</object>
</object>
-----------------
likewise, we can put the 'room' Room Object inside of the 'ball' Object too:
<object name="room">
<attr name="parent" type="object">ball</attr>
</object>
<object name="ball">
</object>
which we'll see changed as this:
<object name="ball">
<object name="room">
</object>
</object>