 |
quigbrew Novice
Joined: 04 Jun 2002 Posts: 31
|
Posted: Tue Jun 04, 2002 3:50 am
Trigger help |
Is there anyway for zmud to destinguish spaces that may be at the end of a line?
In the mud I play, if a snake bites you, you will get a bite message on one line and an affliction message on the next. In order to illusion a bite, someone must put spaces at the end of the bite message in order for word wrap to take affect and get the affliction message on the next line. What I want to do is make a trigger where the affliction is triggered but it eveluates the preceeding line where the bite message is to check if there's spaces at the end of that line. If it finds spaces it will ignore the bite, if there's no spaces it will cure it properly.
A typical bite message looks like this:
Joey sinks his fangs into you.
Your body freezes in paralysis.
Any help would be appreciated
Quigbrew |
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Jun 04, 2002 4:32 am |
quote:
Is there anyway for zmud to destinguish spaces that may be at the end of a line?
In the mud I play, if a snake bites you, you will get a bite message on one line and an affliction message on the next. In order to illusion a bite, someone must put spaces at the end of the bite message in order for word wrap to take affect and get the affliction message on the next line. What I want to do is make a trigger where the affliction is triggered but it eveluates the preceeding line where the bite message is to check if there's spaces at the end of that line. If it finds spaces it will ignore the bite, if there's no spaces it will cure it properly.
A typical bite message looks like this:
Joey sinks his fangs into you.
Your body freezes in paralysis.
Any help would be appreciated
Quigbrew
Make two triggers on that line. First trigger will be for the real affect and will be multiline:
#trigger {^Ow, the dang thing bit me!$I feel dizzy.$} {Your code here to deal with the affliction}
The second trigger will only be a single-line trigger on just the bite message EXCEPT that at the end it has the %s wildcard:
#trigger {^Ow, the dang thing bit me!%s} {#say illusion!}
li'l shmoe of Dragon's Gate MUD |
|
|
|
 |
TonDiening GURU

Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Tue Jun 04, 2002 11:08 pm |
You can also perhaps change your screen width in the mud and set it to something
odd so you can not be spoofed as easily. ie width 74
TonDiening
Beta Upgrading to 6.26 |
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Jun 05, 2002 1:56 am |
quote:
You can also perhaps change your screen width in the mud and set it to something
odd so you can not be spoofed as easily. ie width 74
TonDiening
Beta Upgrading to 6.26
Gotta remember to make it usable for everybody .
li'l shmoe of Dragon's Gate MUD |
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Jun 05, 2002 1:56 am |
quote:
You can also perhaps change your screen width in the mud and set it to something
odd so you can not be spoofed as easily. ie width 74
TonDiening
Beta Upgrading to 6.26
Gotta remember to make it usable for everybody .
li'l shmoe of Dragon's Gate MUD |
|
|
|
 |
|
|
|