Author |
Message |
Topic: autoheal help |
teknocide
Replies: 3
Views: 4575
|
Forum: zMUD General Discussion Posted: Mon Aug 11, 2003 2:12 pm Subject: autoheal help |
just a small note;
if you're not using the third parameter, you might want to remove the ( ) around the asterisk |
Topic: Needing an autopay script |
teknocide
Replies: 7
Views: 9692
|
Forum: zMUD General Discussion Posted: Wed Aug 06, 2003 1:22 pm Subject: Needing an autopay script |
Yours also doesn't work since the variable payit is never accessed except for adding or deleting items. |
Topic: Multiple triggers vs. Single-trigger |
teknocide
Replies: 1
Views: 2735
|
Forum: zMUD General Discussion Posted: Sat Aug 02, 2003 7:55 pm Subject: Multiple triggers vs. Single-trigger |
Is it much more inefficient to have 2 triggers with the same pattern to change one variable each, than to have 1 trigger to change 2 variables? I need a certain pattern to change the state of four or ... |
Topic: Multiple-Line Triggers |
teknocide
Replies: 2
Views: 3763
|
Forum: zMUD General Discussion Posted: Fri Aug 01, 2003 4:11 pm Subject: Multiple-Line Triggers |
#CLASS {CaptureWeapon}
#VAR weapons {a two-handed mace|a sharpened stick|a broken bottle|a heavy looking brick|an umbrella}
#VAR capture {}
#TRIGGER {^Someone swings } {#VARIABLE capture {}}
#COND ... |
Topic: Transfering String Lists |
teknocide
Replies: 5
Views: 4302
|
Forum: zMUD General Discussion Posted: Fri Aug 01, 2003 2:06 pm Subject: Transfering String Lists |
#ALIAS transfer {#IF (!%null( %2)) {#IF (!%isnumber( %3)) {#VARIABLE %1 {@%2};#VARIABLE %2 {}} {#VARIABLE %1 {%item( @%2, %3)};#DELNITEM %2 (%3)}}}
will let you type transfer var1 var2 to take ever ... |
Topic: Help with some #sub stuff |
teknocide
Replies: 4
Views: 3789
|
Forum: zMUD General Discussion Posted: Sun Jul 27, 2003 5:05 am Subject: Help with some #sub stuff |
You might be able to use a pattern such as:
^??(%d)~) |
Topic: CPU-problems |
teknocide
Replies: 10
Views: 7993
|
Forum: zMUD General Discussion Posted: Sun Jul 27, 2003 3:28 am Subject: CPU-problems |
Just thought I'd show you my solution to the problem!
pattern:
^%dhp~/%dmana ~>(?)
command (part of it):
#IF (!%null( %2)) {#PSUB {%concat( %cr, %2)} %x2}
I will try it out now to see ... |
Topic: CPU-problems |
teknocide
Replies: 10
Views: 7993
|
Forum: zMUD General Discussion Posted: Sun Jul 27, 2003 1:35 am Subject: CPU-problems |
Though.. what is #SH %5 supposed to do? I don't catch any %5 parameter.. |
Topic: CPU-problems |
teknocide
Replies: 10
Views: 7993
|
Forum: zMUD General Discussion Posted: Sat Jul 26, 2003 3:40 pm Subject: CPU-problems |
Thanks for your great feedback! I'll go into optimization now! |
Topic: CPU-problems |
teknocide
Replies: 10
Views: 7993
|
Forum: zMUD General Discussion Posted: Sat Jul 26, 2003 12:06 am Subject: CPU-problems |
LightBulb: the lower one will be insecure though, as to people being able to type:
say 1/2hp 3/4mana >You get hit by a rock.
I know I am being paranoid about this, but then again, why script ... |
Topic: CPU-problems |
teknocide
Replies: 10
Views: 7993
|
Forum: zMUD General Discussion Posted: Fri Jul 25, 2003 8:12 pm Subject: CPU-problems |
I use a complex script with triggers and aliases. My problem is that when fully active, it takes up about 25% of my CPU resources, and this is highly noticable in gameplay! zMUD stutters and the usual ... |
Topic: Expression-triggers |
teknocide
Replies: 2
Views: 3626
|
Forum: zMUD General Discussion Posted: Tue Jul 22, 2003 2:24 pm Subject: Expression-triggers |
Bah, I found what I was doing wrong.
Thanks for the reply though! |
Topic: Curious #FUNC-test |
teknocide
Replies: 8
Views: 6952
|
Forum: zMUD General Discussion Posted: Tue Jul 22, 2003 12:17 am Subject: Curious #FUNC-test |
A fine explanation. Thank you! |
Topic: Expression-triggers |
teknocide
Replies: 2
Views: 3626
|
Forum: zMUD General Discussion Posted: Tue Jul 22, 2003 12:15 am Subject: Expression-triggers |
Alright, I have really smashed my head bloody against this one problem.
I have a number of affliction-healing triggers -- yep, achaea-person -- that are supposed to trigger when two or more conditi ... |
Topic: Curious #FUNC-test |
teknocide
Replies: 8
Views: 6952
|
Forum: zMUD General Discussion Posted: Mon Jul 21, 2003 1:28 pm Subject: Curious #FUNC-test |
Thanks man, that worked great!
Although, zMUD makes me confused now.
after first glance at your function, I thought it was bugged -- a ";" in the middle of an %exec-function?
The zMUD-editor thinks ... |
Topic: Curious #FUNC-test |
teknocide
Replies: 8
Views: 6952
|
Forum: zMUD General Discussion Posted: Mon Jul 21, 2003 12:50 pm Subject: Curious #FUNC-test |
The problem with that solution is that %additem doesn't really add an item to the string-list; it returns the string-list with an item added, which is not what I want. I want to RETURN the foremost it ... |
Topic: Curious #FUNC-test |
teknocide
Replies: 8
Views: 6952
|
Forum: zMUD General Discussion Posted: Mon Jul 21, 2003 9:38 am Subject: Curious #FUNC-test |
Yes you can. At least I managed to, and this thread here says you can:
|
Topic: Switching characters.. |
teknocide
Replies: 3
Views: 4063
|
Forum: zMUD General Discussion Posted: Mon Jul 21, 2003 3:02 am Subject: Switching characters.. |
What version of zMUD are you using? |
Topic: Curious #FUNC-test |
teknocide
Replies: 8
Views: 6952
|
Forum: zMUD General Discussion Posted: Mon Jul 21, 2003 1:00 am Subject: Curious #FUNC-test |
Hello!
to keep it short; I have a number of string-lists containing different words. let's say that:
fruitList=banana|pear|orange
I want a function that can take the foremost item from this l ... |
Topic: Reg-exp problems with version 6.40 |
teknocide
Replies: 6
Views: 6532
|
Forum: zMUD General Discussion Posted: Tue Jul 15, 2003 2:43 am Subject: Reg-exp problems with version 6.40 |
^(([0-9]+h, [0-9]+m [a-z]*-)*s?)?([a-zA-Z]+s)+draws his blade
really sorry for multi-posting. I can't seem to edit my posts |
Topic: Reg-exp problems with version 6.40 |
teknocide
Replies: 6
Views: 6532
|
Forum: zMUD General Discussion Posted: Tue Jul 15, 2003 2:42 am Subject: Reg-exp problems with version 6.40 |
and as usual I have mistyped the reg-exp. what I am trigging at is:
^(([0-9]+h, [0-9]+m [a-z]*-)*s?)?([a-zA-Z]+s)+draws his blade
|
Topic: Reg-exp problems with version 6.40 |
teknocide
Replies: 6
Views: 6532
|
Forum: zMUD General Discussion Posted: Tue Jul 15, 2003 2:40 am Subject: Reg-exp problems with version 6.40 |
I am not contradicting myself. Ok, I'll post the full expression so you see what I am trying:
^(([0-9]+h, [0-9]+m [a-z]*-)*s?)?([a-zA-Z]+s)+ draws his blade
This should work with:
Sir Roger ... |
Topic: Reg-exp problems with version 6.40 |
teknocide
Replies: 6
Views: 6532
|
Forum: zMUD General Discussion Posted: Tue Jul 15, 2003 2:22 am Subject: Reg-exp problems with version 6.40 |
ahh, I forgot to add a + before the $ in the last example. Problem is still the same though |
Topic: Reg-exp problems with version 6.40 |
teknocide
Replies: 6
Views: 6532
|
Forum: zMUD General Discussion Posted: Tue Jul 15, 2003 2:20 am Subject: Reg-exp problems with version 6.40 |
(noted should be that:
^([a-zA-Z]+s)$
triggers correctly on "Roger ", "Roger Rabbit ", and so forth. I can't see what I'm doing wrong, if it is indeed my fault) |
Topic: Reg-exp problems with version 6.40 |
teknocide
Replies: 6
Views: 6532
|
Forum: zMUD General Discussion Posted: Tue Jul 15, 2003 2:14 am Subject: Reg-exp problems with version 6.40 |
I am trying to compose a trigger that fires if any number of words followed by " is here." is received. I tried implementing it like:
^([a-zA-Z]+s)+is here.$
and wanted it to trigger on such lin ... |
|