Unknown2009-04-23 03:07:53
Okay, first off, I'm fully aware that there are a ton of forum topics about MUSH... but I know absolutely nothing about Lua and MUSH. Reeeally entry level. I just got a new computer, finally off a Mac, so I can switch over to a viable client. The other stuff, while great and helpful, is still a bit beyond me. So, anything you can offer would be helpful. Not hating me for failing at coding would be swell too.
So the immediate question... how do I delay a command? Specifically for a startup script. Basically, it's a long string of basic defences, but I can't figure out how to delay the commands so that I can recover eq and bal first.
I am running Treant, but I plan to make a few modifications or additions. I will need to set up targetting and attack scripts.
EDIT: Iasmos, I found your tutorial on how to create a targetting alias. That's great, thanks.
So the immediate question... how do I delay a command? Specifically for a startup script. Basically, it's a long string of basic defences, but I can't figure out how to delay the commands so that I can recover eq and bal first.
I am running Treant, but I plan to make a few modifications or additions. I will need to set up targetting and attack scripts.
EDIT: Iasmos, I found your tutorial on how to create a targetting alias. That's great, thanks.
Simimi2009-04-23 03:29:50
You want this:
http://mushclient.com/forum/?id=4956
the wait.make function, specifically designed for defup scripts. (almost)
http://mushclient.com/forum/?id=4956
the wait.make function, specifically designed for defup scripts. (almost)
Unknown2009-04-23 03:39:02
Perfect! Thank you muchly.
Unknown2009-04-23 10:41:28
Um, no, he doesn't! Treant has this completely amazing defup function already built into it. It's described in the install document that comes with the archive. 

Unknown2009-04-23 21:01:43
Iasmos, Treant is wonderful. It makes me happy. You, sir, win my life.
But it is still useful to know how to delay commands/pause a script.
But it is still useful to know how to delay commands/pause a script.
Simimi2009-04-23 21:06:41
He said he wanted the non-Treant solution, so nyaah.
Unknown2009-04-23 21:20:14
Well... hm. I have no idea how to make it work in Treant, though. The install document says 'set up a variable!' Well, I... have no clue how. The installation document seems to assume that you have a foundation knowledge of how the heck things work. I... don't. At all. The file that I'm supposed to be adding my personal defense list into... is where? Is what?
Unknown2009-04-23 21:36:19
QUOTE (Simimi @ Apr 23 2009, 05:06 PM) <{POST_SNAPBACK}>
He said he wanted the non-Treant solution, so nyaah.
No! He specifically said he was using Treant, so double nyaah on you.

QUOTE (Ilaveuse @ Apr 23 2009, 05:20 PM) <{POST_SNAPBACK}>
Well... hm. I have no idea how to make it work in Treant, though. The install document says 'set up a variable!' Well, I... have no clue how. The installation document seems to assume that you have a foundation knowledge of how the heck things work. I... don't. At all. The file that I'm supposed to be adding my personal defense list into... is where? Is what?
It seems to me that many people assume everything is very difficult in MUSHclient, and they end up overcomplicating things. All you have to do is make an alias, paste in the Lua code from the install document, edit it to work for your defenses, and that's it!
For reference, here's the alias I use (called "fdef") for my own defenses. To import this into your own settings, simply copy this block of XML, open your Aliases dialog, and hit the Paste button. You can edit it from there, keeping to the same syntactic structure.
CODE
 Â
  match="^\\s*fdef\\s*$"
  enabled="y"
  regexp="y"
  send_to="12"
  ignore_case="y"
  sequence="100"
  >
 Â
  = php:Table(),
  = php:Table(),
  = php:Table(),
  = php:Table()
}
my_defup = "weathering"
my_defup = "insomnia"
my_defup = "nightsight"
my_defup = "resistance"
my_defup = "consciousness on"
my_defup = "thirdeye"
my_defup = "adrenaline"
my_defup = "rub perfection"
my_defup = "rub kingdom"
my_defup = "rub mercy"
my_defup = "rub beauty"
my_defup = "combatstyle concentrated"
my_defup = "stagform"
my_defup = "rub deathsight"
my_defup = "rub levitate"
my_defup = "breathe deep"
my_defup = "grip"
my_defup = "invoke red"
my_defup = "invoke blue"
my_defup = "outr 2 redtint;paint face swiftstripes"
my_defup = "staghide"
my_defup = "aethersight on"
my_defup = "constitution"
my_defup = "flex"
my_defup = "rub waterwalk"
my_defup = "read protection"
my_defup = "outr 2 yellowtint;paint face trueheart"
my_defup = "performance on"
my_defup = "perform sycophant"
my_defup = "perform wounded"
--my_defup = "perform sober"
my_defup = "lipread"
my_defup = "deathsense"
my_defup = "eat kafe"
--my_defup = "eat earwort"
--my_defup = "eat faeleaf"
my_defup = "sip fire"
my_defup = "sip frost"
my_defup = "sip galvanism"
defs:def_up(my_defup)
 Â
