Jump to content

Recommended Posts

Rock Paper Scissors
Version: 1.0
Author: SirBilly (silentkingdom.com)
Date: 20 January 2014
 
Introduction
This script provides the mini-game Rock, Paper, Scissors for your game.  The players wins and losses are saved to a variable to give you more options to use with in your game. For example you can set up an event that you need so many wins in order for it to run.

 

Future update ideas is to add in animation for the choice selected instead of just displaying a text outcome.
 
 
Features

Sets up a new scene for the mini-game.

Ability to customize almost everything on the screen with no scripting knowledge required.

Change the text, windows, background, bgm, se, ect.

Option to charge the player money in order to play the game. Change the return value for wining.

 

Screenshot
rps.gif
 

How to Use
Copy into materials, but above main.

Copy Actor_RPS.png file to /Graphics/Pictures/ in your project.
Read all instructions and setup options in script for customization.
 
 
Script
Get it here

 
Terms of Use
*  Free to use for both commercial and non-commercial projects.
 * Do not claim this as your own.
 * Crediting me in the game's credits would be appreciated.

 

  • Like 3

Share this post


Link to post
Share on other sites

It's pretty cool indeed, I just tested this, 
and it doesn't seem to keep track of the wins and loses, no matter how many times I play,
it's always 0 wins, 0 loses (even if the assigned variables say 6 wins 3 loses)
(I did change the variables from 1 and 2 to 25 and 26, because I was already using the first few.)

Share this post


Link to post
Share on other sites

It's pretty cool indeed, I just tested this, 

and it doesn't seem to keep track of the wins and loses, no matter how many times I play,

it's always 0 wins, 0 loses (even if the assigned variables say 6 wins 3 loses)

(I did change the variables from 1 and 2 to 25 and 26, because I was already using the first few.)

 

Thank you, I missed it when I was putting in the options to the script. I've updated the script to fix the problem.

 

 

If you search for play_again in the script just change

    human = $game_variables[1]
    computer = $game_variables[2]

To

    human = $game_variables[SK::RPS::ACTOR_VAL]
    computer = $game_variables[SK::RPS::COMP_VAL]

And you're good to go, Thanks again for letting me know about this :)

Share this post


Link to post
Share on other sites

It works perfectly now, thanks for sharing the script!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted