Mudlet Questions

by Rika

Back to Mechanic's Corner.

Fuyu2011-01-26 09:44:17
I'm trying to set up a command to help me in setting up my demesne. I was told that I should use temporary timers..but I can't seem to fully understand how to set up such when I tried to read the site manual. unsure.gif

What I'm trying to set up is something that will allow me to time demesne effects, something like how the alias I used back in nexus functioned. I have no idea how to set up something of that sort on mudlet, though. Any one who can share some knowledge (hopefully something easy to understand)? Thanks.
Lilia2011-01-26 10:48:10
send("first demesne effect")
tempTimer(10, ])
tempTimer(20, ])
tempTimer(25, ]
tempTimer(30, ])
...

Keep adding ten to the first number. If you put 10 in each one, they'll all fire ten seconds after the first effect. It will cut down on your wait time if you put effects that don't need to be timed in between the ones that do, offset by five seconds.
Fuyu2011-01-26 11:27:36
QUOTE (Lilia @ Jan 26 2011, 06:48 PM) <{POST_SNAPBACK}>
send("first demesne effect")
tempTimer(10, ])
tempTimer(20, ])
tempTimer(25, ]
tempTimer(30, ])
...

Keep adding ten to the first number. If you put 10 in each one, they'll all fire ten seconds after the first effect. It will cut down on your wait time if you put effects that don't need to be timed in between the ones that do, offset by five seconds.


Would it work if I used the same timing as the wait lines I had in nexus? I'm just curious if doing so will still ensure that they're tick at the same time afterwards.

Also..can I possibly make a trigger to help remind me when they are going to hit and when will each effect end? Something that will count down the seconds once the demesne effect is put up and warn me after n seconds.
Lilia2011-01-26 11:54:29
QUOTE (Fuyu @ Jan 26 2011, 05:27 AM) <{POST_SNAPBACK}>
Would it work if I used the same timing as the wait lines I had in nexus? I'm just curious if doing so will still ensure that they're tick at the same time afterwards.

I didn't start coding until I switched to Mudlet, so I'm not 100% sure, but that sounds right.

QUOTE
Also..can I possibly make a trigger to help remind me when they are going to hit and when will each effect end? Something that will count down the seconds once the demesne effect is put up and warn me after n seconds.

I know these exist, because I've seen them in combat logs, but I've never done one. Maybe you could trigger the line when you cast the effect, or when it ticks, to do a temp timer that will echo after how ever many seconds.
Fuyu2011-01-26 12:01:48
QUOTE (Lilia @ Jan 26 2011, 07:54 PM) <{POST_SNAPBACK}>
I didn't start coding until I switched to Mudlet, so I'm not 100% sure, but that sounds right.


I know these exist, because I've seen them in combat logs, but I've never done one. Maybe you could trigger the line when you cast the effect, or when it ticks, to do a temp timer that will echo after how ever many seconds.


I'm thinking of just that..though I wasn't so sure if having a timer set to run after 100+s wouldn't make mudlet scream at me or something..smile.gif

Thanks!

Hope the timing works.. biggrin.gif
Sondayga2011-01-28 09:40:08
How would I get this to echo on every line?

Edit: Would there be a better way to do this, it seems that with the 'cecho' it doesn't want to actually prefix it at all.

CODE
prefix(cecho(os.date("%H:%M:%S ")))
Unknown2011-01-28 12:24:41
QUOTE (sondayga @ Jan 28 2011, 09:40 AM) <{POST_SNAPBACK}>
How would I get this to echo on every line?

Edit: Would there be a better way to do this, it seems that with the 'cecho' it doesn't want to actually prefix it at all.

CODE
prefix(cecho(os.date("%H:%M:%S ")))


Going from memory here, but don't use prefix() - rather have it trigger from a Lua function using isPrompt()

That should work.
Sondayga2011-01-28 18:17:15
QUOTE (Draylor @ Jan 28 2011, 07:24 AM) <{POST_SNAPBACK}>
Going from memory here, but don't use prefix() - rather have it trigger from a Lua function using isPrompt()

That should work.


Well I was trying to use prefix to make something like the built in time stamp. Does anyone know a way to edit the current timestamp or something similar.
Vadi2011-01-28 18:35:58
The built-in one is not editable. Depending on your Mudlet version, cecho with the insertText or cinsertText will insert a colour-tagged echo at the start of the line for you. Or you can manually move the cursor, echo and change colours accordingly.
Neos2011-01-28 18:54:34
You can have a custome timestamp with the getTime() function I believe. Listed in the manual.
Sondayga2011-01-28 19:18:47
QUOTE (Vadi @ Jan 28 2011, 01:35 PM) <{POST_SNAPBACK}>
The built-in one is not editable. Depending on your Mudlet version, cecho with the insertText or cinsertText will insert a colour-tagged echo at the start of the line for you. Or you can manually move the cursor, echo and change colours accordingly.


Oh, ok this works! Now would it be possible to echo on every single line instead of just the prompt?
Vadi2011-01-28 19:59:32
I don't see why not. Just make a trigger that matches every line?

lua function of 'return true' or a regex of .* will do it.
Unknown2011-01-29 03:41:41
I've been trying to translate the Elder Wars into Common and I'm having trouble uploading some of the larger books through Mudlet. This is what I do.

* I edit in a text editor, unwrapping the lines so the uploads will not enter hard breaks.
* I then write the book. When Mudlet's window opens I copy and paste from the editor to the Mudlet window.

Is there anything I am doing wrong?
Vadi2011-01-29 03:54:41
No... but you haven't described what trouble are you getting either?
Unknown2011-01-29 04:21:01
Oh. The uploads get cut off in the middle or close to the end. I can't seem to figure it out. I wonder if it has to do with document length?
Vadi2011-01-29 12:52:56
Yeah it would be. Can you tell me if it works fine on Nexus? Also test with latest Mudlet snapshot.
Malicia2011-01-30 17:15:55
As far as silly questions go...

How does one recover the original link from whence they downloaded their system package from? I wiped all my emails clean.
Vadi2011-01-30 18:20:37
Just ask me... I'll build that functionality in sometime though.
Ilyssa2011-01-30 18:45:42
What's the function-thing to see all the different colours in Mudlet? I thought it was displayColors(), but that doesn't seem to be working.
Neos2011-01-30 18:47:09
QUOTE (Ilyssa @ Jan 30 2011, 01:45 PM) <{POST_SNAPBACK}>
What's the function-thing to see all the different colours in Mudlet? I thought it was displayColors(), but that doesn't seem to be working.

showColors()