 |
big_luke Newbie
Joined: 11 Jun 2005 Posts: 9
|
Posted: Wed Sep 07, 2005 12:09 pm
Tintin script conversion |
I'll bet some of you, like myself, have some really good tintin scripts out there for your favourite muds, but you'd prefer to use them on Zmud - only problem is, zmud's 'tintin script importer' doesn't seem to work very well (in fact, it doesn't convert if statements, and most of the time if fails to convert triggers for some reason).
As such, I'm currently working on a script to put inside an alias that will open up a tintin file (specified by user), read the script line by line, convert it to zmud-style code, and then output line by line to an output file (also probably specified by user).
I was wondering if anyone has ever attempted anything similar to this before? If they had any advice for me? Or if they would be particularly interested in this script if I ever get it working (which would probably spur me to work harder on it, you never know :)) |
|
|
|
 |
Private Adept
Joined: 10 Jan 2002 Posts: 264 Location: USA
|
Posted: Fri Sep 09, 2005 10:18 am |
To this day the "tintin" import wont import the following:
| Code: |
#action {^The %0 seems to be closed.} {open %0} {0}
#action {^You sense no trail.} {#if {$tracking=1} #var tracking 0;#unvar target} {0}
#action {^$trig clan speaks, '!trump'} {wake;trumpit $trig} {0}
#action {^A BlackJack Dealer tells you, 'Your cards total %0 or %1'} {#if {%%1<10 || ( %%1>11 && %%1<18 )}{gamble hit};#if {%%1>9 && %%1<12}{gamble double};#if {%%1>17}{gamble stay}} {0}
#substitute {%0a Babydoll%1} {%0a hold !outlaw !warrior !sell owneronly lev 40 wt 20 mh 50 maxmana 50 dex -3 perm resist cold Babydoll%1}
#highlight {bold} {%0tells you%1}
#alias {bless} {c 'bless' %0}
|
%0 and %%, &&,|| amongt others caused me to re-rite most when i came to zmud, i originally converted because of tintin import "feature" heh, luckally i like zmud past not being able to import.
Can't say i'd need the script anymore, but I'm sure it would come in handy for people coming from tintin or wintin, hope the examples will help in your project. |
|
|
|
 |
|
|
|
|
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
|
|