SetAlignment? also visible scenery...
waturi
10 Jun 2013, 23:28Whats the proper way to use SetAlignment from the GUI? I'm trying to run a script that prints a center justified message. I assume I have to set it to print an expression but I can't get it to work...just keeps returning an error.
Also, is there a way to make a scenery object visible in more than 1 room, or do i need to make separate objects for each room with the same description?
Also, is there a way to make a scenery object visible in more than 1 room, or do i need to make separate objects for each room with the same description?

guzmere
11 Jun 2013, 06:17Hi can't you clone a certain object and manipulate that. Terry
Happy Adventuring 



jaynabonne
11 Jun 2013, 10:41Here is a thread on that topic:
viewtopic.php?f=18&t=3154
There is a library there which may or may not be useful for you.
Another idea for common objects is to create a base object type which has all the description text, etc, and then you'd create a scenery object in each room and derive from that type. That way all those scenery objects would pick up the same text (without duplicating it), but you could easily manage where it goes.
Attached is an example. There is a StreamBase base type with all the common attributes.
Then the individual stream objects in the rooms just inherit that type.
viewtopic.php?f=18&t=3154
There is a library there which may or may not be useful for you.
Another idea for common objects is to create a base object type which has all the description text, etc, and then you'd create a scenery object in each room and derive from that type. That way all those scenery objects would pick up the same text (without duplicating it), but you could easily manage where it goes.
Attached is an example. There is a StreamBase base type with all the common attributes.
<type name="StreamBase">
<alias>stream</alias>
<look>There is a crystal clear stream running beside the path. It burbles here and pools there, carrying within its playful meanderings a metaphor for life itself.</look>
<scenery />
</type>
Then the individual stream objects in the rooms just inherit that type.
<object name="room">
<object name="stream1">
<inherit name="editor_object" />
<inherit name="StreamBase" />
</object>
</object>
<object name="room2">
<object name="stream2">
<inherit name="editor_object" />
<inherit name="StreamBase" />
</object>
</object>