Author |
Message |
Topic: Variable - stringlist |
godzilla1
Replies: 1
Views: 2945
|
Forum: zMUD General Discussion Posted: Mon Aug 01, 2005 7:56 am Subject: Variable - stringlist |
I have a variable :var1 , it contains 10 numbers. All numbers are 0, and i give them value with triggers.
example:
var1.1=5
var1.5=7
Also i decrease all value with an aliase.
#alias aliase1 {#for ... |
Topic: #SUBST in technicolor |
godzilla1
Replies: 2
Views: 4289
|
Forum: zMUD General Discussion Posted: Mon Aug 01, 2005 5:37 am Subject: #SUBST in technicolor |
#TR {A small vial labeled 'Aule'} {#SUBST {"A small vial labeled 'Aule'" %ansi(high,red)" (firebuilding)"}} |
Topic: #sub/#psub |
godzilla1
Replies: 4
Views: 5478
|
Forum: zMUD General Discussion Posted: Sun Jul 31, 2005 7:32 pm Subject: #sub/#psub |
QUESTION:
I have these triggers:
#TRIGGER {(*) steps aside as ({@grouplist}) attempts a bash, stumbles, and falls flat on his face.} {#PSUB "%2 >>failed bash>>%1 |||||||%2 --------||| ... |
Topic: #sub/#psub |
godzilla1
Replies: 4
Views: 5478
|
Forum: zMUD General Discussion Posted: Sun Jul 31, 2005 9:12 am Subject: #sub/#psub |
Well, this seems to work:
#TRIGGER {^({@grouplist})*seems weaker.} {#PSUB "** %1 seems weaker (str"%ismember(%1,@grouplist)")**" 0 %abs( %len( %line)+3)} |
Topic: #sub/#psub |
godzilla1
Replies: 4
Views: 5478
|
Forum: zMUD General Discussion Posted: Sun Jul 31, 2005 7:26 am Subject: #sub/#psub |
Or at least tell me, why zmud crash if i use this trigger and there are a full line of names + 1 more name:
#TRIGGER {({@grouplist})(%q)} {#SUBSTITUTE {%if( "%1", "%1"" [F"%ismember( "%1", @grouplist ... |
Topic: #sub/#psub |
godzilla1
Replies: 4
Views: 5478
|
Forum: zMUD General Discussion Posted: Sat Jul 30, 2005 5:44 pm Subject: #sub/#psub |
Ive had this trigger:
#TRIGGER {({@grouplist})(%q)} {#SUBSTITUTE {%if( "%1", "%1"" [F"%ismember( "%1", @grouplist)"]")%2}} "path" {case}
It substitues a groupmember name to name [F1] etc.
If there ... |
Topic: trigger |
godzilla1
Replies: 11
Views: 9144
|
Forum: zMUD General Discussion Posted: Thu Jul 28, 2005 7:28 am Subject: trigger |
Let me ask another question.
I basically want count the battle rounds for various reasons.
Easiest way to do this, if look for 2 consecutive melee attack lines between 2 prompt line, then start agai ... |
Topic: trigger |
godzilla1
Replies: 11
Views: 9144
|
Forum: zMUD General Discussion Posted: Thu Jul 28, 2005 6:56 am Subject: trigger |
But i cant open that link (from helpfile) because ffJmpWeb.dll file missing.
What is that file? How can i get it? From where? |
Topic: trigger |
godzilla1
Replies: 11
Views: 9144
|
Forum: zMUD General Discussion Posted: Wed Jul 27, 2005 8:04 pm Subject: trigger |
The * is wildchar, the @variable is a stringlist.
And yes, multistate trigger helped me, although i would not need a day for a trigger like this, if someone wrote good help files! |
Topic: trigger |
godzilla1
Replies: 11
Views: 9144
|
Forum: zMUD General Discussion Posted: Wed Jul 27, 2005 6:23 pm Subject: trigger |
I would like to check if there are 2 consecutive lines with similar patterns between 2 prompts.
Similar now means * {@variable} * .
I tryed 2 way:
I made a trigger with (*) pattern, and in the tri ... |
Topic: variables |
godzilla1
Replies: 5
Views: 5541
|
Forum: zMUD General Discussion Posted: Wed Jul 27, 2005 6:08 pm Subject: variables |
Ok, thanks for answer, it really works. My zmud probably was bugged. Just restarted and work. |
Topic: variables |
godzilla1
Replies: 5
Views: 5541
|
Forum: zMUD General Discussion Posted: Wed Jul 27, 2005 11:05 am Subject: variables |
Another question:
I have an aliase,
one command within the aliase is #forall @names {aliase2 %i}
(@names=joe,etc...)
within aliase2 i want to do :
#var XYZ%1 {ABC} <<<---this should ma ... |
Topic: variables |
godzilla1
Replies: 5
Views: 5541
|
Forum: zMUD General Discussion Posted: Wed Jul 27, 2005 9:35 am Subject: variables |
Thanks, your answer helped me!
#FORALL @names {
#VARIABLE temp1 {@%%i}
#VARIABLE temp2 {}
#FORALL @temp1 {#IF (%%%i=0) {#VARIABLE temp2 {%additem( 0, @temp2)}} {#VARIABLE temp2 {%additem( %eval ... |
Topic: variables |
godzilla1
Replies: 5
Views: 5541
|
Forum: zMUD General Discussion Posted: Wed Jul 27, 2005 8:12 am Subject: variables |
I have stringlists with numbers.
For example #var joe {1|2|3|4|5}
#var rath {1|2|3|4|5}
etc...
I want to substract every values in every variable with one command. How can i do that?
I tryed to ... |
Topic: #if |
godzilla1
Replies: 1
Views: 3097
|
Forum: zMUD General Discussion Posted: Sat Jul 23, 2005 9:20 am Subject: #if |
I am tyring to figure how is zmud working, so i read help file and try commands. But i still dont understand anything. Why dont this work? :
#var line {You recieve 216 coins}
#IF (@line =~ "You rece ... |
Topic: prompt trigger |
godzilla1
Replies: 3
Views: 4442
|
Forum: zMUD General Discussion Posted: Wed Jul 20, 2005 8:57 pm Subject: prompt trigger |
I always knew what is for prompt trigger.
I just dont know how to use it. If i use promt trigger, it isnt triggering at all for me. So that is what i ask: how to use it? |
Topic: prompt trigger |
godzilla1
Replies: 3
Views: 4442
|
Forum: zMUD General Discussion Posted: Mon Jul 18, 2005 8:57 am Subject: prompt trigger |
There is a trigger option - trigger on promt.
Can somebody explain please what is this, how to use it? What need to set on zmud, or mud?
Thanks. |
Topic: search in database |
godzilla1
Replies: 4
Views: 4876
|
Forum: zMUD General Discussion Posted: Fri Jul 15, 2005 7:42 am Subject: search in database |
Thanks |
Topic: Using a var as a list of things to trigger from |
godzilla1
Replies: 4
Views: 4981
|
Forum: zMUD General Discussion Posted: Fri Jul 15, 2005 5:54 am Subject: Using a var as a list of things to trigger from |
tThe ({@citizens}) itself isnt enough in the pattern.
eg @citizens = bob|zugg|johnnymac|etc
it will trigger on bobo , azugg etc.
Put a wild char after variable, and either make case sensitive tri ... |
Topic: search in database |
godzilla1
Replies: 4
Views: 4876
|
Forum: zMUD General Discussion Posted: Fri Jul 15, 2005 5:46 am Subject: search in database |
I try to explain again.
I have a database with similar names. Like Peter, Pete.
I type '#find Pet' and - althought there is no "Pet" name in the base at all, the command will display Peter and Pete. ... |
Topic: Using a var as a list of things to trigger from |
godzilla1
Replies: 4
Views: 4981
|
Forum: zMUD General Discussion Posted: Thu Jul 14, 2005 5:08 pm Subject: Using a var as a list of things to trigger from |
Correct. Need to know the exact pattern though. (Is there space, punctuacon, end line after the items?)
The pattern of the trigger should be
^You get a ({@varname})(.)
or
^You get a ({@varname}) ... |
Topic: search in database |
godzilla1
Replies: 4
Views: 4876
|
Forum: zMUD General Discussion Posted: Thu Jul 14, 2005 4:26 pm Subject: search in database |
How can i search in database?
I have database with 2 (or more) columns. first column for names, second for whatever.
I have just for the example 2 names in the first column, "peter" and "pete". Wit ... |
|