[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Do nothing or do something what am i doing?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Do nothing or do something what am i doing?

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by TruckDriver22   Denmark  (22 posts)  [Biography] bio
Date Wed 17 Jun 2009 11:21 PM (UTC)
Message
This is my trigger now?

seq 100
^([[:alpha:]]+) is battling

group_table = group_table or {}
for i,v in pairs(group_table) do
if i == "%1" then
Send("join battle")
end


What i want is if 2 of the same people in my group_table are in the same line i don't want any action to take place but i cant seem to write it correctly. How do i make this trigger only go off if it matches and if it doesn't match then allow my other trigger to go off?

^([[:alpha:]]+) (is battlign) ([[:alpha:]]+)$

group_table = group_table or {}
for i,v in pairs(group_table) do
if i == "%1" then
for i,v in pairs(group_table) do
if i == "%3" then
end
end
end
end
or
for i,v in pairs(group_table) do
if i == "%1" then
Send("join battle")
end


Click bang... GAME OVER!
[Go to top] top

Posted by WillFa   USA  (525 posts)  [Biography] bio
Date Reply #1 on Wed 17 Jun 2009 11:28 PM (UTC)
Message

if group_table["%1"] and not group_table["%3"] then
  Send "join battle"
end


does what you want, I think.

[Go to top] top

Posted by TruckDriver22   Denmark  (22 posts)  [Biography] bio
Date Reply #2 on Thu 18 Jun 2009 12:27 AM (UTC)
Message
Yes that was it thanks now it works perfectly

Click bang... GAME OVER!
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


3,195 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]