じ☆ve冰风 发表于 2026-7-28 19:02:41

Dice MV

KURAGE_Dice - 2017/08/03

Creator name: Y.KURAGE

Introduction
Dice plugin with pictures and rolling animation.
img/pictures is where 6 dice images are used.

Note: Picture 1 is default for dice picture from plugin parameters. Pictures and sounds are included in project download.

Features
- Show the dice from plugin command "showDice"
- Then you roll the dice from plugin command "throwDice"
- Dice result will be based on the variable you set in plugin parameter.

Plugin commands:

                Code:       
showDice X Y DiceVar# #ofDice

Show the dice at coordinates specified by X Y.
Dice variable # is through 1 to 4.
 Ex: showDice 300 600 1 2

                Code:       
throwDice DiceVar#

Roll dice for specified dice group number.
If you ignore dice group number, dice roll goes to all dice groups.

                Code:       
removeDice DiceVar#

Removes dice from specified dice group number.
If you ignore dice group number, all dices of dice group are deleted.

Another note: removeDice also removes dice pictures

Preview

https://i.imgur.com/GHZHVMw.gif

https://i.imgur.com/cSgxFmg.png


For version with 2 dices, example event is included in project dropbox link.

Keep in mind that it may require a practice roll for two variables to be used.

Credit and Thanks: Y.KURAGE

Terms of Use- Free for commercial and non-commercial use.

License - MIT License: http://opensource.org/licenses/mit-license.php

Demo link:https://github.com/ovate/RMMV-Dice/archive/refs/heads/main.zip

Source:
https://github.com/kurageya0307/DiceMV

Dice images and sounds licensed under Public Domain. Free free to use them

Edit:
This can be evented without a plugin for more dynamic use. For example, here's a tutorial from shunroid and Extra. (uses static image)
https://forums.rpgmakerweb.com/index.php?threads/shunroid-dice-game-event.130167/#post-1139100


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