Machi Koro in mIRC

By [Plornt] on Aug 20, 2015

Prerequisites

Before you go ahead and start reading this and trying to put this on your IRC bot, you should know that this requires a DLL and may require IRCop permissions on your server if the server you are going to play on has excess flood limitations. This is a very spammy game and was made purely as a test to see how long it would take to make in mSL.

The DLL is spaces.dll and is aquired here: http://www.xise.nl/mirc/

Ever played machi koro?

If not it's a fun multiplayer card game which involves purchasing a particular set of cards before everyone else in the game does. You play by starting out with 3 coins a wheat field (that earns you 1 coin per every time anyone rolls a 1 on a die) and a bakery that earns you 1 coin when on your turn you roll a 2 or 3.

There are many different cards you can purchase which all do different things. The game loads its card list from a file (of which the basic set of cards are provided below - but is extensible). When the game begins it will message every player with a card list and instructions on what they do. I would reccomend however reading the rules if you have never played before:

http://idwgames.com/wp-content/uploads/2015/02/Machi-RULES-reduced.pdf

The Commands

!machikoro - Starts the game and allows people to join

!mJoin - Joins the current game

!mStart - Starts the game

!mStop - Op only, stops the game

!cards [player] - Shows a users in game cards

!coins [player] - Shows a users in game coins

!kick [Player] - Op Only, kicks a player

!forceNextTurn - Op only, sometimes things break and you may need to force the game to the next player. I made it pretty stable from playing it and havent recently had to use this but just in case!

!mLeave - Leaves the current game

All the rest of the commands are explained in game as they are registered by whatever cards you have enabled.

Setup

Put the cards list found here: http://pastebin.com/hXw6M5ZB
Until the code blocks below are fixed.

Place that into a file in your mirc directory named machi_cards.ini

Put the game code into a remotes file, found here: http://pastebin.com/SYTWggmr

Comments

Sign in to comment.
[Plornt]   -  Aug 20, 2015

Oh god, that did not post correctly at all.

Think I just broke the syntax highlighter... It doesnt like what I just tried to do.

[Plornt]  -  Aug 20, 2015

@Hawkee Any idea why my code snippets are not working? I assume its because its 1.5k lines long + a few hundred lines for the other script but I dunno. I would have thought it would have at least just disabled syntax highlighting if it thought it couldnt highlight all that.

Although it shows up fine when I am in edit mode. Could it be the unicode characters in the files? I seem to remember you saying you may put a character range limit on those.

Hawkee  -  Aug 21, 2015

If the script is that long maybe it would be a good idea to upload the larger chunks to GitHub and reference them here. Hawkee is much better suited for documentation rather than displaying large chunks of code.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.