Search found 15 matches

by Sani
Mon Apr 25, 2011 9:15 am
Forum: Help Forum
Topic: preserve line colouring
Replies: 4
Views: 3509

Re: preserve line colouring

That seems to only work with the colour at the start of a line, not the ENTIRE line (as I said, were a line contains multiple colours). :/
by Sani
Mon Apr 25, 2011 12:44 am
Forum: Help Forum
Topic: preserve line colouring
Replies: 4
Views: 3509

preserve line colouring

I've run into an issue concerning accurate echoing of lines with multiple colours on them. If a line should have every word in a different colour, is there a way to somehow copy that line and echo/modify it while maintaining its original colours?
by Sani
Fri Dec 03, 2010 12:38 pm
Forum: Help Forum
Topic: timer problems in loops
Replies: 7
Views: 4706

Re: timer problems in loops

Just to make it clear, i'm not using : or ; as a seperator...that was just for illustrative purposes :( And nice try Iocun! Timer actually fired, but returned... Lua error:[string "defence_list["Fitness"].balance=1"]:1: attempt to index global 'defence_list' (a nil value). It is ...
by Sani
Fri Dec 03, 2010 11:08 am
Forum: Help Forum
Topic: timer problems in loops
Replies: 7
Views: 4706

Re: timer problems in loops

if string.find(v.special, "timer [%d]+") then local delay = tonumber(string.find(v.special, "timer ([%d]+)")) tempTimer(delay,defense_list[k].balance = 1:Cure_Balances["Salve"].used = false:send("stand")) else tempTimer(1,defense_list[k].balance = 1) end Sepe...
by Sani
Fri Dec 03, 2010 10:56 am
Forum: Help Forum
Topic: timer problems in loops
Replies: 7
Views: 4706

Re: timer problems in loops

Heiko wrote:Thats 2 syntax errors:
tempTimer( 1.5, table[k] .. "=true" )
well, good point. Was but an example though. What do you do when you have multiple commands that need encasing in []'s?
by Sani
Fri Dec 03, 2010 10:17 am
Forum: Help Forum
Topic: timer problems in loops
Replies: 7
Views: 4706

timer problems in loops

I have some code that basically looks like this...
Code: [show] | [select all] lua
for k, v in pairs(table) do
              tempTimer([[table[k] = true]])
       end
but the timer fails to correctly insert the value of k, would anyone know a way around this? Sohl suggested encasing the command in --'s but that didn't help.
by Sani
Wed Dec 01, 2010 12:39 am
Forum: Help Forum
Topic: Unknown Error
Replies: 8
Views: 4989

Re: Unknown Error

Congratulations, you have been promoted to the rank of Captain Obvious. This might be tied into it (seems like the function its referring to involves colours). Signing into Achaea and sending messages both cause Mudlet to crash, if i comment out getFgColor() then it works fine (well, no colour but n...
by Sani
Tue Nov 30, 2010 11:39 am
Forum: Help Forum
Topic: Unknown Error
Replies: 8
Views: 4989

Unknown Error

I'm recieving this error but the place it points too is just a bit above my head.
Code: [show] | [select all] lua
LUA: ERROR running script New Trigger (Trigger1) ERROR:mudlet-lua\lua\GUIUtils.lua:730: bad 
argument #1 to 'split' (string expected, got nil)
Anyone any clues on whats causing it?
by Sani
Mon Nov 29, 2010 7:51 am
Forum: Help Forum
Topic: Copying Line Colours
Replies: 8
Views: 6083

Re: Copying Line Colours

So i can store the lines, plus colours in a buffer...the call it back at the end of the paragraph (with additions)? If so...how? (no directing to that insane mudlet manual! Its more confusing than the program is :P )
by Sani
Mon Nov 29, 2010 7:43 am
Forum: Help Forum
Topic: Copying Line Colours
Replies: 8
Views: 6083

Re: Copying Line Colours

Mudlet has anonymous buffers for this type of task. You create one -> createBuffer(name) and then use copy() and paste() to copy the text + colors to your buffer. The buffer can be accessed just like a regular console buffer (=text window) - and it can even be shown on the screen with showWindow(bu...