Rock, Paper, Scissors

Rock, Paper, Scissors
Version 1.1.1
by Ciddy

​
Introduction
Since there aren't a whole lot of plugins right now I thought I port one of my old MV plugins to MZ. This plugin provides a fully playable (and manipulatable) "Rock, Paper, Scissors" minigame.

Features
  • Fully customizable vocabulary
  • Customizable icon index for every symbol
  • Customizable Win/Lose ME
  • Winner of the last game can be saved to a variable for further eventing (0: Draw, 1: Lose, 2: Win, -1: Canceled)
  • Predetermine the result of a game via an additional call
  • Change the frequency of the symbols via an additional call

How to use
  • Place it into your projects js/plugins folder​
  • Open your RPG Maker MZ Plugin Manager​
  • Select and enable to plugin​

  • Go to any of your maps and click on an event and add the following as a Script:
Code:
SceneManager.push(Scene_Roshambo);
  • Test Play the map that the event is on and fulfill it's trigger to play your first round of "Rock, Paper, Scissors"

Manipulate Games
  • Open your previously created Script and add the following line at the end:
Code:
SceneManager.prepareNextScene('default',[0,0,0]);
  • The new line has two parameters: 'default' and [0,0,0]
    • NOTE: If the parameters 'default' and [0,0,0] would be used the functionality would be no different than having no parameters active
  • To predetermine a result we have to the first parameter. Possible values are:
    • 'default' - no manipulation of the result
    • 'win' - the player always wins
    • 'lose' - the player always loses
    • 'draw' - the game is always a draw

  • With the help of the second parameter we are able to fill a pool of symbols an Event can use. The syntax is as follows:
  • [Freq. Scissors, Freq. Rock, Freq. Paper]
  • Further Examples:
    • [1,0,0] - the Event could only use Scissors
    • [1,1,0] - the Event has a 50% probability to either use Scissors or Rock
    • [0,2,1] - the Event has a 66% probability to use Rock and a 33% probability to use Paper
  • Every frequency can be upped until 10
Screenshots
Spoiler: Screenshot/Video
fq2cuUyiaf.gif

Terms of use

Free to use for commerical and non-commerical projects. If you do use this plugin in one of your projects please credit me (Ciddy).


Download
Ciddy_Roshambo.js
Simple and good, I like it!

A good addition would be allow to choose the windows size, if on top, centered etc.
And also, an option to change the characters sprites and busts (both can be combined) when they're getting ready and when they show rock/paper/scissor (character poses).

Sorry if something I said already exists, I'm at work now in my rest time and can't test it now.
Commenting in case I forget it later.
I was wondering, when you chose the variable in which it is saved, do wins make that variable +1 and loss -1?
A good addition would be allow to choose the windows size, if on top, centered etc.
And also, an option to change the characters sprites and busts (both can be combined) when they're getting ready and when they show rock/paper/scissor (character poses).
Thank you for your suggestions. Didn't even thought about movable windows.
I really want to enhance the visual presentation also (add animations, sprites etc.) but for now I wanted something simple that just works and doesn't require any graphical tinkering.
I'll see what I can do in future version though 🙂

I was wondering, when you chose the variable in which it is saved, do wins make that variable +1 and loss -1?
Actually no. The variable is set to a specific value every time you play (0: Draw, 1: Lose, 2: Win, -1: Canceled). You should probably reset or save the value of the variable, if you wanna use it later on, since it will be overridden after the next round.
If you want to calculate a streak for example you could just add +1 or -1 to an other variable after every game. I'll think about adding that to the next version.
I get a Script Call error when trying to do the prepared next game

Code:
TypeError: Cannot read property 'prepare' of null
    at Function.SceneManager.prepareNextScene (rmmz_managers.js:2194)
    at eval (eval at Game_Interpreter.command355 (rmmz_objects.js:11256), <anonymous>:1:14)
    at Game_Interpreter.command355 (rmmz_objects.js:11256)
    at Game_Interpreter.command355 (VisuMZ_0_CoreEngine.js:6323)
    at Game_Interpreter.executeCommand (rmmz_objects.js:9625)
    at Game_Interpreter.<computed>.<computed> [as executeCommand] (VisuMZ_1_EventsMoveCore.js:6254)
    at Game_Interpreter.update (rmmz_objects.js:9530)
    at Game_Map.updateInterpreter (rmmz_objects.js:6761)
    at Game_Map.update (rmmz_objects.js:6665)
    at Game_Map.<computed>.<computed> [as update] (VisuMZ_1_EventsMoveCore.js:6254)
Rock, Paper, Scissors
Version 1.1.1
by Ciddy

​
Introduction
Since there aren't a whole lot of plugins right now I thought I port one of my old MV plugins to MZ. This plugin provides a fully playable (and manipulatable) "Rock, Paper, Scissors" minigame.

Features
  • Fully customizable vocabulary
  • Customizable icon index for every symbol
  • Customizable Win/Lose ME
  • Winner of the last game can be saved to a variable for further eventing (0: Draw, 1: Lose, 2: Win, -1: Canceled)
  • Predetermine the result of a game via an additional call
  • Change the frequency of the symbols via an additional call

How to use
  • Place it into your projects js/plugins folder​
  • Open your RPG Maker MZ Plugin Manager​
  • Select and enable to plugin​

  • Go to any of your maps and click on an event and add the following as a Script:
Code:
SceneManager.push(Scene_Roshambo);
  • Test Play the map that the event is on and fulfill it's trigger to play your first round of "Rock, Paper, Scissors"

Manipulate Games
  • Open your previously created Script and add the following line at the end:
Code:
SceneManager.prepareNextScene('default',[0,0,0]);
  • The new line has two parameters: 'default' and [0,0,0]
    • NOTE: If the parameters 'default' and [0,0,0] would be used the functionality would be no different than having no parameters active
  • To predetermine a result we have to the first parameter. Possible values are:
    • 'default' - no manipulation of the result
    • 'win' - the player always wins
    • 'lose' - the player always loses
    • 'draw' - the game is always a draw

  • With the help of the second parameter we are able to fill a pool of symbols an Event can use. The syntax is as follows:
  • [Freq. Scissors, Freq. Rock, Freq. Paper]
  • Further Examples:
    • [1,0,0] - the Event could only use Scissors
    • [1,1,0] - the Event has a 50% probability to either use Scissors or Rock
    • [0,2,1] - the Event has a 66% probability to use Rock and a 33% probability to use Paper
  • Every frequency can be upped until 10
Screenshots
Spoiler: Screenshot/Video

Terms of use

Free to use for commerical and non-commerical projects. If you do use this plugin in one of your projects please credit me (Ciddy).


Download
Ciddy_Roshambo.js
Hey i dont know but can you upload a new link? its gives me this error...
I get an error when I try to access the link. Is the plugin still available somewhere?
I get an error when I try to access the link. Is the plugin still available somewhere?
Doesn't look like it, and Ciddy hasn't been active in over a year.
Is the plugin still available somewhere?
Thanks!
Hi, thanks for your work, unfortunately it doesn't work in my game, I mean it uses a different resolution but I don't see the interface at all. I tried with Y spacing in a thousand forms but nothing
Hello!

I was searching for the RPG Maker MV plugin, but I don't know if this is the plug-in In question that I have to download.

Another thing I want to point out is that when I was trying to download it via the download link at the end of the thread, it said the site couldn't be reached.
Is there any alternative way to download the plug-in?

thank you
Is there any alternative way to download the plug-in?
it is available via the internet archive
Hello!

I was searching for the RPG Maker MV plugin, but I don't know if this is the plug-in In question that I have to download.

Another thing I want to point out is that when I was trying to download it via the download link at the end of the thread, it said the site couldn't be reached.
Is there any alternative way to download the plug-in?

thank you
it is available via the internet archive
It's literally three/four posts above yours. I shared the file.

Original thread: https://forums.rpgmakerweb.com/threads/rock-paper-scissors.125925/