 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: 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- |
|
|
 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: Sat Sep 06, 2003 10:22 pm |
Hm... Bump
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: 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.
|
|
|
 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: Sun Sep 07, 2003 12:41 am |
Thanx
|
|
|
 |
|
|
|
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
|
|