Maze game
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Maze game

Started by Eck, 08 January, 2005, 16:48:52

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Eck

This is my first go at a script so be gentle ;)

For some reason it works fine in one of my hubs, but not the other (could be because other running bots are interfering - dunno). Anyway, each 'room' in the maze is like a private room where you can chat to others. The default maze only has 20 rooms, but theoretically theres no limit to how many there can be, just alter/add to the "maze.map" file.

Start by sending a PM to the bot and move around by typing north, south, east or west (or N n e S etc. - its pretty forgiving)

Scoring isnt yet implemented - hopefully by the next release. Any feedback or bug reports appreciated as Ive only tested it with 3 users in the maze at any one time!

Also, if anyone can come up with a better maze file id appreciate that too. And how do you send a \n character in lua? Havent figured that out yet :/

Download it http://ecksbedroom.servebeer.com/files/maze.zip

Herodes

The manual says ...
Literal strings can be delimited by matching single or double quotes, and can contain the C-like escape sequences `\a' (bell), `\b' (backspace), `\f' (form feed), `\n' (newline), `\r' (carriage return), `\t' (horizontal tab), `\v' (vertical tab), `\\' (backslash), `\"' (double quote), `\'' (single quote), and `\newline' (that is, a backslash followed by a real newline, which results in a newline in the string). A character in a string may also be specified by its numerical value, through the escape sequence `\ddd', where ddd is a sequence of up to three decimal digits. Strings in Lua may contain any 8-bit value, including embedded zeros, which can be specified as `\000'.

basically you can do a tab char by '\t' and a '\r\n' for a new line ...

SMF spam blocked by CleanTalk