You can access the matches table from everywhere, since it's a global variable, so that's not a problem (although I personally would write it with matches[2] as an argument too as DevArrah mentioned).
The only syntactical problem is indeed the use of = instead of ==.
Search found 176 matches
- Tue Apr 10, 2012 11:00 am
- Forum: Help Forum
- Topic: Help with non-boolean values
- Replies: 2
- Views: 2481
- Wed Apr 04, 2012 11:05 pm
- Forum: Mudlet Development
- Topic: GMCP Handling
- Replies: 10
- Views: 9175
Re: GMCP Handling
Try gmcp.char.info["current-class"]
- Sun Mar 25, 2012 1:20 am
- Forum: Help Forum
- Topic: Expand Variable inside of Temp Trigger
- Replies: 2
- Views: 2458
Re: Expand Variable inside of Temp Trigger
your tempTrigger concatenates the echo and testvar1 to the following string: [[echo(FIRED)]], which it then executes as code. Since in that string FIRED has no quotes around it, Mudlet thinks it is a variable name, but since it isn't, it actually does echo(nil). What you thus want is: testvar1 = &qu...
- Sat Mar 03, 2012 3:05 pm
- Forum: Help Forum
- Topic: problem with temptriggers and excluding
- Replies: 2
- Views: 2100
Re: problem with temptriggers and excluding
If it was a syntax error, it would show up in your error view. Does it? Anyways, the problem here is this: matches[1] is not the whole line your temp trigger matches on, but simply the part matched by the trigger pattern, in this case: target. So the string.match() you have there would only actually...
- Wed Feb 22, 2012 12:27 pm
- Forum: General Forum
- Topic: achaea gmcp time
- Replies: 12
- Views: 11090
Re: achaea gmcp time
HELP TIME states this: Achaea - That Other Context ------ ------------------ 1 Year ~ 300 hours (about 12 and a half days) 1 Month ~ 25 hours 1 Day ~ 1 hour 1 Hour ~ 2 and a half minutes 1 Minute ~ 2 and a half seconds 1 Second ~ 1/24 of a second The tilde being the key here. I've generally found t...
- Wed Feb 22, 2012 10:51 am
- Forum: General Forum
- Topic: achaea gmcp time
- Replies: 12
- Views: 11090
Re: achaea gmcp time
Thanks for the maths! It's in my mind to track that as well :) The 2.8 seconds per Achaean minute are a somewhat rough approximate value, mind you. I'm not quite sure how many real life minutes an actual Achaean day is, and it also doesn't seem to be exactly the same all the time. I just found expe...
- Tue Feb 21, 2012 8:36 pm
- Forum: General Forum
- Topic: achaea gmcp time
- Replies: 12
- Views: 11090
Re: achaea gmcp time
I go through a lot of trouble for rather irrelevant things. I mainly use it for my GUI, which displays the current Achaean time with some sun and moon images that move in real time. There's no deep practical purpose behind it, other than having an immediate, nice-looking reference that can help with...
- Tue Feb 21, 2012 5:45 pm
- Forum: General Forum
- Topic: achaea gmcp time
- Replies: 12
- Views: 11090
Re: achaea gmcp time
I wish there was, but alas, no. I do it with a whole bunch of triggers, and extrapolating with a timer that adds an "Achaean minute" to my count every 2.8 real seconds. So basically, I have an "Achaean clock" that counts from 0 (midnight) to 1440 (24*60, next midnight) and I use ...
- Sat Feb 18, 2012 12:47 am
- Forum: Help Forum
- Topic: Problem with matches[2]
- Replies: 7
- Views: 5438
Re: Problem with matches[2]
The problem was that the matches table gets overwritten any time a trigger or alias fires. Usually that doesn't happen in the middle of a running script, but it will if you explicitly fire an alias or trigger with expandAlias or feedTriggers. So your matches[2], which originally contained the name o...
- Sat Jan 28, 2012 11:45 am
- Forum: Help Forum
- Topic: Affliction-cure tables?
- Replies: 2
- Views: 2499
Re: Affliction-cure tables?
My own cure lookup table for Achaea looks somewhat like this: paracelsus.affliction_cures = { aeon = {{"smoke", "elm"}, {"tree"}}, ablaze = {{"apply", "mending"}, {"tree"}}, addiction = {{"eat", "ginseng"}, {"tree&q...