I am trying to "divide" a string that I caught (e.g. N E W S) using string.split(matches[2]," ").
Everything is good, except the time I spam "look". Then most of the times I will get "exits=string.split(matches[2]," ")"
"
Search found 93 matches
- Sun Dec 30, 2012 9:59 pm
- Forum: Help Forum
- Topic: string.split error
- Replies: 2
- Views: 1275
- Sun Dec 30, 2012 6:41 pm
- Forum: Help Forum
- Topic: Passing a local variable to a function arguement won't work.
- Replies: 3
- Views: 1568
Re: Passing a local variable to a function arguement won't w
Hm, <[string "function wotmudmapper:searchingRoom(tempnam..."]:7: attempt to concatenate local 'tempname' (a nil value)> but wotmudmapper.RoomName isn't nil and therefore "name" isn't nil too. Why would tempname be nil? EDIT Ok, I changed this tempID=wotmudmapper.searchingRoom(na...
- Sun Dec 30, 2012 3:53 pm
- Forum: Whatever
- Topic: What MUD(s) do you play?
- Replies: 27
- Views: 46568
Re: What MUD(s) do you play?
I play WOTmud. It has full-loot that I like so much in games.
- Sun Dec 30, 2012 3:29 pm
- Forum: Help Forum
- Topic: Passing a local variable to a function arguement won't work.
- Replies: 3
- Views: 1568
Passing a local variable to a function arguement won't work.
This is the part of the code that calls the function searchingRoom local x,y,z,i,connect,areaID local exits,name,tempID,currentID currentID=wotmudmapper.currentID name=wotmudmapper.RoomName connect=wotmudmapper.autoconnect exits=string.split(matches[2]," ") tempID=wotmudmapper.searchingRoo...
- Sun Dec 30, 2012 2:29 pm
- Forum: Help Forum
- Topic: regarding tables in tables
- Replies: 1
- Views: 1049
regarding tables in tables
In order to avoid polluting the namespace, I have put all my "global" variables inside wotmudmapper. I have also used function wotmudmapper:instertfunction() for the functions i have used. Now I want to use a queue in order to "save" the movement inside there and pop every comman...
- Sat Dec 29, 2012 9:14 pm
- Forum: Help Forum
- Topic: Does lua handle everything except nil as true boolean?
- Replies: 1
- Views: 1017
Does lua handle everything except nil as true boolean?
What the title says.
Is nil considered "false" and everything is considered "true"?
or do i have to make a logical expression everytime?
Is nil considered "false" and everything is considered "true"?
or do i have to make a logical expression everytime?
- Sat Dec 29, 2012 11:11 am
- Forum: Help Forum
- Topic: does getRooms() return the rooms of the map?
- Replies: 1
- Views: 1013
does getRooms() return the rooms of the map?
GetRooms() from the Documantation:
I think that it returns every room created in the map and is not area specific.Returns the list of all rooms in the map in an area in roomid - room name format.
- Fri Dec 28, 2012 11:00 pm
- Forum: Help Forum
- Topic: Show user data on mapper
- Replies: 1
- Views: 1216
Show user data on mapper
Is it possible to show some user data (e.g. description) on the mapper window?
- Mon Dec 24, 2012 11:10 am
- Forum: Help Forum
- Topic: finding an unknown character.
- Replies: 3
- Views: 1953
Re: finding an unknown character.
I want to catch an ascii code from the mud.I see that mudlet uses the NULL character for it, but I think that happens because mudlet cannot recognise the character.
- Sun Dec 23, 2012 9:26 pm
- Forum: Help Forum
- Topic: finding an unknown character.
- Replies: 3
- Views: 1953
finding an unknown character.
How to find the ascii code of a character that mudlet doesn't recognise?