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
quigbrew
Novice


Joined: 04 Jun 2002
Posts: 31

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
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