Core trigger set: ADDGROUP

Scripts and support for your favorite MUD client.
Jhorr
Sojourner
Posts: 515
Joined: Sun Feb 25, 2001 6:01 am

Core trigger set: ADDGROUP

Postby Jhorr » Fri Feb 02, 2007 11:34 pm

TYPE:
"addgroup" to add all group members to variable "grouplist"
"viewgroup" to view current group list

Import the following lines into Zmud:

#CLASS {Add_Group} {disable}
#TRIGGER {$} {#T- Add_Group;#delitem grouplist copper}
#TRIGGER {* - (%w)} {addtogroup %1}
#CLASS 0

#CLASS {AddgroupTemp} {disable}
#TRIGGER {Unsplit coins} {#T+ Add_Group}
#CLASS 0

#ALIAS addtogroup {#additem grouplist %1}
#ALIAS addgroup {#T+ AddgroupTemp;#var grouplist "";group}
#ALIAS viewgroup {#SA CURRENT GROUP LIST:; #forall {@grouplist} {#SA %{i}}}
Ssnyss
Sojourner
Posts: 25
Joined: Tue Jan 23, 2007 12:53 am

Postby Ssnyss » Tue Feb 06, 2007 12:14 am

ok so i did that and now it makes a group list. But HOW do you tell zmud for the assist triggers to assist those people in the group? I can't remember how to connect the two. All i can do is a single person and designate them as @tank. I want my assist trigger to recognize the group not just 1 person.
Marthammor
Staff Member - Areas
Posts: 834
Joined: Tue Jul 15, 2003 9:00 am
Location: On a Rocky Tor Overlooking a Storm-Ridden Landscape
Contact:

Postby Marthammor » Tue Feb 06, 2007 7:12 am

If you're using the triggers Ambar posted, you replace the @tank variable in them with @grouplist
Disoputlip
Sojourner
Posts: 956
Joined: Thu Feb 21, 2002 6:01 am
Location: Copenhagen

Postby Disoputlip » Tue Feb 06, 2007 7:06 pm

Code: Select all

#forall @tank {assist %i}


You can also just initialize the @tank from the command

Code: Select all

@tank = Ann|Bob|Carl|Doris


Then you don't have to use all those #AddList etc. commands

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 2 guests