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
Palomar
Apprentice


Joined: 11 Oct 2000
Posts: 138
Location: Portugal

PostPosted: Fri Feb 07, 2003 9:54 pm   

help in trigger states
 
Ok I have this trigger

State trigger.
Id: DescriptionTrigger
State 0:
Pattern: ^The sky about you is alive with the day-time. (*)
Script:
descripttion = %1

State 1:
LoopLines|30:^(*)
Script:
temp = %1
#IF (%1 ~= "^You notice exits") {#STATE DescriptionTrigger 0} {description = %concat(@description," ", @temp)}

It basically gathers up from a certain line onwards, up to 30 lines, until it finds a line like

You notice exits

In which case it resets the trigger.

When fed something like

The sky about you is alive with the day-time. The trees that stand alongside
the road do not quite succeed in blocking out all the light from the skies
making walking the length of this road not quite the daunting prospect one
might have at first imagined. Indeed it becomes quite the game to work out
what dwells among them; sometimes it is birds that are rustling within the
branches, sometimes it is a cat, or squirrel or similar prowling about in the
heights of the poplars, and occasionally it is an energetic child, watching
you pass with a suspicion that only a child at play could concoct. Southeast
from here, a new road far less encumbered with trees is to be found, a smart
signpost informing you that it goes by the name of Amber Street.
You notice exits north, east (an open door), southeast, south, and west (a
closed door).

I get in description variable only

The trees that stand alongside

The lines come mud wrapped and I have no way to change that. Anyway, anyone care to point out the mistakes?

All the best,
Palomar
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Fri Feb 07, 2003 10:31 pm   
 
#IF (%1 ~=~ "^You notice exits")


--------

moon.icebound.net:9000
Reply with quote
Palomar
Apprentice


Joined: 11 Oct 2000
Posts: 138
Location: Portugal

PostPosted: Fri Feb 07, 2003 10:43 pm   
 
Am I a Klut or what?

Thanks,
Palomar
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