Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

My first tutorial..Lottery Using Events.

This is my first tutorial ever, so be easy on me guys. I am going to be showing the noobs out there how to make a simple lottery system for online games. What I recommend you do is follow the tutorial, and on your website, pick a random number from 1-1000 and post it. Have everyone tell you if they have that number, and have them show you a picture or something. Like I said, I just randomly thought of this and am making a tutorial for it. Also, if you use it, I would like some credit. Thanks.
------------------------------------------
First off, make a new project (as a test) and create this event page. In order for this tutorial to work, you should make a variable called Lotto Ticket #, A common event called Lottery Ticket, and an item called Lottery Ticket. First off, make a character anywhere on the map and make it contain these events.
http://img169.imageshack.us/img169/2097/testij5.png[/IMG]
------------------------------------------
Now, create an item with these properties.
http://img405.imageshack.us/img405/5668/testuw3.png[/IMG]
------------------------------------------
Finally, create a common event that will show the message "Your lottery number is \v[1]. Now, I know, these directions may be kinda confusing, but its late and im tired. I made a demo for ya guys, download it here http://s11.up-file.com/download3/0aee52202224_wk0akhyokn0d1501/Project5.exe. Hope ya guys enjoy, and I hope someone finds a use for this.
 
Ohh... The "You already have a lottery ticket" should go right before the Else of the conditional branch if the ticket's in the inventory. Nice tut, though.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top