Lawliet2009-08-06 01:49:15
Unknown2009-08-06 03:31:55
QUOTE (Shaddus Mes'ard @ Aug 5 2009, 09:30 PM) <{POST_SNAPBACK}>
Ethelon has one for his system, and it even comes with a map and bars for your stats(health/mana and so on)
Dang, no wonder I couldn't find it. I had AG, but I hadn't checked the email it was being sent to in so long, Yahoo erased the inbox and froze the account .
Well, then my next question would be is if any code monkeys have their own they wouldn't mind parting with, or maybe helping me? I'm good enough with lua to do basic stuff, but this is more advanced than I am used to.
Dysolis2009-08-06 05:45:33
Not sure if I asked this question already but how would I let's say for example wanted to point a staff in a direction. When I used Cmud what I did was ps for the alias and point staff %1 and when I ps direction it would fire in that direction. Would I use the same code in mush , the %1?
Shaddus2009-08-06 05:49:43
QUOTE (Dysolis @ Aug 6 2009, 12:45 AM) <{POST_SNAPBACK}>
Not sure if I asked this question already but how would I let's say for example wanted to point a staff in a direction. When I used Cmud what I did was ps for the alias and point staff %1 and when I ps direction it would fire in that direction. Would I use the same code in mush , the %1?
if you really want to put it into Ethelon's, use this.
QUOTE
PS *
sends
QUOTE
Point staff @script_target %1
Shaddus2009-08-06 05:50:36
QUOTE (Enigma @ Aug 5 2009, 10:31 PM) <{POST_SNAPBACK}>
Dang, no wonder I couldn't find it. I had AG, but I hadn't checked the email it was being sent to in so long, Yahoo erased the inbox and froze the account .
Well, then my next question would be is if any code monkeys have their own they wouldn't mind parting with, or maybe helping me? I'm good enough with lua to do basic stuff, but this is more advanced than I am used to.
Well, then my next question would be is if any code monkeys have their own they wouldn't mind parting with, or maybe helping me? I'm good enough with lua to do basic stuff, but this is more advanced than I am used to.
You have to pay for it, it's like 10 credits. Not entirely sure if it's worth it, but if you want it bad enough I suppose it is.
Mirami2009-08-11 23:13:02
Whee, MUSHclient questions galore! One general one, though: Where/how are if-then statements, in MUSH/Lua? I'm trying to set up my old attack aliases which (on nexus) did something akin to:
Alias: ma
if $1 = 0 {play octave sempre}
if $1 = 1 {play tritone $tar}
if $1 = 2 {next auric affliction}
if $1 = 3 {next auric affliction}
if $1 = 4 {final auric affliction}
so, ma 0 would put up octave, then ma 1 for tritone, etc.
How might I go about putting this into MUSH?
Alias: ma
if $1 = 0 {play octave sempre}
if $1 = 1 {play tritone $tar}
if $1 = 2 {next auric affliction}
if $1 = 3 {next auric affliction}
if $1 = 4 {final auric affliction}
so, ma 0 would put up octave, then ma 1 for tritone, etc.
How might I go about putting this into MUSH?
Unknown2009-08-11 23:28:21
The alias would have to be either "ma *" or "^ma (.*?)$", depending on if you're using regex or not.
That's assuming "Expands variables" to the right of the Send box is checked, and I'm using the proper command of Send("bleh").
I used tonumber because I don't quite remember if it would save the wildcard as a string, even if was a number. Using tonumber or tostring anytime you need to evaluate a number or string is good, because it forces the item in the parentheses, tonumber(%1) for instance, to be a number or string.
Use elseifs when you don't need to end the nested if statement, because then you only need one "end" statement after the entire string of nested ifs.
CODE
temp = tonumber(%1)
if temp == 0 then
  Send("play octave sempre")
elseif temp == 1 then
        Send("play tritone @target")
elseif etc
end
if temp == 0 then
  Send("play octave sempre")
elseif temp == 1 then
        Send("play tritone @target")
elseif etc
end
That's assuming "Expands variables" to the right of the Send box is checked, and I'm using the proper command of Send("bleh").
I used tonumber because I don't quite remember if it would save the wildcard as a string, even if was a number. Using tonumber or tostring anytime you need to evaluate a number or string is good, because it forces the item in the parentheses, tonumber(%1) for instance, to be a number or string.
Use elseifs when you don't need to end the nested if statement, because then you only need one "end" statement after the entire string of nested ifs.
Mirami2009-08-12 16:49:55
Zalandrus2009-08-16 04:09:58
I recently had to reinstall mush from scratch. Now it doesn't seem to be showing any breaks between lines...it feels like an easy fix, but I don't know it . Can anybody save my eyes? (And yes, I'm using AG, but there were line breaks in it when I was using it before)
Everiine2009-08-16 13:14:18
Try GAME -> CONFIGURE -> OUTPUT and check "Convert IAC EOR/GA to new line"
Zalandrus2009-08-16 13:31:01
No luck . To be clear on my problem, there are now no empty lines (such as between paragraphs) anywhere; everything's squished together. Before I had to reinstall everything (also using AG38 then), there were even empty lines between my prompts (so if you just hit enter on a blank, there'd be an empty line before a new line with the prompt).
Ilyarin2009-08-16 14:08:22
It sounds like something you have is gagging blank lines. I know there's a plugin (OmitBlankLines) that does this... Check that, or something similar, isn't installed?
Zalandrus2009-08-16 14:10:21
Nope, only have the regular plugins that I've always used with AG
Ilyarin2009-08-16 14:11:22
Tried adding a linebreak to your prompt?
Zalandrus2009-08-16 14:13:49
Yes. It helps a little between prompt lines, but things with paragraphs (eg news posts, help files, etc.) are all still smushed together
Ilyarin2009-08-16 14:18:08
Definitely sounds like you have something that is omitting blank lines. Try searching your triggers for: ^$
Zalandrus2009-08-16 14:23:33
I love you Ilyarin. Now the question is...why was this trigger firing now, when it never used to before my reinstall? I never had to turn a trigger like this off before...that, and my blasted potionlist isn't working again
Zalandrus2009-08-16 20:37:33
Now for a unique situation...
When I first upgraded to AG v38, everything worked fine except for the potionlist. Whenever I did pl or plv (for those familiar with the system), the screen would flicker, and nothing would show up. When I went through and disabled the pl-specific gags, plv would work (would show the old pl), but not pl. This problem persisted if I simply reloaded the script/triggers/aliases.
Then I had to reinstall mush. Starting from scratch, pl worked for a while. But, through various plugin installations, restarts (or maybe just the passing of time), pl stopped working again. Then I installed Ilyarin's potionlist plugin. Miraculously, AG's pl started showing up again (and Ilyarin's was fine). But, as I kept using both, both would start double-counting some vials (so AG's pl would say I had more bromides than I had, and Ilyarin's would show I had more of potion X than I had, and in the specifics, double-list some of the vials). It's still doing it now.
Where might the underlying problem be? Originally I thought it was just in the 'automatic MORE' triggering, as toggling that back and forth would fix/break AG's pl. But now it doesn't seem to be just that.
When I first upgraded to AG v38, everything worked fine except for the potionlist. Whenever I did pl or plv (for those familiar with the system), the screen would flicker, and nothing would show up. When I went through and disabled the pl-specific gags, plv would work (would show the old pl), but not pl. This problem persisted if I simply reloaded the script/triggers/aliases.
Then I had to reinstall mush. Starting from scratch, pl worked for a while. But, through various plugin installations, restarts (or maybe just the passing of time), pl stopped working again. Then I installed Ilyarin's potionlist plugin. Miraculously, AG's pl started showing up again (and Ilyarin's was fine). But, as I kept using both, both would start double-counting some vials (so AG's pl would say I had more bromides than I had, and Ilyarin's would show I had more of potion X than I had, and in the specifics, double-list some of the vials). It's still doing it now.
Where might the underlying problem be? Originally I thought it was just in the 'automatic MORE' triggering, as toggling that back and forth would fix/break AG's pl. But now it doesn't seem to be just that.
Everiine2009-08-16 20:52:09
This might be an issue you should send to Ethelon. Those of us who don't use his system can't really diagnose a problem using it.
Shaddus2009-08-16 20:59:51
If I'm understanding correctly, you're using both Ilyarin's and Eth's potionlist. I'm pretty sure I couldn't use Ilyarin's because of how Eth's is set up