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
Dagnimaer
Wanderer


Joined: 05 Apr 2003
Posts: 60
Location: USA

PostPosted: Fri Apr 29, 2005 3:03 am   

Text Padding for Illusions in IRE Games
 
Ok, I've heard that one can get it so that illusions will wrap correctly to the 80 line limit. It is also to note that I can use up to 3 lines for the illusions.

Here is an example of the setup

Dagnimaer pricks you twice in rapid succession with his dirk.
You feel suddenly as if food is the most repulsive thing you can imagine.
A faintness takes you as your stomach begins to grumble ceaselessly.



Thanks in advance for any help.
_________________
When in doubt,
Blow it up.
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Fri Apr 29, 2005 6:41 am   
 
Unfortunately the spaces are stripped (the spaces they use to force wordwrap) so.. you can't use %x$ and ^$ to detect IRE illusions anymore (that change was made years ago).
_________________
Athlon 64 3200+
Win XP Pro x64
Reply with quote
Dagnimaer
Wanderer


Joined: 05 Apr 2003
Posts: 60
Location: USA

PostPosted: Fri Apr 29, 2005 3:51 pm   
 
This is not for detection but giving.
_________________
When in doubt,
Blow it up.
Reply with quote
DustyShouri
Novice


Joined: 29 Oct 2004
Posts: 34

PostPosted: Fri Apr 29, 2005 8:49 pm   
 
I believe the IRE games, at least Achaea, has illusion wrapping coded into their games. I believe /n will wrap it to the next line.
Reply with quote
Dagnimaer
Wanderer


Joined: 05 Apr 2003
Posts: 60
Location: USA

PostPosted: Fri Apr 29, 2005 9:01 pm   
 
/n isn't supported by Imperian, and it can use up to 3 lines for illusions
_________________
When in doubt,
Blow it up.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Apr 29, 2005 10:35 pm   
 
Look into the use of %repeat(). It should do exactly what you need.
_________________
EDIT: I didn't like my old signature
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Sat Apr 30, 2005 12:23 am   
 
%repeat... interesting. I'd try something along the lines of:

#AL ci {@ill1%repeat(" ",%eval(80-%len(@ill1))){@ill2%repeat(" ",%eval(80-%len(@ill2)))@ill3
Which might just calculate the number of spaces automatically. Don't quote me on that one though, I just made it up.

How I've done it in the past is to get the spaces right using the wordwrap in the text editor set to 80, plus a bit of trial and error, and then using:

#FILE 1 illusions.txt
#AL ci {#READ 1 %1}

(Where "%1" is the line number corresponding to the illusion I wanted to use. Using #READ means that zmud doesnt strip extra spaces out of the command sent, as is does if you try to do it with spaces in an alias. Its also easier to edit the text file.. or so I found.)
Reply with quote
Dagnimaer
Wanderer


Joined: 05 Apr 2003
Posts: 60
Location: USA

PostPosted: Sat Apr 30, 2005 3:27 pm   
 
figured it out, thanks
_________________
When in doubt,
Blow it up.
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