|
Palomar Apprentice
Joined: 11 Oct 2000 Posts: 138 Location: Portugal
|
Posted: 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 |
|
|
|
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: Fri Feb 07, 2003 10:31 pm |
#IF (%1 ~=~ "^You notice exits")
--------
moon.icebound.net:9000 |
|
|
|
Palomar Apprentice
Joined: 11 Oct 2000 Posts: 138 Location: Portugal
|
Posted: Fri Feb 07, 2003 10:43 pm |
Am I a Klut or what?
Thanks,
Palomar |
|
|
|
|
|
|
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
|
|