View previous topic :: View next topic |
Author |
Message |
dawang10
Joined: 14 Feb 2015 Posts: 66
|
Posted: Sun Feb 12, 2017 2:23 pm Post subject: #map list roomdata? |
|
|
Scandum wrote: | Code: |
#map list <name> <exits> <desc> <area> <note> <terrain>
Lists all matching rooms and their distance.
Use {variable} {<variable>} to save the output to a variable.
{roomname} {<name>}, {roomarea} {<area>}, etc, are valid too.
|
Same method works for #map find. |
I happened to realise I can't search roomdata by #map list roomdata {} after almost finishing a map with 10000+ rooms..
#map info is here
Total rooms: 12123 Total exits: 44070 World size: 50000
Vtmap: on Static: off Vtgraphics: off
Asciigraphics: on Asciivnums: off Nofollow: off
Room area: aaa
Room data: {aa}{bb}
Room desc: 2
Room name: bbb
Room note: 3
Room symbol:
Room terrain: 4
Room vnum: 8126
Room weight: 1.000
Avoid: off Hide: off Leave: off
Void: off Static: on
in map file
R { 8126} {16} {} {bbb} { } {2} {aaa} {3} {4} {{aa}{bb}} {1.000}
I tried #map list {} {} {} {} {} {} {aa} ,etc. but no one works |
|
Back to top |
|
 |
PowerGod
Joined: 04 Aug 2014 Posts: 352
|
Posted: Mon Feb 13, 2017 9:27 am Post subject: |
|
|
Yeah, roomdata is not used during search, you could use roomnote instead
Code: |
#map list {roomnote} {something to search}
|
You can copy all the roomdata to the roomnote in every room with something like this (I considered 10000 rooms)
Code: |
#loop 1 10000 cnt {#map goto $cnt;#map get roomdata mydata;#map set roomnote $mydata;}
|
|
|
Back to top |
|
 |
dawang10
Joined: 14 Feb 2015 Posts: 66
|
Posted: Mon Feb 13, 2017 1:18 pm Post subject: |
|
|
PowerGod wrote: | Yeah, roomdata is not used during search, you could use roomnote instead
Code: |
#map list {roomnote} {something to search}
|
You can copy all the roomdata to the roomnote in every room with something like this (I considered 10000 rooms)
Code: |
#loop 1 10000 cnt {#map goto $cnt;#map get roomdata mydata;#map set roomnote $mydata;}
|
|
Thanks a lot. I thought I had to copy every roomdata to roomnote by hand.
#loop is so helpful |
|
Back to top |
|
 |
|