Shattered Kingdoms

Where Roleplay and Tactics Collide
VOTE NOW!
It is currently Mon Nov 25, 2024 12:24 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 231 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 24  Next
Author Message
 Post subject:
PostPosted: Mon Jan 13, 2003 12:51 pm 
Offline
Newbie

Joined: Thu Dec 12, 2002 12:42 pm
Posts: 6
Location: NH
How do you put these scripts into your zmud?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jan 13, 2003 1:09 pm 
Offline
Mortal

Joined: Thu Feb 28, 2002 4:00 pm
Posts: 677
Location: The great white north
Simply copy everything in the "CODE" area into your command line and press ENTER.

You can also copy all the information in the "CODE" area into a textfile, save it, open Zmud settings (menubar-->View-->Classes, then click ALL) and select from the menubar of the new window |FILE| --> IMPORT TEXT...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 23, 2003 12:41 pm 
Offline
Mortal

Joined: Fri Mar 01, 2002 4:00 pm
Posts: 23
Location: Waukesha WI
Whenever you get a worth or score report, this will show, in your status line: your current level, the word equivalent of your current level, and how far along you are. Example:
13 - Initiate - You may advance to the next level.

You'll have to enter your current level into the "level" variable.

Also, whenever the status line changes, this is set to play the wave file c:\zmud\ding.wav (you may want to change it - if the file isn't there, there's no error and no sound).

This was written with zmud v5.55

Code:
#ALIAS newstatusline {#if (@statusline != %1) {#PLAY c:/zmud/ding.wav};#VAR statusline %1} {kstatus}
#VAR statusline {You still have a long way to go before the next level.} {_nodef} {kstatus}
#VAR level {14} {_nodef} {kstatus}
#VAR levelname {Initiate} {_nodef} {kstatus}
#TRIGGER {You are over one-third of the way to the next level.} {newstatusline "You are over one-third of the way to the next level."} {kstatus} 517
#TRIGGER {You are very close to half-way to the next level.} {newstatusline "You are very close to half-way to the next level."} {kstatus} 517
#TRIGGER {You are at the half-way of your journey to the next level.} {newstatusline "You are at the half-way of your journey to the next level."} {kstatus} 517
#TRIGGER {You have just begun your second-half journey to the next level.} {newstatusline "You have just begun your second-half journey to the next level."} {kstatus} 517
#TRIGGER {You are over two-thirds of the way to the next level.} {newstatusline "You are over two-thirds of the way to the next level."} {kstatus} 517
#TRIGGER {You are over three-fourths of the way to the next level.} {newstatusline "You are over three-fourths of the way to the next level."} {kstatus} 517
#TRIGGER {You are almost eligible for a level advancement.} {newstatusline "You are almost eligible for a level advancement."} {kstatus} 517
#TRIGGER {You may advance to the next level.} {newstatusline "You may advance to the next level."} {kstatus} 517
#TRIGGER {You have just begun your journey to the next level.} {newstatusline "You have just begun your journey to the next level."} {kstatus} 517
#TRIGGER {You still have a long way to go before the next level.} {newstatusline "You still have a long way to go before the next level."} {kstatus} 517
#TRIGGER {Congratulations! You have advanced to the next level} {#MATH level @level+1;wor;#IF (@level = 50) {#VAR levelname Grandmaster};#IF (@level < 50) {#VAR levelname Champion};#IF (@level < 46) {#var levelname Master};#if (@level < 41) {#var levelname Mentor};#if (@level < 36) {#var levelname Expert};#if (@level < 31) {#var levelname Veteran};#if (@level < 26) {#var levelname Journeyman};#if (@level < 21) {#var levelname Apprentice};#if (@level < 16) {#var levelname Initiate};#if (@level < 11) {#var levelname Novice};#if (@level < 6) {#var levelname Amateur}} {kstatus} 517
#STAT {@level - @levelname - @statusline}  {kstatus}


Last edited by pepsirat on Thu Jan 23, 2003 2:22 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 23, 2003 2:16 pm 
Offline
Mortal

Joined: Fri Mar 01, 2002 4:00 pm
Posts: 23
Location: Waukesha WI
Zmud comes with directional movement on the keypad. I've added:
ctrl-keypad: look direction
alt-keypad: open direction

