Version: 3.1
Introduction
This script/minigame allows you to have monster fights, and bet on the outcome of the battle. This script also generates the rates (winning rates) of each bet and also keeps track of them. The script also updates itself and changes battlers every
Screenshots







Demo
http://www.rmxp.org/forums/downloads.php?do=file&id=330
Instructions
Copy all of the Scripts and add them to your project
Note: This script is not Plug and Play. It is Plug, Setup, and Play
Level
Code:
#--------------------------------------------------------------------------
# * Enemy Id Battler Levels Syntax: Level(n)Battlers = enemy_ids
#--------------------------------------------------------------------------
Level0Battlers = 34,35,36,37,38
Level1Battlers = 39,40,41,42,43
Code:
Level2Battlers = 1,2,3,4,5
Elements
Code:
#--------------------------------------------------------------------------
# * Elements - Set this to the real elements in your game
#-------------------------------------------------------------------------
Elements = 1,2,3,4,5,6,7,8
Beginning Stats
Code:
#--------------------------------------------------------------------------
# * Beginning Stats - syntax enemy_id => [wins, losses, battles, begin_rate]
#--------------------------------------------------------------------------
Stats = {
}
Code:
Stats = {34 => [10, 20, 60, 2.5}
Stats Default
Code:
#--------------------------------------------------------------------------
# * Default Stats syntax [def wins, def losses, def battles, def begin_rate]
#--------------------------------------------------------------------------
Stats.default = [0,0,0,2.0]
the rest of this part of the setup is a do not touch section, and messing with it will affect the scripts execution. all it is doing though is collecting all battlers defined in the Level
Update Rate
Code:
#--------------------------------------------------------------------------
# * Rates Update Rate (In Seconds)
#--------------------------------------------------------------------------
Update_Rate = 60
Starting Setup
Code:
#--------------------------------------------------------------------------
# * Starting Setup syntax min level, max level, min enemy, max enemy, mixing
#--------------------------------------------------------------------------
Starting_Setup = 0,1,3,6,true
Draw Type
Code:
#--------------------------------------------------------------------------
# * Draw Enemy Battlers, 0: Stretch to Fit 1: Crop to Fit
#--------------------------------------------------------------------------
Draw_Type = 1
Cropping
Code:
#--------------------------------------------------------------------------
# * If Cropping the crop position of each battler
# 0 1 2
# 3 4 5
# 6 7 8
# syntax: enemy_id => crop_id
#--------------------------------------------------------------------------
Crop = {39 => 7, 42 => 4, 43 => 7}
Default Cropping
Code:
#--------------------------------------------------------------------------
# * Default Cropping (Top Center)
#--------------------------------------------------------------------------
Crop.default = 1
Not Enough Color
Code:
#--------------------------------------------------------------------------
# * Ticket Not Enough Money Color
#--------------------------------------------------------------------------
Not_Enough = Color.new(160,0,0)
Winning Ticket Color
Code:
#--------------------------------------------------------------------------
# * Winning Ticket Color
#--------------------------------------------------------------------------
Winning = Color.new(224, 192, 32)
Ticket Icon File
Code:
#--------------------------------------------------------------------------
# * Ticket Icon File
#--------------------------------------------------------------------------
Icon = '040-Item09'
Code:
#--------------------------------------------------------------------------
# * Fight Text
#--------------------------------------------------------------------------
Fight_Text = "[size] Monsters are ready to fight"
End Battle ME's
Code:
#--------------------------------------------------------------------------
# * End Battle ME's
#--------------------------------------------------------------------------
Heavy_Loss = RPG::AudioFile.new("016-Shock01")
Small_Loss = RPG::AudioFile.new("013-Gag02")
Small_Win = RPG::AudioFile.new("007-Fanfare01")
Medium_Win = RPG::AudioFile.new("008-Fanfare02")
Large_Win = RPG::AudioFile.new("009-Fanfare03")
In a call script event command use this code
Code:
$scene = Scene_Arena.new
Code:
$game_system.ticket_rate = amount
To modify the maximum bet use
Code:
$game_system.max_bet = amount
FAQ
Q) Why does the input window only go up by one?
A) If you have to ask this then you didn't speak to the NPC that explains the system, but press the buttons defined for R and L (Page Up and Page Down by default) to change the amount inputted
Compatibility
Will not recognize any battle addons as the scene is not Scene_Batle.
This script should work in combination with other scripts, not making any promises though.
SDK compliant
Requires Method and Class Library V1.5 or greater
Credits and Thanks
People who betatested, I forgot everyone's name who helped.
Author's Notes
Do not ask me to change the type of battle system used, thanks.