|
Dagnimaer Wanderer
Joined: 05 Apr 2003 Posts: 60 Location: USA
|
Posted: 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. |
|
|
|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: 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 |
|
|
|
Dagnimaer Wanderer
Joined: 05 Apr 2003 Posts: 60 Location: USA
|
Posted: Fri Apr 29, 2005 3:51 pm |
This is not for detection but giving.
|
|
_________________ When in doubt,
Blow it up. |
|
|
|
DustyShouri Novice
Joined: 29 Oct 2004 Posts: 34
|
Posted: 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.
|
|
|
|
Dagnimaer Wanderer
Joined: 05 Apr 2003 Posts: 60 Location: USA
|
Posted: 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. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: 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.) |
|
|
|
Dagnimaer Wanderer
Joined: 05 Apr 2003 Posts: 60 Location: USA
|
Posted: Sat Apr 30, 2005 3:27 pm |
figured it out, thanks
|
|
_________________ When in doubt,
Blow it up. |
|
|
|
|
|