Results 1 to 9 of 9

Thread: Fruit Machine

  1. #1
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default Fruit Machine

    First off, I'll start by giving credits:
    - Coo Too: For making a fruit machine and giving me the idea to make it better
    His thread: http://www.villavu.com/forum/showthread.php?t=25558

    Anyway, this is a fruit machine script which I made, I only got the idea from Coo Too. This one has more features, which are:
    - Fully animated
    - AutoSpin or not
    - You can set the amount of spins
    - Score recorder

    ADDED FEATURES - V 1.5
    - Carry on - run until you run out of points
    - You can choose whether you want it animated
    - You can choose whether you need the points shown to you

    Just download it an see, and tell me what you think of it!

    Version 1.5 is out! Download it now!

    Thanks!
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  2. #2
    Join Date
    Jun 2007
    Posts
    350
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    [debug]You started off with £10.
    You ended up with £64.
    That's a profit of £54!
    Thanks for playing my fruit machine! I hope you liked it!
    Successfully executed[/debug]

    Cool lol... I should gamble more

  3. #3
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    So you like the script then? Any improvements that could be made?
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  4. #4
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Overall a nice little script.
    You could shorten it a lot by putting the different types (ie big X, little x's) into 2 (or a 2d) TStringArray, then randomly use them instead of making it write out a random chunk for each section and instead the randomly chosen chunks. You can then adjust wins or losses by seeing if they match.
    An example of this could be through:
    SCAR Code:
    var
      line: TStringArray;
      outcome: array[0..2] of Integer;
    begin
      line := ['X', 'O', 'S'];
      outcome[0] := Random(3);
      outcome[1] := Random(3);
      outcome[2] := Random(3);
      Writeln('You rolled ' + line[outcome[0]] + ' - ' + line[outcome[1]] + ' - ' + line[outcome[2]] + '!');
      if(outcome[0] = outcome[1]) and (outcome[1] = outcome[2]) then
        Writeln('You matched 3!')
      else if (outcome[0] = outcome[1]) or (outcome[1] = outcome[2]) or (outcome[0] = outcome[2]) then
        Writeln('You matched 2!')
      else
        Writeln('Sorry, you didn''t match any');
    end.

    You can try by separating that all to add it in instead of your current system. To make it work with 2 string arrays, you just have 1 for top, 1 for bottom and call them separately in the WriteLn's
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  5. #5
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    this would be a lot nicer inside a form

    but nice job nonetheless
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  6. #6
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Version 1.5 is released! Get it now! New features to make it even better!


    @Dan Cardin: What would you like inside a form? Just the constants, or the machine? If the machine, how would I animate it?
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  7. #7
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    the machine itself, if nothing else you could have an image for the machine, 3 for the lever (or 1 if you're going to rotate it), then 1 for each of the fruits and a few maybe for when its spinning. Once you have the images it would just be a matter of making a loop to put them in the right place an to display the right ones when they get picked.

    That would get you the basics.
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  8. #8
    Join Date
    Jun 2007
    Location
    #SRL
    Posts
    200
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    lolz, there's one certain line that you can change to always get jackpot...

    Code:
    You started off with £15.
    You ended up with £240.
    That's a profit of £225!
    Thanks for playing my fruit machine! I hope you like it!
    and that was after only 15 rolls...
    Quote Originally Posted by IRC
    <Wizzup> 5
    <Wizzup> 4
    <Wizzup> 43
    <Wizzup> shit
    <Wizzup> 5
    <Wizzup> 4
    <Wizzup> 3
    <Wizzup> 1
    <Wizzup> offblast

  9. #9
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    With all scripts like this, there are ways to do that, but that's not the spirit of playing scripts like this :P
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Fally Smelting Machine
    By TheChineseMan in forum RS3 Outdated / Broken Scripts
    Replies: 8
    Last Post: 05-20-2008, 03:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •