ZMud: alias works the wrong way

July 16, 2012 06:58PM
there is an alias which creates a trigger to substitute the names of pills, wands, etc with their effects (obtained on this forum some branches ago)

this is a string, creating a trigger
#trigger {<@PrepName>} {#sub "<@PrepName> ~[<@PrepEffects>~]"} {PrepSubs} "PrepSubs"

a problem is that a sub command does not take a value of the first variable @PrepName just because there is no any symbol between the start of the string and a variable.
So if you have
PrepName = "aaa"
PrepEffects = "zzz"

then you will have the following output
#sub "@PrepName [zzz]"

But if I change the alias and put any symbol before first variable, a space for example, like:
#trigger {<@PrepName>} {#sub " <@PrepName> ~[<@PrepEffects>~]"} {PrepSubs} "PrepSubs"
^ here

then I get the following output:
#sub " aaa [zzz]"
^ with a space here.

This works that way, but those spaces look bad.
Any ideas how to fix that ?
Subject Author Posted

ZMud: alias works the wrong way

dilmo July 16, 2012 06:58PM

Yep.

Quixotic September 14, 2012 03:30PM

MUSHclient is free. (n/t)

DurNominator(VIP) August 09, 2012 09:44AM

Zmud isn't supported anymore, there's no workaround

trewyn August 09, 2012 09:40AM

I noticed emails to the support are generally handled well (n/t)

Zheeser November 11, 2012 04:05AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 99
Record Number of Users: 5 November 04, 2022
Record Number of Guests: 358 August 31, 2022