じ☆ve冰风 发表于 2026-7-24 18:31:40

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',);


[*]The new line has two parameters: 'default' and

[*]NOTE: If the parameters 'default' and 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:
[*]
[*]Further Examples:

[*] - the Event could only use Scissors
[*] - the Event has a 50% probability to either use Scissors or Rock
[*] - 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
https://forums.rpgmakerweb.com/attachments/fq2cuuyiaf-gif.156922/

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


本贴来自国际rpgmaker官方论坛作者:Ciddy处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/rock-paper-scissors.125925/
页: [1]
查看完整版本: Rock, Paper, Scissors