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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
outlawevy
Newbie


Joined: 31 May 2021
Posts: 5

PostPosted: Sat Dec 11, 2021 12:27 am   

Making a group List Window
 
Can anyone help me with making a Group list that appears in real time? I am using cmud 3.34.



614H 131V 878160X 59.26% 2585C T:35 Exits:W> group
Your group of 2 members consists of:
Member Hits Move Position Fly Inv Water iMT Here Light Mem
------------------------------------------------------------------------------------
BA Drono perfect rested standing Y N Y Y Y 0 0
DR Denyo perfect rested standing Y N Y Y Y 1 0

614H 131V 878160X 59.26% 2585C T:15 Exits:W>


I would like it to pop up in another window and update in real time so I can watch the party's health and moves.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Sat Dec 11, 2021 1:56 am   
 
You want a stated trigger like this:
Code:
#TR {Your group of %d members consists of:} {#EXECWIN Group {#CLR}}
#COND {------------------------------------------------------------------------------------} {}
#COND {*} {
  #IF (%len(%line)>3) {
    #STATE 2
    #CAP Group
    }
  } {within|param=1}
_________________
Discord: Shalimarwildcat
Reply with quote
outlawevy
Newbie


Joined: 31 May 2021
Posts: 5

PostPosted: Sat Dec 11, 2021 2:58 am   
 
That worked!! thanks!! Is there a way to make it refresh like were I don't have to type group?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Sun Dec 12, 2021 2:41 am   
 
Unless there is another way to get the group data, no, however, you can #GAG the output so you don't see it in the main window.
You can also set an #ALARM to fire at regular intervals and send the group command for you. Depends on the level of automation you are comfortable with.
_________________
Discord: Shalimarwildcat
Reply with quote
outlawevy
Newbie


Joined: 31 May 2021
Posts: 5

PostPosted: Sun Dec 12, 2021 3:28 pm   
 
What would that look like? I have made 3 new triggers, its GAGing now but I cant figure out the #alarm.
Also is there a way to pull the header info to the new Group window?

This :
Member Hits Move Position Fly Inv Water iMT Here Light Mem

Basically I am trying to see a real time view of the group for healing/rescue. I figured it would be better to use the Group menu because it has their Hp and Moves displayed all in one area.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Sun Dec 12, 2021 8:31 pm   
 
We can simplify the original trigger to this:
Code:
#TR {Your group of %d members consists of:} {
  #EXECWIN Group {#CLR}
  #GAGON
  #C+ Group
  }
#COND {*} {#IF (%len(%line)>3) {#STATE 1} {
  #GAGOFF
  #C- Group
  }} {within|param=1}


And the alarm would be like:

Code:
#ALARM "groupUpdater" {-30} {group}


Which would fire twice a minute.
_________________
Discord: Shalimarwildcat
Reply with quote
outlawevy
Newbie


Joined: 31 May 2021
Posts: 5

PostPosted: Sun Dec 12, 2021 10:35 pm   
 
Got this error:

Illegal character: C-
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Mon Dec 13, 2021 12:34 pm   
 
Oh right, #C- works by itself, don't need to specify the window name.
_________________
Discord: Shalimarwildcat
Reply with quote
outlawevy
Newbie


Joined: 31 May 2021
Posts: 5

PostPosted: Tue Dec 14, 2021 2:16 am   
 
Thanks so much! works perfect!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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