Code:
#KEY CTRL-KEY2 {l s} {kdir}
#KEY ALT-KEY2 {op s} {kdir}
#KEY CTRL-KEY1 {l sw} {kdir}
#KEY CTRL-KEY4 {l w} {kdir}
#KEY CTRL-KEY7 {l nw} {kdir}
#KEY CTRL-KEY8 {l n} {kdir}
#KEY CTRL-KEY9 {l ne} {kdir}
#KEY CTRL-KEY6 {l e} {kdir}
#KEY CTRL-KEY3 {l se} {kdir}
#KEY CTRL-SUB {l u} {kdir}
#KEY CTRL-ADD {l d} {kdir}
#KEY ALT-KEY1 {op sw} {kdir}
#KEY ALT-KEY4 {op w} {kdir}
#KEY ALT-KEY7 {op nw} {kdir}
#KEY ALT-KEY8 {op n} {kdir}
#KEY ALT-KEY9 {op ne} {kdir}
#KEY ALT-KEY6 {op e} {kdir}
#KEY ALT-KEY3 {op se} {kdir}
#KEY ALT-SUB {op u} {kdir}
#KEY ALT-ADD {op d} {kdir}


Last edited by pepsirat on Thu Jan 23, 2003 2:23 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 23, 2003 5:39 pm 
Offline
Webadmin

Joined: Thu Feb 28, 2002 4:00 pm
Posts: 2732
Location: Australia
SK Character: Viltrax
Actually, I use a two- step key combo for look, open and #door...

Quote:
#KEY DIV {#INPUT "#door "} "System|Keypad"
#KEY MULT {#INPUT "open "} "System|Keypad"
#KEY KEY5 {#input "look "} "System|Keypad"


So just press numeric keypad 5 then a direction key to look in that direction.

I can see how pepsirat's would be better in some ways, but I'd prefer his key combos for something more exotic ...like non-targetted ranged attacks. :devil:


Top
 Profile  
Reply with quote  
 Post subject: Draw/Sheath command script
PostPosted: Sun Jan 26, 2003 11:27 am 
Offline
Mortal

Joined: Thu Feb 28, 2002 4:00 pm
Posts: 222
Location: Kansas City, MO
Four commands aliased: draw sheath blade scabbard


#CLASS {drawsheath}
#ALIAS scabbard {#var scabbard %1;#say Sheath is now @scabbard}
#ALIAS draw {blade %1;scabbard %2;get @blade @scabbard;wear @blade}
#ALIAS sheath {blade %1;scabbard %2;rem @blade;put @blade @scabbard}
#ALIAS blade {#var blade %1;#say Weapon is now @blade}
#CLASS 0

E


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Feb 12, 2003 8:56 pm 
Offline
Mortal

Joined: Thu Feb 28, 2002 4:00 pm
Posts: 677
Location: The great white north
For those who switched to the grey text color Dulrik had intened for the mud, but prefered seeing the
Quote:
[CABAL]Name: blah
text listed like that (you know who you are...)
Code:
#TRIGGER {~[(%w)~] (%w): (%*)} {#gag;#show %ansi( purple)~{%ansi( high, green)%1%ansi( purple)~} %ansi( high, green)%2: %ansi( purple) %3}

