Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Zalera
Newbie


Joined: 01 Aug 2011
Posts: 1

PostPosted: Mon Aug 01, 2011 3:31 am   

mapstring converting
 
Hey guys,

I recently started to mud again cause an old mud I used to play is back(fateMUD). This mud has a mapstring which can be used to show a map in dmud (clinux client made my the admin back in the days)
I downloaded CMud to see if I can get a hang with the mapper but I find its doing everything except what I want (pretty sure its my fault though :) )

So I want to use the mapstring given by the mud again to display a 5x5 map. I had the map running in Zmud 4.x in the status window back in the days. But I can't seem to get it working in CMUD.

The String the mud give is

Code:
|``b```aaa```aa``aaa```b``;The Charred Plains;795;795;362;362;512;0;12;|

The 25 character of the map would be:

Code:

 ``b``
 `aaa`
 ``aa`
 `aaa`
 ``b``


Before displaying these characters in the status window I would replace the chars by something more readable:

Code:

   #
  ###
   X#
  ###
   #


With colors maching grass and water etc(e.g and a would be indoor, b with be a road, c would be water, d would be grassland, the ` is noroom)

The trigger I use in zmud 4 was:

Code:

(?????)(?????)(??)(?)(??)(?????)(?????);(*);(%d);(%d);(%d);(%d);(%d);(%d);(%d);

#VAR map1 %1;#VAR map2 %2;#VAR map3 %3%ansi(gray,black)X%5;#VAR map4 %6;#VAR map5 %7;#VAR maparea "%8";#SUB ""


In the status window I use:

Code:
@mapreplace(
@map1
@map2
@map3
@map4
@map5)


where @mapreplace would be:

Code:
%replace(%replace(%replace(%replace(%replace(%replace(%replace(%replace("%1","`","%ansi(black,black)#"),"a","%ansi(white,black)#"),"b","%ansi(grey,black)+"),"c","%ansi(green,black)#"),"d","%ansi(green,black)*"),"e","%ansi(yellow,black)^"),"q","%ansi(yellow,black)#"),"g","%ansi(blue,black)~")


Would this be possible to get it working in CMUD like it did in Zmud for me. And if so its it also possible to replace the character with like little 16x16px icons instead of ascii chars?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
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

© 2009 Zugg Software. Hosted by Wolfpaw.net