|
nole Newbie
Joined: 26 Feb 2004 Posts: 6
|
Posted: Thu Feb 26, 2004 2:56 pm
Newline! |
Hey everyone I have "slight" problem, that I hope you can
help me with.
I often gather herbs but on the mud i play the jars often
get cinda messy, example.
exa jar
This is a glass jar for storing herbs.
It is closed.
The herb jar contains two handfuls of small bitter leaves, two handfuls of stalked ovate leaves, two golden flowers, five green leaves, two smelly white rose-tinged bulbs, three handfuls of narrow sharply toothed leaves, a bunch of small hardy blood-red flowers and a small white flower.
Now I would like to sort them to a list
so they look like
This is a glass jar for storing herbs.
It is closed.
The herb jar contains
two handfuls of small bitter leaves,
two handfuls of stalked ovate leaves,
two golden flowers,
five green leaves,
two smelly white rose-tinged bulbs,
three handfuls of narrow sharply toothed leaves,
a bunch of small hardy blood-red flowers
a small white flower.
I tried to add triggers to "leaves," using newline (%cr) but then it does a new line but not at leaves, but under the entire line,
someone that can help me with this one? |
|
|
|
Timas Novice
Joined: 05 Jan 2003 Posts: 39 Location: Netherlands
|
Posted: Thu Feb 26, 2004 4:24 pm |
This is untested but maybe try something like:
#TRIGGER {The herb jar contains (*)} {#VAR herbs %replace(%1, ",",%cr);#GAG;#SHOW @herbs}
I'm assuming this'll work tho :) |
|
|
|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Thu Feb 26, 2004 4:43 pm |
If that doesnt work
Code: |
#TRIGG {The herb jar contains &herbs} {
#VAR herbs %replace( @herbs, ",", "|")
#GAG
#SHOW It contains:
#FORALL @herbs {
#SHOW %i
}
}
|
|
|
|
|
nole Newbie
Joined: 26 Feb 2004 Posts: 6
|
Posted: Fri Feb 27, 2004 9:23 pm |
Well both works BUT the problem lies in the fact that my mud uses line wrapping so in some way I must #gag and capture several lines, any ideas?
|
|
|
|
|
|
|
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
|
|