|
edb6377 Magician
Joined: 29 Nov 2005 Posts: 482
|
Posted: Mon Jun 12, 2006 9:56 pm
Converted Script... Example |
Okay well i cant save my settings and i cant do a bunch of other things but i have figured out how to go offline and send things from the editor window and this works wonderfully.
First what i do is open the editor and open the text file i exported from zmud.
Click on format wordwrap and turn it off (dunno why but for me it helps)
click on options -> syntax highlighting to turn it on
click on format check syntax (YOU HAVE TO DO THIS EACH TIME YOU WANT IT TO RE-EVALUATE IT)
There are a few ODDITIES. In order to send an alias i.e.
#ALIAS BOB {
#ECHO BOB IS WORKING
#ECHO MAYBE LATER
}
that used to be ok
In this editor to send it and actually have CMUD process it, it seems to want it to be
#ALIAS BOB {#Echo bob is working;#echo maybe later}
anyways here is my first converted script. Minor changes but its a start. Its a sextant location script to keep track of coordinates. Its just an example to some as how things might change in their scripts. Until i purchase a copy i cant submit them into any library :/
ORIGINAL
Code: |
#CLASS {MMSystem|sexloc} {disable}
#ALIAS sexloc2 {
#echo %ansi( white, high)Your destination is currently %ansi( green, high)@sexloc, %ansi( white, high)located at %ansi( green, high) @{locs.@sexloc}
#if (@sexloc=="listings") {
#var listings ""
#LOOPDB @locs {#var listings {@listings","%key}}
#echo %ansi( white, high)Valid destinations are: %ansi( defcol)@listings
}
}
#TRIGGER {^You are currently at position *, *.} {sexloc2}
#TRIGGER {You put a *sextant* in *.} {
#var sexloc ""
#t- {MMSystem|sexloc}
}
#CLASS 0
#CLASS {Variables|sexloc} {enable}
#VAR sexloc {listings}
#VAR listings {,Arcane,Atlantis,Avarice,Bazaar,CTF,Deceit,Thorne,Dio,FGK,Hall of Heroes,Hellbent,Immortal,Lasler,Lonely Dragon Inn,Lowangen,Maelstrom,Magnecia,Maldra,Mandrake,Kolvir,New Rigel,Odious,OV,PC,Rune,Rune Forest,Sigil,Stargazer,ToB,Tellerium,Templeton,Aroxa,ToA,Travellers,Twin Moon,Vesuvius,Vospire,Reef,Wroth,Xaventry,Cavhfail,Eanoss,HBFP,Rahdiyr,Seelie,Unseelie,Decara,HBUW,Hotel Hello,Kessarin,Sea Hag,Vir}
#VAR locs {Arcane926,816Atlantis1988,1305Avarice671,572Bazaar818,386CTF993,893Deceit1254,1071Thorne1031,316Dio553,1360FGK1689,389Hall of Heroes697,741Hellbent1342,365Immortal571,984Lasler698,695Lonely Dragon Inn600,700Lowangen1159,421Maelstrom1540,742Magnecia865,834Maldra1304,1092Mandrake654,365Kolvir571,984New Rigel801,545Odious449,1240 (or thereabouts)OV1885,459PC1191,968Rune695,770Rune Forest701,680Sigil435,1226Stargazer1707,438ToB797,445Tellerium1724,685Templeton1619,540Aroxa1759,630ToA1271,211Travellers776,651Twin Moon1007,306Vesuvius295,1160Vospire312,1177Reef1281,738Wroth736,391Xaventry607,437Cavhfail355,284Eanoss130,65HBFP255,163Rahdiyr102,69Seelie43,55Unseelie438,299Decara1579,486HBUW1341,364Hotel Hello1228,768Kessarin1590,985Sea Hag1113,873Vir1439,1052}
#VAR container {none}
#CLASS 0
#CLASS {Aliases|sexloc} {enable}
#ALIAS container {#var container %1}
#ALIAS sexloc {
get sextant @container
#var sexloc "%1"
#t+ {MMSystem|sexloc}
look sex
put sextant @container
#wait 500
#t- {MMSystem|sexloc}
}
#CLASS 0
|
NEW VERSION
Code: |
#CLASS {MMSystem|sexloc} {disable}
#ALIAS sexloc2 {#echo %ansi( white, high)Your destination is currently %ansi( green, high)@sexloc, %ansi( white, high)located at %ansi( green, high) @locs.@sexloc
#if (@sexloc=="listings") {
#var listings ""
#LOOPDB @locs {#var listings {@listings","%key}}
#echo %ansi( white, high)Valid destinations are: %ansi( defcol)@listings}
}
#TRIGGER {^You are currently at position *, *.} {sexloc2}
#TRIGGER {You put a *sextant* in *.} {
#var sexloc ""
#t- {MMSystem|sexloc}
}
#CLASS 0
#CLASS {Variables|sexloc} {enable}
#VAR sexloc {listings}
#VAR listings {,Arcane,Atlantis,Avarice,Bazaar,CTF,Deceit,Thorne,Dio,FGK,Hall of Heroes,Hellbent,Immortal,Lasler,Lonely Dragon Inn,Lowangen,Maelstrom,Magnecia,Maldra,Mandrake,Kolvir,New Rigel,Odious,OV,PC,Rune,Rune Forest,Sigil,Stargazer,ToB,Tellerium,Templeton,Aroxa,ToA,Travellers,Twin Moon,Vesuvius,Vospire,Reef,Wroth,Xaventry,Cavhfail,Eanoss,HBFP,Rahdiyr,Seelie,Unseelie,Decara,HBUW,Hotel Hello,Kessarin,Sea Hag,Vir}
#VAR locs {Arcane926,816Atlantis1988,1305Avarice671,572Bazaar818,386CTF993,893Deceit1254,1071Thorne1031,316Dio553,1360FGK1689,389Hall of Heroes697,741Hellbent1342,365Immortal571,984Lasler698,695Lonely Dragon Inn600,700Lowangen1159,421Maelstrom1540,742Magnecia865,834Maldra1304,1092Mandrake654,365Kolvir571,984New Rigel801,545Odious449,1240 (or thereabouts)OV1885,459PC1191,968Rune695,770Rune Forest701,680Sigil435,1226Stargazer1707,438ToB797,445Tellerium1724,685Templeton1619,540Aroxa1759,630ToA1271,211Travellers776,651Twin Moon1007,306Vesuvius295,1160Vospire312,1177Reef1281,738Wroth736,391Xaventry607,437Cavhfail355,284Eanoss130,65HBFP255,163Rahdiyr102,69Seelie43,55Unseelie438,299Decara1579,486HBUW1341,364Hotel Hello1228,768Kessarin1590,985Sea Hag1113,873Vir1439,1052}
#VAR container {none}
#CLASS 0
#CLASS {Aliases|sexloc} {enable}
#ALIAS container {#var container %1}
#ALIAS sexloc {
get sextant @container
#var sexloc %1
#t+ {MMSystem|sexloc}
look sex
put sextant @container
#wait 500
#t- {MMSystem|sexloc}
}
#CLASS 0
|
|
|
|
|
Riesz Novice
Joined: 16 May 2006 Posts: 35 Location: Plymouth, England
|
Posted: Tue Jun 13, 2006 9:50 am |
I'd also express some caution if you want to load particularly large scripts into the editor. At least for me, once I turned syntax highlighting on, I had to wait about 20+ seconds each time I entered a character when it tried to re-evaluate the script. (This was with my entire .mud script, in future I'll copy scripts across in much smaller quantities.)
|
|
_________________ Elaria, Lusternia. |
|
|
|
edb6377 Magician
Joined: 29 Nov 2005 Posts: 482
|
Posted: Tue Jun 13, 2006 2:46 pm |
yeah i usually do them by classes. Even that can slow it down a WHOLE lot.
|
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
|
|
|
|
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
|
|