You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation site: guides, 14 tutorials, the mapper and scripting sections, and a reference page for every zScript command and function (500, deep-linkable). The Breaking changes page lists everything below that can change what an existing script does
zScript follows cMUD 3.34 more closely (see Breaking changes): #SAY/#ECHO text fires triggers and #ECHO goes to the focused window; later triggers match the line as it was before a #SUB; #COLOR/#GAG without a trigger act on the last line; colour attributes use cMUD's numbers (+128 bold, +256 underline, +512 blink, +1024 reverse); %eval(@formula) evaluates; #ABORT ends a loop; notrig lasts through waits; #WAITFOR matches prompts; regex \a\h\p are cMUD's; %dblist leaves out blank values; plus #BUTTON toggles, #KEY <ALT-D>=, #MENU {File|Exit}, #MXPTRIG Prompt|NoCr, #SEND file prefix/suffix, %yesno, %window(n), %setglobal and more
cMUD Compatibility (Preferences › Scripting): opt-in switches that reproduce cMUD 3.34's own bugs; packages imported from cMUD run in cMUD mode
Mapper: Room Types editor (Edit › Room Types), #ROOMKIND/#UNROOMKIND and the %roomkind* functions; %roomtype sets a type by number or name, with %roomforceentry, %roompause and %roomdonotenter for the flags; %roomkind is cMUD's again
Mapper: Force Entry and Pause are cMUD's room flags (read from and written to cMUD maps); a walk pauses at a Pause room and raises onWalkPause there
Mapper: scripts can switch portals (%portalenable, #PORTAL, #UNPORTAL) with Edit map off; new portals start at Cost 1
Menu and help texts match the menus; #HELP opens the documentation site
Tests: every zScript command and function is covered (a guard test enforces it), plus a language conformance suite