dig/tel Loop De Loop:typeclasses.rooms.LoopyRoom = north;n,south;s
set here/desc = "The Loop De Loop room is blah blah ..."
The "/tel" switch teleports you to the newly created room, once the
room and exits are created.
You don't need the space between the comma and "south",
to avoid your exit being named " south" (see the space?)
Remember to include ":typeclasses.rooms.LoopyRoom"
and to have a room class "LoopyRoom" in your typeclasses.rooms file.
Enter both those commands at one time,
and you'll :
- create the room, named "Loop De Loop" of typeclass
"typeclasses.rooms.LoopyRoom"
- create an exit to the room, named north, with alias n
- create an exit back to your current location, named south, with alias s
- set description on your current location (the new room, because you
teleported to it with the /tel switch)
On 2/22/21, CivilS4m <
jai...@gmail.com> wrote:
>
> Of course as soon as I posted the SyntaxErrors I think I solved it. So
> would this be the proper way to dig and connect rooms for a future overhead
>
> map?
> dig Loop De Loop = north;n, south;s, dig The In-Between
> Created room Loop De Loop(#85) of type typeclasses.rooms.Room.
> Created Exit from The In-Between to Loop De Loop: north(#86) (n).
> Created Exit back from Loop De Loop to The In-Between: south(#87) (s).
>
> Also, is there a way to add descriptions to a room with this command in one
>
> go or do I have to go in and add the description after?
> On Sunday, February 21, 2021 at 9:07:39 PM UTC-5 CivilS4m wrote:
>
>> I tried entering that command for dig just because I couldn't get it to
>> work by typing it out the way I wanted for a room and I got these errors
>> in
>> both just the client as a build and using PY in front of it. Any
>> suggestions to the error?
>>
>> *dig kitchen:typeclasses.rooms.Kitchen = north;n,south;s *
>> Traceback (most recent call last):
>> File "/home/pi/muddev/evennia/evennia/commands/cmdhandler.py", line 644,
>>
>> in _run_command
>> ret = cmd.func()
>> File "/home/pi/muddev/evennia/evennia/commands/default/building.py",
>> line 899, in func
>> typeclass, room["name"], aliases=room["aliases"], report_to=caller
>> File "/home/pi/muddev/evennia/evennia/utils/create.py", line 126, in
>> create_object
>> typeclass = class_from_module(typeclass, settings.TYPECLASS_PATHS)
>> File "/home/pi/muddev/evennia/evennia/utils/utils.py", line 1478, in
>> class_from_module
>> raise ImportError(err)
>> ImportError:
>> Could not load typeclass 'typeclasses.rooms.Kitchen'
>> Paths searched:
>> typeclasses.rooms.Kitchen
>> typeclasses.typeclasses.rooms.Kitchen
>> evennia.typeclasses.rooms.Kitchen
>> evennia.contrib.typeclasses.rooms.Kitchen
>> evennia.contrib.tutorial_examples.typeclasses.rooms.Kitchen
>>
>> An untrapped error occurred.
>> (Traceback was logged 21-02-22 02:05:18).
>> *py dig kitchen:typeclasses.rooms.Kitchen = north;n,south;s *
>> >>> dig kitchen:typeclasses.rooms.Kitchen = north;n,south;s
>> dig kitchen:typeclasses.rooms.Kitchen = north;n,south;s
>> ^
>> SyntaxError: invalid syntax
>> During handling of the above exception, another exception occurred:
>> Traceback (most recent call last):
>> File "/home/pi/muddev/evennia/evennia/commands/default/system.py", line
>>
>> 213, in _run_code_snippet
>> pycode_compiled = compile(pycode, "", mode)
>> File "<string>", line 1
>> dig kitchen:typeclasses.rooms.Kitchen = north;n,south;s
>> ^
>> SyntaxError: invalid syntax
>>
>>
>> *@py dig kitchen:typeclasses.rooms.Kitchen = north;n,south;s *
>
https://groups.google.com/d/msgid/evennia/8d774659-69bb-4139-9e28-3d8ac773fbaen%40googlegroups.com.
>