Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Ralph1971
Wanderer


Joined: 01 Mar 2008
Posts: 64

PostPosted: Sat Nov 22, 2008 2:53 am   

new angle on group list
 
Ok.. the last attempt didn't work out so well.. so here's another idea I had..
this is what I see when I do a 'group' list..
Code:

<blank line>
Following Brockhaus        [hitpnts]   [ magic ] [mst] [mvs] [race] [to lvl]
[8   A War]  Brockhaus      231/239                   -==    190    elf    41763
[50  A Ran]  Kendal        1615/1615    926/926   ===    640  dwarf
[50  N Mag]  Meland        1235/1220   1491/1491  ===    735    elf
<blank line>

how can I (using %ismember) read in the name, min hp, max hp, min mana/max mana into variables to outbut just those chars to the status window using the variables?
for example.. I want to monitor brockhaus and melands hp and mana, but not kendal.. so there's a start..
#var mygroup {Brockhaus|meland}
where from there?
Reply with quote
Ralph1971
Wanderer


Joined: 01 Mar 2008
Posts: 64

PostPosted: Wed Nov 26, 2008 1:10 am   
 
53 views and no suggestions?
staring and stopping are no problem.. starts on "following", ends with ^$.. problem is catching the between items, and keeping them associated with the right name with the right hp/mana.
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Wed Nov 26, 2008 5:34 pm   
 
Well, you wouldn't read them in using %ismember(), but with a trigger. Then the trig checks against the mygroup using %ismember().
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Dec 01, 2008 5:17 pm   
 
I've got something I coded offline but I haven't been able to post it yet, look for it later today.
_________________
Asati di tempari!
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Dec 02, 2008 1:52 pm   
 
Crap!!! This is going to take a little bit longer. I coded it for CMUD instead of zMUD.
_________________
Asati di tempari!
Reply with quote
Ralph1971
Wanderer


Joined: 01 Mar 2008
Posts: 64

PostPosted: Wed Dec 03, 2008 12:20 am   
 
CAn you post both? i'm debating on taking the special and checking out CMud...
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sat Dec 06, 2008 5:17 pm   
 
My battery died and I lost both, the zMUD version will have to do
Code:
#VAR Friends {Meland|Brockhaus}
#VAR Header {[hitpnts] [ magic ]
}
#VAR FriendStats {Brockhaus231/239Meland1235/1220 1491/1491}
#TRIGGER {Following (%w) %s ~[hitpnts~]} {
  #T+ FriendCheck
  Header= "              [hitpnts]   [ magic ]%crlf"
  }
#COND {^$} {
  #T- FriendCheck
  Result = @Header
  #FORALL @Friends {#IF (%db( @FriendStats, %i)) {Result = %concat( @Result, %format( "&-14s", %i) , %db( @FriendStats, %i), %crlf)}}
  #STWIN @Result
  }
#TRIGGER "FriendCheck" {~[%d*~]  (%w*) (%d/%d * ) ?==} {#IF (%ismember( %1, @Friends) > 0) {#ADDKEY FriendStats {%1} {%2}}} "" {disable}
_________________
Asati di tempari!
Reply with quote
Ralph1971
Wanderer


Joined: 01 Mar 2008
Posts: 64

PostPosted: Mon Dec 08, 2008 4:21 am   
 
hmm.. it looks good.. but when my group is more than meland (say Meland and Kendal).. it is still only showing Meland.. but Kendal is showing up in the friends variable.
The header is showing up right, and meland is being displayed right.. but that's it.
btw.. cut and paste to a file, read file into zmud.
out of curiousity.. what is the ?== in the last trigger?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net