However I cannot get the script to provide a carrage return (aka give you the prompt line after the message) and without using asci or something, I am using { instead of [. Any modifications to this script to acheive these are welcomed.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Feb 12, 2003 9:10 pm 
Offline
Webadmin

Joined: Thu Feb 28, 2002 4:00 pm
Posts: 2732
Location: Australia
SK Character: Viltrax
%cr = carriage return within an #echo or #say

#cr = enter

Not sure what you mean other than that, Soren old boy.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Feb 12, 2003 9:43 pm 
Offline
Mortal

Joined: Thu Feb 28, 2002 4:00 pm
Posts: 677
Location: The great white north
*pops it into his script* I would like to have the script fire off a blank command to the mud, so it shows the prompt line again...

By default a cabal line looks something like

----
Prompt
[cabal] blah: something

Prompt
----
However my script does:
----
prompt
{cabal} blah: something

-----
Hence not letting see your prompt line again. Not sure if this something with my gag statement, or with my script, I am not sure. I am a journyman at zMud scripting


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Mar 17, 2003 8:02 pm 
Offline
Mortal

Joined: Thu Feb 28, 2002 4:00 pm
Posts: 677
Location: The great white north
Now, I know a fair number of people are going to hate me for all the scottish dwarves that will suddenly appear (I used it to give one my characters an accent), but I have created a script that will allow the replacement of words.

From a textfile called wordchange.txt in your Zmud root directory with the format:
Code:
oldword1,newword1
oldword2,newword2
oldword3,newword3
oldwordn,newwordn


And the script:
Code:
#ALIAS sa {#file 1 wordchange.txt;message="";#LOOP 1,%numwords( "%-1") {word=%word( "%-1", %i);#IF (%pos( %rightback( @word, 1), ",.;:!?")) {punct=%rightback( @word, 1);word=%leftback( @word, 1)} {punct=""};oword=%grep( 1, %concat( "^", @word, ","));#IF (@oword) { #IF (%numitems( @oword)>1) {oword=@word} {oword=%word( @oword, 2, ",");#IF (%pos( " (or) ", @oword)) {oword=%word( @oword, %random( 1, %numwords( @oword, " (or) ")), " (or) ")}}} {oword=@word};message=%concat( @message, @oword, @punct, " ")};message=%leftback( @message, 1);say @message;#close 1}
#ALIAS sayt {#file 1 wordchange.txt;message="";#LOOP 1,%numwords( "%-2") {word=%word( "%-2", %i);#IF (%pos( %rightback( @word, 1), ",.;:!?")) {punct=%rightback( @word, 1);word=%leftback( @word, 1)} {punct=""};oword=%grep( 1, %concat( "^", @word, ","));#IF (@oword) { #IF (%numitems( @oword)>1) {oword=@word} {oword=%word( @oword, 2, ",");#IF (%pos( " (or) ", @oword)) {oword=%word( @oword, %random( 1, %numwords( @oword, " (or) ")), " (or) ")}}} {oword=@word};message=%concat( @message, @oword, @punct, " ")};message=%leftback( @message, 1);sayto %1 @message;#close 1}
#ALIAS yel {#file 1 wordchange.txt;message="";#LOOP 1,%numwords( "%-1") {word=%word( "%-1", %i);#IF (%pos( %rightback( @word, 1), ",.;:!?")) {punct=%rightback( @word, 1);word=%leftback( @word, 1)} {punct=""};oword=%grep( 1, %concat( "^", @word, ","));#IF (@oword) { #IF (%numitems( @oword)>1) {oword=@word} {oword=%word( @oword, 2, ",");#IF (%pos( " (or) ", @oword)) {oword=%word( @oword, %random( 1, %numwords( @oword, " (or) ")), " (or) ")}}} {oword=@word};message=%concat( @message, @oword, @punct, " ")};message=%leftback( @message, 1);yell @message;#close 1}
#ALIAS tel {#file 1 wordchange.txt;message="";#LOOP 1,%numwords( "%-2") {word=%word( "%-2", %i);#IF (%pos( %rightback( @word, 1), ",.;:!?")) {punct=%rightback( @word, 1);word=%leftback( @word, 1)} {punct=""};oword=%grep( 1, %concat( "^", @word, ","));#IF (@oword) { #IF (%numitems( @oword)>1) {oword=@word} {oword=%word( @oword, 2, ",");#IF (%pos( " (or) ", @oword)) {oword=%word( @oword, %random( 1, %numwords( @oword, " (or) ")), " (or) ")}}} {oword=@word};message=%concat( @message, @oword, @punct, " ")};message=%leftback( @message, 1);tell %1 @message;#close 1}
#ALIAS rep {#file 1 wordchange.txt;message="";#LOOP 1,%numwords( "%-1") {word=%word( "%-1", %i);#IF (%pos( %rightback( @word, 1), ",.;:!?")) {punct=%rightback( @word, 1);word=%leftback( @word, 1)} {punct=""};oword=%grep( 1, %concat( "^", @word, ","));#IF (@oword) { #IF (%numitems( @oword)>1) {oword=@word} {oword=%word( @oword, 2, ",");#IF (%pos( " (or) ", @oword)) {oword=%word( @oword, %random( 1, %numwords( @oword, " (or) ")), " (or) ")}}} {oword=@word};message=%concat( @message, @oword, @punct, " ")};message=%leftback( @message, 1);reply @message;#close 1}
#ALIAS gt {#file 1 wordchange.txt;message="";#LOOP 1,%numwords( "%-1") {word=%word( "%-1", %i);#IF (%pos( %rightback( @word, 1), ",.;:!?")) {punct=%rightback( @word, 1);word=%leftback( @word, 1)} {punct=""};oword=%grep( 1, %concat( "^", @word, ","));#IF (@oword) { #IF (%numitems( @oword)>1) {oword=@word} {oword=%word( @oword, 2, ",");#IF (%pos( " (or) ", @oword)) {oword=%word( @oword, %random( 1, %numwords( @oword, " (or) ")), " (or) ")}}} {oword=@word};message=%concat( @message, @oword, @punct, " ")};message=%leftback( @message, 1);gtell @message;#close 1}
#TRIGGER {Opened wordchange.txt as file 1} {#gag (1)}
#TRIGGER {Closed wordchange.txt on file 1} {#gag (1)}


Sorry its not neater, but this is how Zmud exports code. Once you enter it into Zmud it should become more understandable.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 231 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 24  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 35 guests


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

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group