Register to post in forums, or Log in to your existing account
 
:
Search found 10 matches for:
Page 1 of 1
Author Message
  Topic: %i and nested LOOP/FORALL
zwanth

Replies: 7
Views: 8856

PostForum: zMUD General Discussion   Posted: Wed Jan 14, 2004 2:31 am   Subject: %i and nested LOOP/FORALL
%j is exactly what I needed... This really should be added to the Predefined Variables list in the help file.

Thanks for your assistance.
  Topic: %i and nested LOOP/FORALL
zwanth

Replies: 7
Views: 8856

PostForum: zMUD General Discussion   Posted: Wed Jan 14, 2004 1:14 am   Subject: %i and nested LOOP/FORALL
If I have two FORALLs and/or LOOPs nested, is there a way I can get the current index for the innermost loop?

For example:
#LOOP 5 {
#FORALL @stringlist {
#SAY %i
...
}
}

T ...
  Topic: %Line
zwanth

Replies: 2
Views: 3918

PostForum: zMUD General Discussion   Posted: Fri Oct 03, 2003 8:43 pm   Subject: %Line
%line is a predefined variable. From the help file:

%line the last line received from the MUD

Look under the section Predefined Variables to see a full list of variables like these.
  Topic: Mud Client discussion
zwanth

Replies: 27
Views: 50197

PostForum: zMUD General Discussion   Posted: Wed Oct 01, 2003 11:19 pm   Subject: Mud Client discussion
Well, on the MUD that I play, I know that at least 90% of regulars who play there are using a client (usually zMUD) that at least allows aliases and triggers. Playerkilling and mob killing has evolve ...
  Topic: trying to figure
zwanth

Replies: 2
Views: 4397

PostForum: zMUD General Discussion   Posted: Wed Sep 24, 2003 11:01 pm   Subject: trying to figure
zMUD gags lines that have your password. If this is what is happening, you can either change your password to something less common, or, go to Preferences and turn off the option Gag password.

If ...
  Topic: Please advise and suggest
zwanth

Replies: 5
Views: 8342

PostForum: zMUD General Discussion   Posted: Thu Sep 18, 2003 7:27 pm   Subject: Please advise and suggest
quote:Originally posted by robthesilent

#IF {@HP>@MAXHP/2}AND{@SP>@MAXSP/2} {attack fn} {wait fn}



The correct syntax for this would be:

#IF (@HP > @MAXHP/2 and @SP > @MAXSP/2) ...
  Topic: Please advise and suggest
zwanth

Replies: 5
Views: 8342

PostForum: zMUD General Discussion   Posted: Thu Sep 18, 2003 4:06 pm   Subject: Please advise and suggest
If I read your message correctly, you are trying to capture hp and sp from the following prompt syntax:


I would not use the ^ or $ tokens, as prompts do not always start or end on a line (at leas ...
  Topic: Looping execution of stringlist items
zwanth

Replies: 2
Views: 5679

PostForum: zMUD General Discussion   Posted: Sat Sep 13, 2003 5:31 pm   Subject: Looping execution of stringlist items
The easy way is to use the #FORALL comand, which executes a command for each item in a list:

#IF (%numitems(@group) > 0) {#FORALL @group {give @result gold to %i}}

with the %i variable auto ...
  Topic: Random movements
zwanth

Replies: 3
Views: 8178

PostForum: zMUD General Discussion   Posted: Fri Sep 12, 2003 3:09 pm   Subject: Random movements
Another possibility is that you or your triggers are entering a path, which zMUD then translates into directions; the "." command does this by default. For example, entering .wewen will cause zMUD to ...
  Topic: degenrated topic regarding nothing
zwanth

Replies: 49
Views: 62436

PostForum: zMUD General Discussion   Posted: Sun Sep 07, 2003 6:01 pm   Subject: degenrated topic regarding nothing
quote:Originally posted by Brains
Let me clarify: I want to be able to depend on the software I use. Cost is a minor issue, as long as we're not talking about sane (not $100's) amounts. This means th ...
 
Page 1 of 1
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net