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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Fri Sep 05, 2003 10:07 pm   

Can i keep the mapper from mapping this...
 
I'm making a map of Achaea, but theres one problem. The stuff looks like this:

(Room name)
(Weather)(Room Description)(Whats in the room)
(Exits)

Of course, thats not what a room would look like. That's just where the information is displayed. But I wanna keep it from dsplaying the weather, because that changes pretty often. I dont care if it doesnt map the Room dexcription, I just wanna get rid of the Weather because it keeps the map from working. Also, I dont know if this is possible, but it adds my Health and Mana to the description, right after exits. I'm not sure ifit affects my map, but id like to keep it from doing that. the health and mana that it adds looks like this, i think (i cant open Achaea now to check):

1200 700 ex-
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sat Sep 06, 2003 10:22 pm   
 
Hm... Bump
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Sat Sep 06, 2003 11:36 pm   
 
Copied from another topic...The script itself reformats all the lines, but is dependent on the color settings you have used.

quote:

This should rearrange everything for you.

#CLASS {FixDescription}
#VAR Weather {} {}
#VAR Name {} {}
#VAR Description {} {}
#VAR OutLine {} {}
#VAR Exits {} {}
#TRIGGER {^%e[1;34m(*).*$} {Name=%concat("%1",".");Description="";Exits=""} "" {color}
#COND {^%e[1;37m(*). %e[0;37m(*)$} {Weather=%concat("%1",".");Description=%stripansi("%2");#T+ DescChanger;#T+ DescChanger2} {within|param=1|color}
#TRIGGER "DescChanger2" {%e[1;31m(*)$} {Exits=%stripansi("%1")} "" {color|disable}
#TRIGGER "DescChanger" {*} {#SUB {%ansi(white)@Weather}} "" {disable}
#COND {^(*)$} {#IF (%trigger(DescChanger2)) {Description=%trim(%concat(@Description," ",%line));#IF (%pos(@Exits,@Description)) {Description=%trim(%remove(@Exits,@Description));#T- DescChanger2}} { Exits=%trim(%concat(@Exits," ",%line))};#IF (@Description) {OutLine=%trim(%left(@Description,80));#IF ((%len(@OutLine)=80)&(%rightback(@Outline,1)!=" ")) { OutLine=%leftback(@OutLine,%eval(%len(%word(@OutLine, %numwords(@OutLine)))+1))};Description=%trim(%remove(@OutLine,@Description));OutLine=%concat(%char(27),"[0;37m",@OutLine)};#IF (%ends(@Exits,".")) {OutLine=%concat(@OutLine,%cr,%char(27),"[1;31m",@Exits);Exits=""};#SUB {@OutLine};#IF ((@Description="")&(@Exits="")) {#STATE DescChanger 0;#T- DescChanger}} {looplines|param=99|disable}
#CLASS 0

Once it is in you will have to reconfigure the mapper, then may have to manually adjust where it starts capturing description to be one line higher.

Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sun Sep 07, 2003 12:41 am   
 
Thanx
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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