TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

#map list roomdata?

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
dawang10



Joined: 14 Feb 2015
Posts: 66

PostPosted: Sun Feb 12, 2017 2:23 pm    Post subject: #map list roomdata? Reply with quote

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.. Sad

#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
View user's profile Send private message
PowerGod



Joined: 04 Aug 2014
Posts: 339

PostPosted: Mon Feb 13, 2017 9:27 am    Post subject: Reply with quote

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
View user's profile Send private message
dawang10



Joined: 14 Feb 2015
Posts: 66

PostPosted: Mon Feb 13, 2017 1:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group