My game is a two dice game so there are a total of 36 numerical combinations for the dice which are the following: Next, we have to work on the code inside of the. The first part refers to the $user who uses the command followed by some filler text telling the user what he or she is doing and then linking the dice.txt with the $readrandline() parameter. $user, you roll the dice and… $readrandline(C:\users\…\dice.txt) txt file in which you have the code (coming up). HOW TO MAKE ITįirst, in the !dice command you must have Ankhbot read the. txt document which match up to a dice combination 2) Ankhbot calculates how many supplies to give or take away. 1) Ankhbot randomly chooses one line from 36 lines of code saved in a. On the surface it may seem that there’s a lot going on with calculations of dice and currency, but in reality there are only a couple of things being done when the !dice command is entered. That said, let’s take a look at how I made my dice game in Ankhbot. It is a faster, easier way for followers to win smaller amounts and get their fix because they don’t have to wait on other followers to join or the system to countdown to start. Where an !ambush allows them to gain/lose a larger sum of Supplies (my currency), the !dice command allows them to gain/lose smaller amounts. So, following the lead of Moobot, a popular Twitch channel bot, I created a dice game that allows my followers to quickly gain (and lose) supplies. Many broadcasters have adapted the Ankhbot (or other) heist program for their channels in varying ways to fit their channel’s theme (mine being an !ambush), but as we all know a little variety goes a long way. You can find my new blog at and a direct link to this article at įollowers come to your channel to interact with you and your community, but it doesn’t hurt to have something else for them to do while there. Because of changes to the way Medium operates, I will no longer be keeping up this blog.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |