Newbie Trigger Questions

by Unknown

Back to Survival Guide.

Unknown2005-10-28 20:18:23
I did a search on the forums for how to set up triggers and I didn't find any useful guides or anything. I figured that it is pretty much like dumbed down C code, but I was just hoping to find a list of what are some good triggers to have. Like do people have tirggers that automatically drink potions if their health or mana drop below a certain point or to auto-heal if you have certain conditions? Is this sort of stuff what people use triggers for or am I missing the point? Any help, samples, suggestions would be very appreciated.

Pardon my newbness.
Cairam2005-10-28 20:25:29
What client are you using?
Xenthos2005-10-28 20:31:31
QUOTE(Julius @ Oct 28 2005, 04:18 PM)
I did a search on the forums for how to set up triggers and I didn't find any useful guides or anything.  I figured that it is pretty much like dumbed down C code, but I was just hoping to find a list of what are some good triggers to have.  Like do people have tirggers that automatically drink potions if their health or mana drop below a certain point or to auto-heal if you have certain conditions?  Is this sort of stuff what people use triggers for or am I missing the point?  Any help, samples, suggestions would be very appreciated.

Pardon my newbness.
213746



You really do need to mention your client, as Cairam said- things change quite dramatically from one to another.

But yeah, triggers can be used for auto-sipping, auto-cures, etc. They're extremely useful.
Unknown2005-10-28 20:31:40
I use Nexus.
Unknown2005-10-28 21:58:24
If you want coding help, your best bet is to use ZMud. Most of the players around here run with that and know the code for it. MushClient comes in second, with a few players who know how to code it. Even less are those who use TinyFugue. Basically no one uses Nexus for various reasons, I'm afraid.
Unknown2005-10-30 16:25:13
Really? I actually though Nexus was a nice client, though I know some people don't like java based programs out of spite. I don't feel like paying for zmud after 30-days, I play muds a bit but not enough for me to justify paying for it. Are those other clients (MushClient/TinyFugue) free?
Unknown2005-10-30 16:35:21
Tinyfugue is free, for MUSHClient you should actually pay for but you don't have to, there's just 10 seconds waiting screen when you run it.

Tinyfugue, as far as I know, is a text application while MUSHClient offers nice GUI. Both offer complex scripting engine though. With Nexus, you just won't be able to create any good combat system. Oh, and they're a lot faster than Java.

I'd recommend MUSHClient.
Unknown2005-10-30 16:43:00
QUOTE
With Nexus, you just won't be able to create any good combat system. Oh, and they're a lot faster than Java.

Really I dont know Im a pretty decent programmer and I've been been slowly figuring out how to program nwxus to my benefit, Im getting all the afflictions down, and coding them isnt really that bad with copy anfd paste. Although I can see that not everybody has coding experoence and if you dont the helpfile isnt really that great, but If it is impossible to get the same results, or like impossible to be competitive coding in nexus then I need to know.

If its just more wwork than ill do it.
I like challenges smile.gif
Unknown2005-10-30 19:13:41
I downloaded MushClient and it seems to be okay. So could anyone start me off with how to go about setting up an auto-"drink potions" script?
Unknown2005-11-15 00:52:38
Pick a scripting language you want to use, and in the settings, select that scripting language, and make sure scripting is enabled. In that same window choose a script file, this is simply a file that will hold a script that'll be run once on load I believe, so all set up, default variables, ect should be in there. Also funcitons you want to call should be in there. The file can just be a text file renamed to the proper name, such as blah.py for python, blah.lua for lua, ect. You'll have to find out what it is if you can't figure it out.

Next, you can do loads of things, in aliases/triggers/whatever you can make it "send to script" which will execute the "body" of that alias/trigger or whatever as the script in the scripting language you specified. The default send to is "world" so everything is just sent to lusternia without parsing, so if you want to execute script commands, it must be send to script. The alternative to this is to specify a function in the function option of the alias/trigger whatever, the problem with that is that the function must have the proper number of parameters for the call to work well, otherwise you get a very ugly error box that completely interrupts your playing experience. I prefer the send to method since I don't want to be forced to use a certain number of parameters. Also, in all of the scripting languages supported, the object "world" usually holds references to all mushclient specific functions. FOr example, in lua (or python or ######) world.Send("blah") will send "blah" to lusternia (without the quotes, the quotes just tells lua (or python or ######) that the item in question is a string). Mushclient comes with a list of these funcitons AND they can be found on the web site.

Further beyond this is plugins, but I don't feel like describing plugins so good day and good luck.

EDIT: I must mention that you needn't HAVE a script file, just remember that if you don't and you use a variable you haven't defined...bad things happen...very bad things. Also there are mushclient variables if you want things to be saved when you turn off mushclient.
Shiri2005-11-15 01:34:01
Nexus is okay, but it's SLOW and still buggyish.

And no gagging makes me and my echoes cry.

http://www.ironrealms.com/nexus/help.html

That link has (poor-ish) documentation, I should write one.
And Thorgal has a system-building thread around.

Means lots of nested #ifs. dry.gif
rhassi2005-11-15 19:11:23
QUOTE(EDekar @ Oct 28 2005, 09:58 PM)
If you want coding help, your best bet is to use ZMud.  Most of the players around here run with that and know the code for it.  MushClient comes in second, with a few players who know how to code it.  Even less are those who use TinyFugue.  Basically no one uses Nexus for various reasons, I'm afraid.
213774



not sure where you get your information. most of the people i know and play with use the nexus client
Unknown2005-11-16 00:37:57
I am a newbie too, and I do have MUSHclient but prefer to use Nexus for Lusternia so far....MOSTLY because I prefer clicking on the directional arrows rather than typing that in. (This is really essential for Lolliprin where everythign runs on a damn diagonal.)

I also have MUSHclient and the start-up wait screen is tolerable and not even an issue if you just keep the client running all the time on your computer. MUSHclient is not particularly intuitive or user friendly in terms of its advanced options, however.