Search found 88 matches

by Knute
Sat Jul 03, 2010 2:25 pm
Forum: Help Forum
Topic: counter
Replies: 11
Views: 8539

Re: counter

hrmmm... Hey ceff, how can you tell that the trigger works if you can't see the variable?

There were no indicators written into the trigger to tell you if it fired or not.
So if the alias doesn't work, how do you know that the trigger is working?
by Knute
Sat Jul 03, 2010 12:48 pm
Forum: Help Forum
Topic: counter
Replies: 11
Views: 8539

Re: counter

In order to program in any language, you need to sit down and work out the steps that you need to take. After that is completed, you put it into pseudocode. For this example, you need to initialize the variable, then increment it. If you want to save it when you exit, then you need to work out those...
by Knute
Sat Jul 03, 2010 2:14 am
Forum: Help Forum
Topic: cecho in scripts?
Replies: 9
Views: 6209

Re: cecho in scripts?

I was curious about this one, but didn't have time to post earlier.

Could the problem with cecho be the exclamation point? I know in some languages the exclamation point has a special meaning. Could that have come into play here?

It was just a thought, but I'm glad that you got it working.
by Knute
Sat Jul 03, 2010 2:01 am
Forum: Help Forum
Topic: counter
Replies: 11
Views: 8539

Re: counter

Set up a trigger: You think your spell casting skill has improved. You can use substring, begining of line, or exact, dependingo n where it shows up. Your script would be something like: if skillimproved == nil then skillimproved = 0 end skillimproved = skillimproved + 1 This counter would be reset ...
by Knute
Thu Jul 01, 2010 6:42 pm
Forum: Help Forum
Topic: Queue commands
Replies: 2
Views: 2704

Re: Queue commands

The way that I do it is to have a balance or eq trigger that fires on balance or eq.

When it fires, it checks a set of variables if they are 1 then the action is done, if not, then it doesn't.
by Knute
Thu Jul 01, 2010 12:24 pm
Forum: Mudlet Development
Topic: Idea: Command line navigation
Replies: 5
Views: 4845

Re: Idea: Command line navigation

Also, if your text spans multiple lines in the command box, you can use <Home> and <End> to go to the beginning of the line or the end of the line respectively. Though, with having the linewrap in IRE muds set to zero and mudlet wrapping at 80 characters, there are still new line characters when you...
by Knute
Mon Jun 28, 2010 12:46 am
Forum: Help Forum
Topic: Help with aliases
Replies: 8
Views: 4755

Re: Help with aliases

Yes. Though unless you set your targeting alias up to use "set target" as the command.... You can use whatever variable you want. As long as it doesn't conflict with something else. I tend to use more than just target though. So if I am just mindlessly hunting I use blasttarget... That way...
by Knute
Sun Jun 27, 2010 10:59 pm
Forum: Help Forum
Topic: Help with aliases
Replies: 8
Views: 4755

Re: Help with aliases

Ok, so the basics on how to use this: I have my F4 Function key set up to send my general kill thing. So if, under keys, you set up a new binding, have it grab and then press whatever key you want, then in your script you would use soemthing like: send("kill " .. target) After you set up a...
by Knute
Sun Jun 27, 2010 3:17 pm
Forum: Help Forum
Topic: Help with aliases
Replies: 8
Views: 4755

Re: Help with aliases

alias:
Code: [show] | [select all] lua
^tar (\w+)$
script:
Code: [show] | [select all] lua
target = matches[2]
cecho("<white>Target set to: <gold>" .. target .. "\n")
The cecho is optional btw.
by Knute
Sat Jun 26, 2010 11:11 am
Forum: General Forum
Topic: Hi there. So let me get this straight.
Replies: 26
Views: 18088

Re: Hi there. So let me get this straight.

The one exception I can think of is I do not believe there is currently any way to truly work with some of the features of the trigger engine. Parent-child relationships aren't accounted for in the Lua functions available, I don't think. It's possible you could do something like that, if the api we...