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
chosig
Novice


Joined: 20 Apr 2008
Posts: 39
Location: Sweden

PostPosted: Fri Feb 24, 2017 10:16 am   

[3.34][Discworld] Windows 10 - #tag not capturing exits
 
SOLVED
http://forums.zuggsoft.com/forums/viewtopic.php?p=176859#176859


I've tried all possible combinations, loops, foralls possible. I can't for my life get a trigger to capture the exits.

Code:
<trigger priority="560" id="56">
  <pattern>There {is|are} %w obvious exit{|s}: (*).</pattern>
  <value>#tag exit %replace(%replace(%1, " and ", ","), ", ", ",")</value>
</trigger>


So far I've tried looping, comma delimetered, pipe delimetered, leave it as is... I just don't get the exits for the mapper.
Thing is that I don't want to capture room descriptions, they're not important - and the text in a lot of them changes.

This is verbose output:

Quote:
[Street of Small Gods]
This is a busy section of the Street of Small Gods, in the middle of the main temple section. The street continues west past the Temple of Small Gods towards Short Street, and east towards the Plaza of Broken Moons. To the east of here stand the temples of Gufnork and Sek, while to the west are the imposing forms of the Temples of Blind Io and Small Gods. From here small floating balls of fluff can be made out wafting over from the temple of Gufnork, while only a dark trail of smoke rises from Sek's.
Quite a few people, some in small groups, walk, trot and lurch aimlessly towards other parts of the city.
It is a very warm secundus summer's evening with almost no wind and many puffy clouds.
There are two obvious exits: west and east.


And brief output:
Quote:
The Street of Small Gods [w,e].
A fat priest and an interesting troll are standing here.
A street lamp is here.


And my prompt:
Quote:
1364/1364 317/317 X:73750 B:24% >


I included the colors, but I don't bother matching on those.

Tried scripts like these too...

Code:
#forall %replace(%replace(%1, " and ", "|"), ", ", "|") {#tag exit %i}


Have I stared myself blind and missing something obvious?


Last edited by chosig on Sat Feb 25, 2017 3:16 pm; edited 1 time in total
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3551
Location: Pensacola, FL, USA

PostPosted: Fri Feb 24, 2017 11:42 pm   
 
$exits=%replace(%replace(%1, " and ", "|"), ", ", "|")
#TAG Exit $exits

That should work, I haven't played there in ages.
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
chosig
Novice


Joined: 20 Apr 2008
Posts: 39
Location: Sweden

PostPosted: Sat Feb 25, 2017 12:42 pm   
 
That didn't work either, but I solved it with some brute force Twisted Evil

Code:
#tag name %1
$exits = %replace(%2, ",", "|")
#forall $exits {
  $roomlink=%roomlink(,%i)
  #if ($roomlink == "-1") {
    #call %roomlink(,%i,-2)
  }
}
Reply with quote
chosig
Novice


Joined: 20 Apr 2008
Posts: 39
Location: Sweden

PostPosted: Sat Feb 25, 2017 2:15 pm   
 
UPDATE!

Got it all sorted out. There was something obscure setting that was messed up (ie. file, CMUD system setting, wrecked db or somesuch)

Solution:
    1. Quit CMUD
    2. Delete everything in the MUD's profile folder
    3. Start over.
    4. Profit
Reply with quote
chosig
Novice


Joined: 20 Apr 2008
Posts: 39
Location: Sweden

PostPosted: Sun Feb 26, 2017 11:55 am   
 
Experimented a bit.

Discworld only sends the room name, inside/outside and a identifier in the GMCP information.

That bugs the crap out of CMUD that assumes there is no exits, no matter what you do. Rolling Eyes Mad
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3551
Location: Pensacola, FL, USA

PostPosted: Sun Feb 26, 2017 1:39 pm   
 
Well... Have you tried speaking with a creator about adding the exit tags too?
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
chosig
Novice


Joined: 20 Apr 2008
Posts: 39
Location: Sweden

PostPosted: Sun Feb 26, 2017 3:55 pm   
 
I'm working on that part, but Discworld is a bit special :P
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