|
Wspaedt1977 Beginner
Joined: 13 Feb 2022 Posts: 13
|
Posted: Tue Feb 15, 2022 12:18 am
Capturing Room Names and Room Exits |
In CMUD how would one go about capturing room name and room directions to use at a later time if the room name and directions looked like this:
Canyon path [u,d]
Thanks for any help I'm sorta new to this |
|
|
|
hpoonis2010 Adept
Joined: 18 Jun 2019 Posts: 279
|
Posted: Wed Feb 16, 2022 6:19 am |
#TR {(*) ~[(*)~]} {
$roomname=%trim(%1)
$exits=%2 OR $exits=%list(%2,",")
} |
|
|
|
Wspaedt1977 Beginner
Joined: 13 Feb 2022 Posts: 13
|
Posted: Wed Mar 02, 2022 9:18 pm |
This work Great.
Thanks for the help |
|
|
|
|
|