景品ホイールを回転させてランダムなアイテムを取得することのできるプラグイン – Galv_PrizeWheel.js

タイトル
Get random items by spinning a prize wheel
作者名
ヘルプ
Galv's Prize Wheel
----------------------------------------------------------------------------
This plugin adds a new animated scene where the player spins a wheel that
can land on a prize from a list that you create using script calls.
----------------------------------------------------------------------------

----------------------------------------------------------------------------
SCRIPT CALLS
----------------------------------------------------------------------------

Galv.PRIZE.addPrizes(s,s,s); Adds prizes to the prize pool for the
next time the prize wheel is run.
s can be one of the following:
'wx,z' weapon
'ax,z' armor
'ix,z' item
'cx,z' custom
x is the item id, z is the no. gained.
Examples:
'w12,1' - gain 1 of weapon 12
'a4,2' - gain 2 of armor 4
'i1,20' - gain 20 of item 1
Custom works slightly different with x
being icon id and z being a string. eg
'c1,Nothing'


Galv.PRIZE.start(); Starts the wheel spin using prizes
that were added previously.

Galv.PRIZE.give(); gives the player the prize that was
landed on. Must do this else the
player won't receive it!

Galv.PRIZE.setBack('picture'); use image from /img/pictures folder
for the background behind wheel

Galv.PRIZE.setFront('picture'); use image from /img/pictures folder
for the foreground in front of wheel

----------------------------------------------------------------------------
SCRIPT for CONDITIONAL BRANCH or CONTROL VARIABLES
----------------------------------------------------------------------------

Galv.PRIZE.result.isCustom returns true if custom prize
Galv.PRIZE.result.item returns the resulting item (object)
Galv.PRIZE.result.item.name returns the item name (string)
Galv.PRIZE.result.item.iconIndex returns the item's icon id (number)
Galv.PRIZE.result.item.id returns the item id (number)
Galv.PRIZE.result.amount returns the amount of item (number)

----------------------------------------------------------------------------
パラメータ
param Wheel Graphic
desc The wheel graphic used for prize wheel scene from /img/pictures/
default prizewheel
require 1
dir img/pictures/
type file

param Wheel Y
desc The distance from the top of the screen that the wheel appears at
default 30

param Notch Graphic
desc The notch graphic used for prize wheel scene from /img/pictures/
default prizewheel_notch
require 1
dir img/pictures/
type file

param Arrow Graphic
desc The arrow graphic used for prize wheel scene from /img/pictures/
default prizewheel_arrow
require 1
dir img/pictures/
type file

param Notch SE
desc Sound effect plays when arrow passes a notch
FileName,volume,pitch.
default Cursor1,80,150

param Confirm SE
desc Sound effect plays when player presses a button
FileName,volume,pitch.
default Decision2,80,100

param Disable Background Blur
desc true to disable the scene background blur. False to keep it enabled.
default true

ライセンス表記
Terms of Use
https://galvs-scripts.com/terms-of-use/

紹介ページ https://galvs-scripts.com/category/rmmv-plugins/mv-audiovisual-effects/#post-1970