The only trick to this is getting the right defense names in the table keys. Basically, it's my_def = "command to put up defense" and you need the triggers to track the defenses going up and down, of course. Many skills are already setup to be imported with TCONFIG SKILLS. If your skills are missing, you can e-mail me the details and I'll add them for the next release.
Unknown2009-04-24 04:36:50
So, the next question... how should I incorporate psionic defences? Since I can fire three at once, one on each channel, but then I have to wait to recover eq on those. Advice?
EDIT: I must be doing something wrong, but I can't figure out what. I copied that code directly into MUSH, and it just sends that code directly to Lusternia.
I'm pretty sure I'm being a moron here, so sorry. Does that code need to go into the defs.lua file, or what?
EDIT: I must be doing something wrong, but I can't figure out what. I copied that code directly into MUSH, and it just sends that code directly to Lusternia.
I'm pretty sure I'm being a moron here, so sorry. Does that code need to go into the defs.lua file, or what?
Unknown2009-04-24 10:46:31
It's a reading comprehension thing! You missed the part where I said "open the Aliases dialog, and hit the Paste button"... 

Isuka2009-04-24 11:32:35
QUOTE (Zarquan @ Apr 23 2009, 02:36 PM) <{POST_SNAPBACK}>
... Treant def stuff ...
Interesting way of doing it. A little easier to read than my table, though it looks like how you do it requires you to do one balance at a time before moving on to the next balance set, right?
My solution is very similar, but I use a table with one element: the defense name, who's value is a nested table with the required balance and command.
The small lesson here for people learning: there are multiple ways to get the same thing done! Don't think it has to be done any one certain way.
Unknown2009-04-24 12:41:13
QUOTE (Isuka @ Apr 24 2009, 07:32 AM) <{POST_SNAPBACK}>
Interesting way of doing it. A little easier to read than my table, though it looks like how you do it requires you to do one balance at a time before moving on to the next balance set, right?
Nope! It fires all the free ones and then does the first from each balance. As you regain the various balances, it pops the next one off the appropriate list. It's as parallel as can be.
Unknown2009-04-24 17:46:59
Well, I'm still not sure how to incorporate psionics, though the first is working now.
Oddly, I added mantras in and it chanted three times. But it must have chanted all three mantras three times, since with the way Harmony is structured, if it had chanted all three separately, I would only have one of the mantras, but I had all three.
MANTRA CHANT OOSHPHET
MANTRA CHANT LUMPHET
MANTRA CHANT ANGPHET
Would result in only having Angphet, since the normal syntax is MANTRA CHANT OOSHPHET LUMPHET ANGPHET or MANTRA CHANT OOSHPHET NA NA or some such thing.
Also, is there a way to use Treant for multiple characters? If I wanted to use both Ersha and Ila on Treant, would I have to manually change the deffs every time?
And yes, I was right, I was being a moron.
Now to just figure out how to make variables... and get my defs working... and set up kata attack scripts and targets... and... *goes and hides in corner*
Oddly, I added mantras in and it chanted three times. But it must have chanted all three mantras three times, since with the way Harmony is structured, if it had chanted all three separately, I would only have one of the mantras, but I had all three.
MANTRA CHANT OOSHPHET
MANTRA CHANT LUMPHET
MANTRA CHANT ANGPHET
Would result in only having Angphet, since the normal syntax is MANTRA CHANT OOSHPHET LUMPHET ANGPHET or MANTRA CHANT OOSHPHET NA NA or some such thing.
Also, is there a way to use Treant for multiple characters? If I wanted to use both Ersha and Ila on Treant, would I have to manually change the deffs every time?
And yes, I was right, I was being a moron.
Now to just figure out how to make variables... and get my defs working... and set up kata attack scripts and targets... and... *goes and hides in corner*
Unknown2009-04-24 18:57:13
1. Mantras are not technically defenses, as far as I'm aware, as they don't show on DEF. You're responsible for putting those up yourself, outside of the defup system.
2. To use Treant on multiple characters, you really need to make separate worlds and install Treant into each world, configuring the options to suit that particular character. It's a very bad idea to use one world for multiple characters.
3. Treant does track psionic channel balances, but the defup system does not include putting up your defenses using psionic channel balance. I'm not a psionicist myself, so it's not something I've ever really been compelled to get working. Treant does, however, track most psionics defenses for you, which helps at least a little bit.
2. To use Treant on multiple characters, you really need to make separate worlds and install Treant into each world, configuring the options to suit that particular character. It's a very bad idea to use one world for multiple characters.
3. Treant does track psionic channel balances, but the defup system does not include putting up your defenses using psionic channel balance. I'm not a psionicist myself, so it's not something I've ever really been compelled to get working. Treant does, however, track most psionics defenses for you, which helps at least a little bit.
Rika2009-04-24 21:02:29
Imo, due to the nature of mantras and psionic channels, you should really put these up yourself. You might be going into a fight and need to lock certain channels/chant certain mantra. Probably better if you did this little bit yourself.
Unknown2009-04-26 04:22:35
Well, there are some basic psionic defences that I would normally put up- mindbar, bodydensity, energycontainment, etc.
EDIT: Well, I tried to add a few of my own basic defenses... deflecting and the like. It didn't work for some reason. I just added a line...
my_defup = "ka deflect left"
What's wrong? It doesn't go through.
EDIT: Well, I tried to add a few of my own basic defenses... deflecting and the like. It didn't work for some reason. I just added a line...
my_defup = "ka deflect left"
What's wrong? It doesn't go through.
Unknown2009-04-26 13:12:37
It doesn't work because (as I said earlier) there are no triggers to track such a defense.
And, Rika is correct. Make an alias or two for putting up your Psionics defenses apart from your other defenses. It tracks the defenses and the balances, but there is no queue for actions on these balances.
And, Rika is correct. Make an alias or two for putting up your Psionics defenses apart from your other defenses. It tracks the defenses and the balances, but there is no queue for actions on these balances.
Unknown2009-04-26 20:20:17
Let's see... I hate to keep sounding stupid, but I'm really not quite sure how to do that.
Unknown2009-04-26 23:55:01
If you don't know how to make an alias to send a few commands, you may wish to read my MUSHclient tutorial or browse through the MUSHclient forums (or post and wait for a response).
Unknown2009-04-27 01:33:07
You're all being so... patient isn't probably the right word, since I'm sure you're all sick to death of this by now, so maybe 'tolerant enough to not shoot Ila with a staple gun' is a better phrase.
Still having trouble with command delaying, so maybe the best thing to do is to set up multiple aliases to fire three psionic deffs at once.
I'll see what I can do.
Quick question, this one not nearly as brain-eating. In Nexus, the symbol for a variable was $. You know, P $WATERWALK. Or #set btar $1. Is it % in MUSH? Or if not, what is it?
Still having trouble with command delaying, so maybe the best thing to do is to set up multiple aliases to fire three psionic deffs at once.
I'll see what I can do.
Quick question, this one not nearly as brain-eating. In Nexus, the symbol for a variable was $. You know, P $WATERWALK. Or #set btar $1. Is it % in MUSH? Or if not, what is it?