BROKE PROTOCOL

BROKE PROTOCOL

十分な評価がありません
Mystery Box Plugin
   
アワード
お気に入り
お気に入り
お気に入りから削除
ファイルサイズ
投稿日
更新日
13.312 KB
2021年5月1日 9時36分
2022年10月13日 9時08分
6 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
Mystery Box Plugin

解説
Mystery Box Plugin
-- This plugin was used for the Karts VS Bombers event --
The Mystery Box Plugin let you set up mystery boxes to pick-up a random item from them.
The last person in the car - according to the seat index - will pick up the item directly in the hands!
Default settings file requires the Packard Kart Weapons Pack.
The mystery box in the screenshots comes from the Mystery Box Art assets.

Set-up the plugin:
The map:

All you need is to place a trigger box with the Enter Event name set to MysteryBox
I highly recommend to use the Mystery Boxes Art assets for a full experience. You still free to design your own trigger assets if you know how to create them.

The configuration:

ATTENTION: The default settings file requires the Packard Kart Weapons Pack.

Once you got your server started for the first time with this plugin, a MysteryBoxes text file is created in your server (or game) root.
Here you put the items you can get in the boxes. DO NOT LET IT EMPTY!
Follow the format: Amount Item Chances
e.g.:
100 AmmoMG 10
You will get 100 AmmoMG with a chance of 10 out of the total chance.
The chances are calculated by the total chance you have. THIS IS NOT A PERCENTAGE

The plugin get the items dynamically, which means you do not need to restart your server to update the items. Just make the changes and save the file.

Commands
This plugin has only one command. This command is to calculate to chances of getting the items in the boxes.
There is two modes : simulation and calculating.

The simulation mode will simulate picking up 100 boxes to let you know their chance rate.
The calculating mode just calculate the chances of getting the items (item chance / total chance)

Command: /MysteryBox [simulate: true/false]
Description: Get the item chances rates.
Permission: mb.MysteryBox

NOTE: he default mode is the simulation mode. Type /MysteryBox false to use the calculating mode.