Author |
Message |
Topic: Alias parameter question |
Ayclaes
Replies: 1
Views: 919
|
Forum: zMUD General Discussion Posted: Tue Jan 24, 2006 2:15 am Subject: Alias parameter question |
#ALIAS apunch {#T+ punch;#RESET (punch|counter);#IF (%numparam == 3) {punch_uses = %3}{punch_targ = %1 %2};#IF (%numparam == 2) {#IF (%isnumber( %2)) {punch_uses = %2;punch_target = %1} {punch_target ... |
Topic: Problem with Variable assignment |
Ayclaes
Replies: 2
Views: 1333
|
Forum: zMUD General Discussion Posted: Mon Nov 21, 2005 10:56 pm Subject: Problem with Variable assignment |
Excellent, thanks. I'm not sure how I forgot to try that. |
Topic: Problem with Variable assignment |
Ayclaes
Replies: 2
Views: 1333
|
Forum: zMUD General Discussion Posted: Thu Nov 17, 2005 10:32 pm Subject: Problem with Variable assignment |
Hopefully a quick question:
#IF (@current_delay = 0) {
#ADD current_delay [%1+1]
LA_delay = [%1+1]
} {current_delay = [@current_delay+%1+1]
LA_delay = [@current_delay+%1+1]
}
LA_delay =%1 ... |
Topic: Checking empty command line vars |
Ayclaes
Replies: 2
Views: 1642
|
Forum: zMUD General Discussion Posted: Fri Sep 23, 2005 10:38 pm Subject: Checking empty command line vars |
nm, got it.
#alias vig {#if (%1) {cast vig %1} {cast vig @char}}
I didn't know it was that simple. Thanks boards for helping me work it out! |
Topic: Checking empty command line vars |
Ayclaes
Replies: 2
Views: 1642
|
Forum: zMUD General Discussion Posted: Fri Sep 23, 2005 10:35 pm Subject: Checking empty command line vars |
Quick question - Is there a way to check if command line vars (%1...%99) are used in an alias?
I want to do this:
@char = John
#alias vig {#if (%1 = "") {cast vig @char} {cast vig %1}}
Any sug ... |
Topic: Using @rec.key while passing the key |
Ayclaes
Replies: 1
Views: 1159
|
Forum: zMUD General Discussion Posted: Tue Sep 20, 2005 11:00 pm Subject: Using @rec.key while passing the key |
Example:
#var Chars_Gods {John=Zeus|Mike=Hera}
#var current_char {John}
#var current_god {}
#trigger {Welcome %1~!} {current_char = %1; current_god = @Chars_Gods.@current_char}
I'm not evalua ... |
Topic: Problem evaluating first and last entries in a string list |
Ayclaes
Replies: 1
Views: 1157
|
Forum: zMUD General Discussion Posted: Mon Apr 04, 2005 12:23 am Subject: Problem evaluating first and last entries in a string list |
I'm just having a problem with my triggers not evaluating the first and last entries in a string list. The code and concept are quite simple, but I've added 'spacers' at the beginning and end of the ... |
Topic: Problems expanding vars in a trigger creation line |
Ayclaes
Replies: 3
Views: 1661
|
Forum: zMUD General Discussion Posted: Thu Mar 31, 2005 11:50 am Subject: Problems expanding vars in a trigger creation line |
Syntax error, but it works. Score!
Thanks DeathDealer. |
Topic: Problems expanding vars in a trigger creation line |
Ayclaes
Replies: 3
Views: 1661
|
Forum: zMUD General Discussion Posted: Thu Mar 31, 2005 3:51 am Subject: Problems expanding vars in a trigger creation line |
Hi all,
I'm hoping someone knows how to do this. Its really simple and I've tried a lot of things with no luck. It seems creating a trigger within an alias won't expand vars. I've tried [],{},( ... |
|