Search found 9 matches

by lunloon
Wed Feb 15, 2017 11:39 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Howto: Sync profiles using dropbox
Replies: 30
Views: 95956

Re: Howto: Sync profiles using dropbox

So I redid the table in Variables, forced a table.save on one of the triggers, and now there's a file in the profile which i got a script to table.load when mudlet starts up. Hope this is correct.
Going to check the other computer tomorrow.
by lunloon
Wed Feb 15, 2017 5:28 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Howto: Sync profiles using dropbox
Replies: 30
Views: 95956

Re: Howto: Sync profiles using dropbox

Edited: The more i think about it the more confused i became. So essentially getmudhomedir() should be the same on any machine as long as the mudlet on each machine has mklink the .config to the one on dropbox. i want to make a table and save it using getmudhomedir() (pardon the no caps for now). Al...
by lunloon
Mon Feb 13, 2017 2:49 pm
Forum: General Forum
Topic: How about a prompt before deleting scripts and stuff?
Replies: 3
Views: 9910

How about a prompt before deleting scripts and stuff?

Just a curious question, can this be implemented?

Just accidentally deleted a group of scripts. Very painful.
by lunloon
Mon Feb 13, 2017 1:35 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: Howto: Sync profiles using dropbox
Replies: 30
Views: 95956

Re: Howto: Sync profiles using dropbox

I have synced my profiles across 2 computer over dropbox. Triggers, scripts and aliases are ok. When i checked my variables, they are not synced. They worked nicely on computer 1 but it's not there in computer 2. Everything else is, including the triggers in which I made some Lua script which set so...
by lunloon
Mon Feb 13, 2017 11:02 am
Forum: Help Forum
Topic: Comparing 2 variables became variable and string
Replies: 5
Views: 4163

Re: Comparing 2 variables became variable and string

I am sorry. It works now.
I just cut and pasted the same code and it works now.

No idea why. :(

edited: the same code is the one with the tonumber()<tonumber() to clarify. I must have left something somewhere that got cut away. Hopefully.

Thank you all for the help.
by lunloon
Mon Feb 13, 2017 10:53 am
Forum: Help Forum
Topic: Comparing 2 variables became variable and string
Replies: 5
Views: 4163

Re: Comparing 2 variables became variable and string

Perhaps lua is helpfully transforming the variables just at the wrong time - how about the more explicit: abi=matches[2] bdee=matches[3] echo(abi) echo(bdee) if tonumber(abi) < tonumber(bdee) then echo("yay") end It might be that the action of echo ing the variables is turning one of them...
by lunloon
Mon Feb 13, 2017 9:22 am
Forum: Help Forum
Topic: Comparing 2 variables became variable and string
Replies: 5
Views: 4163

Re: Comparing 2 variables became variable and string

i've tried that actually, it's the line

if abi<bdee then echo("yay") end

that doesn't work. Even if I had tonumber the 2 variables it still tells me i am comparing a number to a string.
by lunloon
Sun Feb 12, 2017 8:57 am
Forum: Help Forum
Topic: Comparing 2 variables became variable and string
Replies: 5
Views: 4163

Comparing 2 variables became variable and string

I have a trigger with the following Lua: abi=matches[2] bdee=matches[3] echo(abi) echo(bdee) if abi<bdee then echo("yay") end I could see the echos so i know my captures were correct (both are numbers), but when i try to do the a<b, it says in the debug about trying to compare a number wit...
by lunloon
Mon Feb 06, 2017 4:59 am
Forum: Mudlet Mapper
Topic: Generic Mapping Script
Replies: 441
Views: 404254

Re: Generic Mapping Script

Is there a tutorial available for making this generic script workable on any MUD? I'm trying to use the script but I have no idea why it is not working: 1. Start mapping does not show any confirmation 2. It does say Stop Mapping when i do it. 3. It doesn't save 4. It says load but there's nothing to...