|
chosig Novice
Joined: 20 Apr 2008 Posts: 39 Location: Sweden
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: 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. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
chosig Novice
Joined: 20 Apr 2008 Posts: 39 Location: Sweden
|
Posted: Sat Feb 25, 2017 12:42 pm |
That didn't work either, but I solved it with some brute force
Code: |
#tag name %1
$exits = %replace(%2, ",", "|")
#forall $exits {
$roomlink=%roomlink(,%i)
#if ($roomlink == "-1") {
#call %roomlink(,%i,-2)
}
} |
|
|
|
|
chosig Novice
Joined: 20 Apr 2008 Posts: 39 Location: Sweden
|
Posted: 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 |
|
|
|
chosig Novice
Joined: 20 Apr 2008 Posts: 39 Location: Sweden
|
Posted: 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. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Sun Feb 26, 2017 1:39 pm |
Well... Have you tried speaking with a creator about adding the exit tags too?
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
chosig Novice
Joined: 20 Apr 2008 Posts: 39 Location: Sweden
|
Posted: Sun Feb 26, 2017 3:55 pm |
I'm working on that part, but Discworld is a bit special :P
|
|
|
|
|
|
|
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
|
|