Author |
Message |
Topic: [7.05] #MSS and %mss |
Zafrusteria
Replies: 3
Views: 6323
|
Forum: zMUD General Discussion Posted: Thu Apr 08, 2004 2:09 pm Subject: [7.05] #MSS and %mss |
I have Perlscript installed already :-).
The question I'm after the answer for is
What goes in the [Language] parameter of the #MSS and %mss command/function for zmud when using Perlscript?
T ... |
Topic: [7.05] #MSS and %mss |
Zafrusteria
Replies: 3
Views: 6323
|
Forum: zMUD General Discussion Posted: Thu Apr 08, 2004 8:54 am Subject: [7.05] #MSS and %mss |
I was looking at the feature list for the new version and it says you can use perlscript rather than the built in scripting language. On the help pages for #MSS and %mss there is an optional parameter ... |
Topic: problem with =~ |
Zafrusteria
Replies: 4
Views: 8312
|
Forum: zMUD General Discussion Posted: Sun Feb 29, 2004 2:22 pm Subject: problem with =~ |
Thanks for the answer,
I found it in the help file too
|
Topic: problem with =~ |
Zafrusteria
Replies: 4
Views: 8312
|
Forum: zMUD General Discussion Posted: Sun Feb 29, 2004 10:40 am Subject: problem with =~ |
also this seems wrong too but using an exact match
alias test_bug
#SHOW %1
#IF ("%1" = "monster") {#SHOW buggy} {#SHOW correct}
#IF ("%1" = "a") {#SHOW buggy} {#SHOW correct}
run with test_ ... |
Topic: problem with =~ |
Zafrusteria
Replies: 4
Views: 8312
|
Forum: zMUD General Discussion Posted: Sun Feb 29, 2004 10:20 am Subject: problem with =~ |
#alias test_bug
#IF ("%1" =~ "foobar") {#SHOW true foobar = "%1"}
#IF ("%1" =~ "true foobar") {#SHOW true true foobar = "%1"}
#IF ("%1" =~ "false foobar") {#SHOW true false foobar = "%1"}
when ... |
Topic: Caputuring text that is a different colour |
Zafrusteria
Replies: 2
Views: 5310
|
Forum: zMUD General Discussion Posted: Thu Dec 11, 2003 9:34 am Subject: Caputuring text that is a different colour |
DOH! I read that post already, on reading it again, enlightenment.
Thanks |
Topic: Caputuring text that is a different colour |
Zafrusteria
Replies: 2
Views: 5310
|
Forum: zMUD General Discussion Posted: Wed Dec 10, 2003 5:42 pm Subject: Caputuring text that is a different colour |
I thought this was possible but cannot find the commands/functions to do it.
What I want to do is capture text from a room description because it is a different colour. As in the following,
Th ... |
Topic: %s in triggers not working with zero spaces |
Zafrusteria
Replies: 6
Views: 7571
|
Forum: zMUD General Discussion Posted: Sun Dec 07, 2003 11:15 am Subject: %s in triggers not working with zero spaces |
No, I'm not ranting just pointing out something that is stated in the help that does not work as expected. In the hope it will get added to the FIXME list. Why is it that when the post is not vote for ... |
Topic: %s in triggers not working with zero spaces |
Zafrusteria
Replies: 6
Views: 7571
|
Forum: zMUD General Discussion Posted: Sat Dec 06, 2003 9:02 pm Subject: %s in triggers not working with zero spaces |
V 6.62
Where the text can be :-
Align:
Align:
I.e. there can be leading spaces but not always
trigger pattern is ^Align:%s~
|
Topic: ZMud COM server, reading text returned |
Zafrusteria
Replies: 1
Views: 3776
|
Forum: zMUD General Discussion Posted: Sun Nov 30, 2003 11:14 am Subject: ZMud COM server, reading text returned |
When using zMud as a COM server, I cannot see a way to read the text comming back from the mud.
You can after connecting etc. send a str to the mud with SendStr(const S: WideString);
I cannot s ... |
Topic: #IF then else maybe? |
Zafrusteria
Replies: 4
Views: 6731
|
Forum: zMUD General Discussion Posted: Mon Sep 01, 2003 8:51 pm Subject: #IF then else maybe? |
Ok thanks for the tip on spaces. Zmud has weird syntax with spaces though, not like most other scripting languages. Sometime you get unxepected results when you have spaces.
So why does @obj not g ... |
Topic: #IF then else maybe? |
Zafrusteria
Replies: 4
Views: 6731
|
Forum: zMUD General Discussion Posted: Mon Sep 01, 2003 6:42 pm Subject: #IF then else maybe? |
#SHOW test is running
#VARIABLE temp "Green"
#IF (@temp=~"Green") {#SHOW "true Green=Green"} {#SHOW "False Green<>Green"}
Can you guess what this will print on your screen after the line "t ... |
Topic: bug with Triggers |
Zafrusteria
Replies: 1
Views: 3676
|
Forum: zMUD General Discussion Posted: Sun Aug 03, 2003 10:21 am Subject: bug with Triggers |
I would have thought that dir_1 and dir_2 would end up with the same contents, but they don't.
Output from Mud
Obvious exits from this room are:
North : The Sands of Sorrow
East : The Sands ... |
Topic: turning on/off nested classes |
Zafrusteria
Replies: 3
Views: 5972
|
Forum: zMUD General Discussion Posted: Mon Jul 28, 2003 7:38 pm Subject: turning on/off nested classes |
The only problem is when you save the alias the ./ is removed from #T- ./def and the ./abc/ is removed from #T- ./abc/def so you end up with
#T- def
#T- def
I'll raise this as a bug with Zugg. ... |
Topic: why is this a syntax error? |
Zafrusteria
Replies: 2
Views: 4989
|
Forum: zMUD General Discussion Posted: Mon Jul 28, 2003 6:26 pm Subject: why is this a syntax error? |
ah ok, can Zugg put this on his list of syntax highlighter bugs.
and while playing around with this I also found this one put both in quotes and it's always false.
#var test string
#var lookfor ... |
Topic: testing strings |
Zafrusteria
Replies: 2
Views: 4972
|
Forum: zMUD General Discussion Posted: Mon Jul 28, 2003 5:58 pm Subject: testing strings |
Sorry that was a typo on my part there it should all be in %1
after expansion in the alias it should be testing
"The Sands of Sorrow" = "Strange Glowing Sand"
or
"The Sands of Sorrow" =~ " ... |
Topic: testing strings |
Zafrusteria
Replies: 2
Views: 4972
|
Forum: zMUD General Discussion Posted: Sun Jul 27, 2003 12:14 pm Subject: testing strings |
How can you check it two strings do NOT match as the following always goes through the true path.
Set the value in a variable lookfor to "The Sands of Sorrow" on the command line.
Then create an a ... |
Topic: why is this a syntax error? |
Zafrusteria
Replies: 2
Views: 4989
|
Forum: zMUD General Discussion Posted: Sun Jul 27, 2003 12:11 pm Subject: why is this a syntax error? |
Why is this a syntax error
#if (@test =~ @lookfor) { ......}
When this is not
#if (@test =~ "%2") { ......}
Did I miss something in the help file? |
Topic: turning on/off nested classes |
Zafrusteria
Replies: 3
Views: 5972
|
Forum: zMUD General Discussion Posted: Sun Jul 27, 2003 10:53 am Subject: turning on/off nested classes |
Hi
How do you turn on/off a class that is a nested class.
So normally you use #T+ <class name> and #T- <class name> to toggle the class on and off,
what is the syntax for a nested c ... |
Topic: One for the wish list |
Zafrusteria
Replies: 0
Views: 3208
|
Forum: zMUD General Discussion Posted: Fri Jun 27, 2003 3:21 pm Subject: One for the wish list |
When you do a find in the mapper and it includes a single quote '
you get an error. This is easy to get round you just use % instead.
Can all ' be converted to % before being passed to the access ... |
Topic: How to stop/break #loop ? |
Zafrusteria
Replies: 5
Views: 6819
|
Forum: zMUD General Discussion Posted: Thu Jun 05, 2003 3:23 pm Subject: How to stop/break #loop ? |
You can use #ABORT or #ABORT 1 have a look at the manual pages to see which one you need.
If it is in a loop that you want to stop at some point regardless of the settings or number of times it ha ... |
Topic: One for the wish list, Script editor |
Zafrusteria
Replies: 3
Views: 5920
|
Forum: zMUD General Discussion Posted: Tue Apr 22, 2003 8:40 am Subject: One for the wish list, Script editor |
Ok, I'll email this to Zugg.
Just thought this was a General thing rather than specific to any version.
Zaf |
Topic: One for the wish list, Script editor |
Zafrusteria
Replies: 3
Views: 5920
|
Forum: zMUD General Discussion Posted: Mon Apr 21, 2003 9:09 am Subject: One for the wish list, Script editor |
Can you add a find text option to the script editor?
Nothing fancy just a simple search for this text. Starts at the top works down to the bottom until if finds the matching text.
Zaf |
Topic: Find the Zone or area from a room name |
Zafrusteria
Replies: 0
Views: 7083
|
Forum: Finished MUD Scripts Posted: Fri Apr 18, 2003 9:34 am Subject: Find the Zone or area from a room name |
Paste the script below into your zMud editor
Note: YOU MUST change <Full path to the mapper mdb> to something like
C:ZMudmapper.mdb, I.e. to point at your own map database
Usage: findRoom ... |
Topic: ADO connection to mapper database |
Zafrusteria
Replies: 4
Views: 6824
|
Forum: zMUD General Discussion Posted: Sat Apr 05, 2003 7:11 pm Subject: ADO connection to mapper database |
DOH, I forgot about that function,
great that works a treat now. The line looks like this
#VARIABLE rs @Conn.Execute( %concat("SELECT z.name, o.name FROM ZoneTbl z, ObjectTbl o WHERE o.nam ... |
|