rmxp_extractor 1.8 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +74 -74
- data/Gemfile +13 -13
- data/Gemfile.lock +40 -40
- data/LICENSE.txt +21 -21
- data/README.md +37 -35
- data/Rakefile +6 -6
- data/bin/rmxp_extractor +13 -13
- data/bin/setup +8 -8
- data/diff_check.rb +13 -13
- data/lib/rmxp_extractor/classnames.rb +227 -245
- data/lib/rmxp_extractor/data_export.rb +80 -82
- data/lib/rmxp_extractor/data_import.rb +74 -69
- data/lib/rmxp_extractor/ron.rb +144 -144
- data/lib/rmxp_extractor/script_handler.rb +85 -85
- data/lib/rmxp_extractor/version.rb +3 -3
- data/lib/rmxp_extractor.rb +46 -46
- data/rmxp_extractor.gemspec +30 -30
- data/spec/spec_helper.rb +100 -100
- metadata +2 -393
- data/Data/Actors.rxdata +0 -0
- data/Data/Animations.rxdata +0 -0
- data/Data/Armors.rxdata +0 -0
- data/Data/Classes.rxdata +0 -0
- data/Data/CommonEvents.rxdata +0 -0
- data/Data/Enemies.rxdata +0 -0
- data/Data/Items.rxdata +0 -0
- data/Data/Map001.rxdata +0 -0
- data/Data/Map002.rxdata +0 -0
- data/Data/Map003.rxdata +0 -0
- data/Data/Map004.rxdata +0 -0
- data/Data/Map005.rxdata +0 -0
- data/Data/Map006.rxdata +0 -0
- data/Data/Map007.rxdata +0 -0
- data/Data/Map008.rxdata +0 -0
- data/Data/Map009.rxdata +0 -0
- data/Data/Map010.rxdata +0 -0
- data/Data/Map011.rxdata +0 -0
- data/Data/Map012.rxdata +0 -0
- data/Data/Map013.rxdata +0 -0
- data/Data/Map014.rxdata +0 -0
- data/Data/Map015.rxdata +0 -0
- data/Data/Map016.rxdata +0 -0
- data/Data/Map017.rxdata +0 -0
- data/Data/Map018.rxdata +0 -0
- data/Data/Map019.rxdata +0 -0
- data/Data/Map020.rxdata +0 -0
- data/Data/Map021.rxdata +0 -0
- data/Data/Map022.rxdata +0 -0
- data/Data/Map023.rxdata +0 -0
- data/Data/Map024.rxdata +0 -0
- data/Data/Map025.rxdata +0 -0
- data/Data/Map026.rxdata +0 -0
- data/Data/Map027.rxdata +0 -0
- data/Data/Map028.rxdata +0 -0
- data/Data/Map029.rxdata +0 -0
- data/Data/Map030.rxdata +0 -0
- data/Data/Map031.rxdata +0 -0
- data/Data/Map032.rxdata +0 -0
- data/Data/Map033.rxdata +0 -0
- data/Data/Map034.rxdata +0 -0
- data/Data/Map035.rxdata +0 -0
- data/Data/Map036.rxdata +0 -0
- data/Data/Map037.rxdata +0 -0
- data/Data/Map038.rxdata +0 -0
- data/Data/Map039.rxdata +0 -0
- data/Data/Map040.rxdata +0 -0
- data/Data/Map041.rxdata +0 -0
- data/Data/Map042.rxdata +0 -0
- data/Data/Map043.rxdata +0 -0
- data/Data/Map044.rxdata +0 -0
- data/Data/Map045.rxdata +0 -0
- data/Data/Map046.rxdata +0 -0
- data/Data/Map047.rxdata +0 -0
- data/Data/Map048.rxdata +0 -0
- data/Data/Map049.rxdata +0 -0
- data/Data/Map050.rxdata +0 -0
- data/Data/Map051.rxdata +0 -0
- data/Data/Map052.rxdata +0 -0
- data/Data/Map053.rxdata +0 -0
- data/Data/Map054.rxdata +0 -0
- data/Data/Map055.rxdata +0 -0
- data/Data/Map056.rxdata +0 -0
- data/Data/Map057.rxdata +0 -0
- data/Data/Map058.rxdata +0 -0
- data/Data/Map059.rxdata +0 -0
- data/Data/Map060.rxdata +0 -0
- data/Data/Map061.rxdata +0 -0
- data/Data/Map062.rxdata +0 -0
- data/Data/Map063.rxdata +0 -0
- data/Data/Map064.rxdata +0 -0
- data/Data/Map065.rxdata +0 -0
- data/Data/Map066.rxdata +0 -0
- data/Data/Map067.rxdata +0 -0
- data/Data/Map068.rxdata +0 -0
- data/Data/Map069.rxdata +0 -0
- data/Data/Map070.rxdata +0 -0
- data/Data/Map071.rxdata +0 -0
- data/Data/Map072.rxdata +0 -0
- data/Data/Map073.rxdata +0 -0
- data/Data/Map074.rxdata +0 -0
- data/Data/Map075.rxdata +0 -0
- data/Data/Map076.rxdata +0 -0
- data/Data/Map077.rxdata +0 -0
- data/Data/Map078.rxdata +0 -0
- data/Data/Map079.rxdata +0 -0
- data/Data/Map080.rxdata +0 -0
- data/Data/Map081.rxdata +0 -0
- data/Data/Map082.rxdata +0 -0
- data/Data/Map083.rxdata +0 -0
- data/Data/Map084.rxdata +0 -0
- data/Data/Map085.rxdata +0 -0
- data/Data/Map086.rxdata +0 -0
- data/Data/Map087.rxdata +0 -0
- data/Data/Map088.rxdata +0 -0
- data/Data/Map089.rxdata +0 -0
- data/Data/Map090.rxdata +0 -0
- data/Data/Map091.rxdata +0 -0
- data/Data/Map092.rxdata +0 -0
- data/Data/Map093.rxdata +0 -0
- data/Data/Map094.rxdata +0 -0
- data/Data/Map095.rxdata +0 -0
- data/Data/Map096.rxdata +0 -0
- data/Data/Map097.rxdata +0 -0
- data/Data/Map098.rxdata +0 -0
- data/Data/Map099.rxdata +0 -0
- data/Data/Map100.rxdata +0 -0
- data/Data/Map101.rxdata +0 -0
- data/Data/Map102.rxdata +0 -0
- data/Data/Map103.rxdata +0 -0
- data/Data/Map104.rxdata +0 -0
- data/Data/Map105.rxdata +0 -0
- data/Data/Map106.rxdata +0 -0
- data/Data/Map107.rxdata +0 -0
- data/Data/Map108.rxdata +0 -0
- data/Data/Map109.rxdata +0 -0
- data/Data/Map110.rxdata +0 -0
- data/Data/Map111.rxdata +0 -0
- data/Data/Map112.rxdata +0 -0
- data/Data/Map113.rxdata +0 -0
- data/Data/Map114.rxdata +0 -0
- data/Data/Map115.rxdata +0 -0
- data/Data/Map116.rxdata +0 -0
- data/Data/Map117.rxdata +0 -0
- data/Data/Map118.rxdata +0 -0
- data/Data/Map119.rxdata +0 -0
- data/Data/Map120.rxdata +0 -0
- data/Data/Map121.rxdata +0 -0
- data/Data/Map122.rxdata +0 -0
- data/Data/Map123.rxdata +0 -0
- data/Data/Map124.rxdata +0 -0
- data/Data/Map125.rxdata +0 -0
- data/Data/Map126.rxdata +0 -0
- data/Data/Map127.rxdata +0 -0
- data/Data/Map128.rxdata +0 -0
- data/Data/Map129.rxdata +0 -0
- data/Data/Map130.rxdata +0 -0
- data/Data/Map131.rxdata +0 -0
- data/Data/Map132.rxdata +0 -0
- data/Data/Map133.rxdata +0 -0
- data/Data/Map134.rxdata +0 -0
- data/Data/Map135.rxdata +0 -0
- data/Data/Map136.rxdata +0 -0
- data/Data/Map137.rxdata +0 -0
- data/Data/Map138.rxdata +0 -0
- data/Data/Map139.rxdata +0 -0
- data/Data/Map140.rxdata +0 -0
- data/Data/Map141.rxdata +0 -0
- data/Data/Map142.rxdata +0 -0
- data/Data/Map143.rxdata +0 -0
- data/Data/Map144.rxdata +0 -0
- data/Data/Map145.rxdata +0 -0
- data/Data/Map146.rxdata +0 -0
- data/Data/Map147.rxdata +0 -0
- data/Data/Map148.rxdata +0 -0
- data/Data/Map149.rxdata +0 -0
- data/Data/Map150.rxdata +0 -0
- data/Data/Map151.rxdata +0 -0
- data/Data/Map152.rxdata +0 -0
- data/Data/Map153.rxdata +0 -0
- data/Data/Map154.rxdata +0 -0
- data/Data/Map155.rxdata +0 -0
- data/Data/Map156.rxdata +0 -0
- data/Data/Map157.rxdata +0 -0
- data/Data/Map158.rxdata +0 -0
- data/Data/Map159.rxdata +0 -0
- data/Data/Map160.rxdata +0 -0
- data/Data/Map161.rxdata +0 -0
- data/Data/Map162.rxdata +0 -0
- data/Data/Map163.rxdata +0 -0
- data/Data/Map164.rxdata +0 -0
- data/Data/Map165.rxdata +0 -0
- data/Data/Map166.rxdata +0 -0
- data/Data/Map167.rxdata +0 -0
- data/Data/Map168.rxdata +0 -0
- data/Data/Map169.rxdata +0 -0
- data/Data/Map170.rxdata +0 -0
- data/Data/Map171.rxdata +0 -0
- data/Data/Map172.rxdata +0 -0
- data/Data/Map173.rxdata +0 -0
- data/Data/Map174.rxdata +0 -0
- data/Data/Map175.rxdata +0 -0
- data/Data/Map176.rxdata +0 -0
- data/Data/Map177.rxdata +0 -0
- data/Data/Map178.rxdata +0 -0
- data/Data/Map179.rxdata +0 -0
- data/Data/Map180.rxdata +0 -0
- data/Data/Map181.rxdata +0 -0
- data/Data/Map182.rxdata +0 -0
- data/Data/Map183.rxdata +0 -0
- data/Data/Map184.rxdata +0 -0
- data/Data/Map185.rxdata +0 -0
- data/Data/Map186.rxdata +0 -0
- data/Data/Map187.rxdata +0 -0
- data/Data/Map188.rxdata +0 -0
- data/Data/Map189.rxdata +0 -0
- data/Data/Map190.rxdata +0 -0
- data/Data/Map191.rxdata +0 -0
- data/Data/Map192.rxdata +0 -0
- data/Data/Map193.rxdata +0 -0
- data/Data/Map194.rxdata +0 -0
- data/Data/Map195.rxdata +0 -0
- data/Data/Map196.rxdata +0 -0
- data/Data/Map197.rxdata +0 -0
- data/Data/Map198.rxdata +0 -0
- data/Data/Map199.rxdata +0 -0
- data/Data/Map200.rxdata +0 -0
- data/Data/Map201.rxdata +0 -0
- data/Data/Map202.rxdata +0 -0
- data/Data/Map203.rxdata +0 -0
- data/Data/Map204.rxdata +0 -0
- data/Data/Map205.rxdata +0 -0
- data/Data/Map206.rxdata +0 -0
- data/Data/Map207.rxdata +0 -0
- data/Data/Map208.rxdata +0 -0
- data/Data/Map209.rxdata +0 -0
- data/Data/Map210.rxdata +0 -0
- data/Data/Map211.rxdata +0 -0
- data/Data/Map212.rxdata +0 -0
- data/Data/Map213.rxdata +0 -0
- data/Data/Map214.rxdata +0 -0
- data/Data/Map215.rxdata +0 -0
- data/Data/Map216.rxdata +0 -0
- data/Data/Map217.rxdata +0 -0
- data/Data/Map218.rxdata +0 -0
- data/Data/Map219.rxdata +0 -0
- data/Data/Map220.rxdata +0 -0
- data/Data/Map221.rxdata +0 -0
- data/Data/Map222.rxdata +0 -0
- data/Data/Map223.rxdata +0 -0
- data/Data/Map224.rxdata +0 -0
- data/Data/Map225.rxdata +0 -0
- data/Data/Map226.rxdata +0 -0
- data/Data/Map227.rxdata +0 -0
- data/Data/Map228.rxdata +0 -0
- data/Data/Map229.rxdata +0 -0
- data/Data/Map230.rxdata +0 -0
- data/Data/Map231.rxdata +0 -0
- data/Data/Map232.rxdata +0 -0
- data/Data/Map233.rxdata +0 -0
- data/Data/Map234.rxdata +0 -0
- data/Data/Map235.rxdata +0 -0
- data/Data/Map236.rxdata +0 -0
- data/Data/Map237.rxdata +0 -0
- data/Data/Map238.rxdata +0 -0
- data/Data/Map239.rxdata +0 -0
- data/Data/Map240.rxdata +0 -0
- data/Data/Map241.rxdata +0 -0
- data/Data/Map242.rxdata +0 -0
- data/Data/Map243.rxdata +0 -0
- data/Data/Map244.rxdata +0 -0
- data/Data/Map245.rxdata +0 -0
- data/Data/Map246.rxdata +0 -0
- data/Data/Map247.rxdata +0 -0
- data/Data/Map248.rxdata +0 -0
- data/Data/Map249.rxdata +0 -0
- data/Data/Map250.rxdata +0 -0
- data/Data/Map251.rxdata +0 -0
- data/Data/Map252.rxdata +0 -0
- data/Data/Map253.rxdata +0 -0
- data/Data/Map254.rxdata +0 -0
- data/Data/Map255.rxdata +0 -0
- data/Data/Map256.rxdata +0 -0
- data/Data/Map257.rxdata +0 -0
- data/Data/Map258.rxdata +0 -0
- data/Data/Map259.rxdata +0 -0
- data/Data/Map260.rxdata +0 -0
- data/Data/Map261.rxdata +0 -0
- data/Data/Map262.rxdata +0 -0
- data/Data/Map263.rxdata +0 -0
- data/Data/MapInfos.rxdata +0 -0
- data/Data/Scripts.rxdata +0 -0
- data/Data/Skills.rxdata +0 -0
- data/Data/States.rxdata +0 -0
- data/Data/System.rxdata +0 -0
- data/Data/Tilesets.rxdata +0 -0
- data/Data/Troops.rxdata +0 -0
- data/Data/Weapons.rxdata +0 -0
- data/Data/xScripts.rxdata +0 -0
- data/Scripts/Credits_Message.rb +0 -259
- data/Scripts/Data_FastTravel.rb +0 -50
- data/Scripts/Data_Footsteps.rb +0 -77
- data/Scripts/Data_Item.rb +0 -50
- data/Scripts/Data_SpecialEventData.rb +0 -60
- data/Scripts/Demo.rb +0 -7
- data/Scripts/Desktop_Message.rb +0 -210
- data/Scripts/Doc_Message.rb +0 -273
- data/Scripts/EdText.rb +0 -50
- data/Scripts/Ed_Message.rb +0 -234
- data/Scripts/FastTravel.rb +0 -175
- data/Scripts/Game_Actor.rb +0 -156
- data/Scripts/Game_Actors.rb +0 -28
- data/Scripts/Game_BattleAction.rb +0 -145
- data/Scripts/Game_Battler 1.rb +0 -307
- data/Scripts/Game_Battler 2.rb +0 -294
- data/Scripts/Game_Battler 3.rb +0 -354
- data/Scripts/Game_Character 1.rb +0 -291
- data/Scripts/Game_Character 2.rb +0 -355
- data/Scripts/Game_Character 3.rb +0 -505
- data/Scripts/Game_CommonEvent.rb +0 -70
- data/Scripts/Game_Enemy.rb +0 -317
- data/Scripts/Game_Event.rb +0 -264
- data/Scripts/Game_FastTravel.rb +0 -40
- data/Scripts/Game_Follower.rb +0 -76
- data/Scripts/Game_Light.rb +0 -13
- data/Scripts/Game_Map.rb +0 -551
- data/Scripts/Game_Oneshot.rb +0 -83
- data/Scripts/Game_Party.rb +0 -380
- data/Scripts/Game_Picture.rb +0 -164
- data/Scripts/Game_Player.rb +0 -298
- data/Scripts/Game_Screen.rb +0 -148
- data/Scripts/Game_SelfSwitches.rb +0 -30
- data/Scripts/Game_Switches.rb +0 -45
- data/Scripts/Game_System.rb +0 -210
- data/Scripts/Game_Temp.rb +0 -145
- data/Scripts/Game_Variables.rb +0 -36
- data/Scripts/Interpreter 1.rb +0 -320
- data/Scripts/Interpreter 2.rb +0 -286
- data/Scripts/Interpreter 3.rb +0 -474
- data/Scripts/Interpreter 4.rb +0 -327
- data/Scripts/Interpreter 5.rb +0 -448
- data/Scripts/Interpreter 6.rb +0 -307
- data/Scripts/Interpreter 7.rb +0 -282
- data/Scripts/Main.rb +0 -50
- data/Scripts/Particles.rb +0 -141
- data/Scripts/Persistent.rb +0 -71
- data/Scripts/Puzzle_Film.rb +0 -14
- data/Scripts/Puzzle_Pixel.rb +0 -210
- data/Scripts/Puzzle_Safe.rb +0 -152
- data/Scripts/Puzzle_Sokoban.rb +0 -14
- data/Scripts/RPG.rb +0 -55
- data/Scripts/SaveLoad.rb +0 -275
- data/Scripts/Scene_Debug.rb +0 -190
- data/Scripts/Scene_End.rb +0 -108
- data/Scripts/Scene_Equip.rb +0 -222
- data/Scripts/Scene_File.rb +0 -111
- data/Scripts/Scene_Item.rb +0 -205
- data/Scripts/Scene_Load.rb +0 -106
- data/Scripts/Scene_Map.rb +0 -540
- data/Scripts/Scene_Menu.rb +0 -213
- data/Scripts/Scene_Name.rb +0 -113
- data/Scripts/Scene_Save.rb +0 -88
- data/Scripts/Scene_Skill.rb +0 -232
- data/Scripts/Scene_Status.rb +0 -78
- data/Scripts/Scene_Title.rb +0 -237
- data/Scripts/Script.rb +0 -780
- data/Scripts/Sprite_Battler.rb +0 -131
- data/Scripts/Sprite_Character.rb +0 -192
- data/Scripts/Sprite_Footprint.rb +0 -35
- data/Scripts/Sprite_Footsplash.rb +0 -54
- data/Scripts/Sprite_Light.rb +0 -18
- data/Scripts/Sprite_MapText.rb +0 -63
- data/Scripts/Sprite_Picture.rb +0 -72
- data/Scripts/Sprite_Timer.rb +0 -52
- data/Scripts/Spriteset_Map.rb +0 -370
- data/Scripts/Window_Base.rb +0 -327
- data/Scripts/Window_BattleResult.rb +0 -51
- data/Scripts/Window_BattleStatus.rb +0 -62
- data/Scripts/Window_Command.rb +0 -49
- data/Scripts/Window_DebugLeft.rb +0 -57
- data/Scripts/Window_DebugRight.rb +0 -69
- data/Scripts/Window_EquipItem.rb +0 -94
- data/Scripts/Window_EquipLeft.rb +0 -61
- data/Scripts/Window_EquipRight.rb +0 -56
- data/Scripts/Window_Gold.rb +0 -27
- data/Scripts/Window_Help.rb +0 -33
- data/Scripts/Window_InputNumber.rb +0 -111
- data/Scripts/Window_Item.rb +0 -229
- data/Scripts/Window_MainMenu.rb +0 -150
- data/Scripts/Window_MenuStatus.rb +0 -48
- data/Scripts/Window_Message.rb +0 -459
- data/Scripts/Window_NameEdit.rb +0 -108
- data/Scripts/Window_NameInput.rb +0 -262
- data/Scripts/Window_PartyCommand.rb +0 -42
- data/Scripts/Window_PlayTime.rb +0 -40
- data/Scripts/Window_SaveFile.rb +0 -91
- data/Scripts/Window_Selectable.rb +0 -203
- data/Scripts/Window_Settings.rb +0 -469
- data/Scripts/Window_ShopBuy.rb +0 -93
- data/Scripts/Window_ShopCommand.rb +0 -37
- data/Scripts/Window_ShopNumber.rb +0 -87
- data/Scripts/Window_ShopSell.rb +0 -94
- data/Scripts/Window_ShopStatus.rb +0 -107
- data/Scripts/Window_Skill.rb +0 -83
- data/Scripts/Window_SkillStatus.rb +0 -28
- data/Scripts/Window_Status.rb +0 -64
- data/Scripts/Window_Steps.rb +0 -26
- data/Scripts/Window_Target.rb +0 -49
- data/Scripts/_scripts.txt +0 -111
- data/Scripts/i18n_English.rb +0 -59
- data/Scripts/i18n_Language.rb +0 -130
data/Scripts/Game_System.rb
DELETED
@@ -1,210 +0,0 @@
|
|
1
|
-
#==============================================================================
|
2
|
-
# ** Game_System
|
3
|
-
#------------------------------------------------------------------------------
|
4
|
-
# This class handles data surrounding the system. Backround music, etc.
|
5
|
-
# is managed here as well. Refer to "$game_system" for the instance of
|
6
|
-
# this class.
|
7
|
-
#==============================================================================
|
8
|
-
|
9
|
-
class Game_System
|
10
|
-
#--------------------------------------------------------------------------
|
11
|
-
# * Public Instance Variables
|
12
|
-
#--------------------------------------------------------------------------
|
13
|
-
attr_reader :map_interpreter # map event interpreter
|
14
|
-
attr_accessor :timer # timer
|
15
|
-
attr_accessor :timer_working # timer working flag
|
16
|
-
attr_accessor :save_disabled # save forbidden
|
17
|
-
attr_accessor :menu_disabled # menu forbidden
|
18
|
-
attr_accessor :encounter_disabled # encounter forbidden
|
19
|
-
attr_accessor :message_position # text option: positioning
|
20
|
-
attr_accessor :message_frame # text option: window frame
|
21
|
-
attr_accessor :save_count # save count
|
22
|
-
attr_accessor :magic_number # magic number
|
23
|
-
attr_accessor :playing_bgm
|
24
|
-
#--------------------------------------------------------------------------
|
25
|
-
# * Object Initialization
|
26
|
-
#--------------------------------------------------------------------------
|
27
|
-
def initialize
|
28
|
-
@map_interpreter = Interpreter.new(0, true)
|
29
|
-
@timer = 0
|
30
|
-
@timer_working = false
|
31
|
-
@save_disabled = false
|
32
|
-
@menu_disabled = false
|
33
|
-
@encounter_disabled = false
|
34
|
-
@message_position = 2
|
35
|
-
@message_frame = 0
|
36
|
-
@save_count = 0
|
37
|
-
@magic_number = 0
|
38
|
-
end
|
39
|
-
#--------------------------------------------------------------------------
|
40
|
-
# * Play Background Music
|
41
|
-
# bgm : background music to be played
|
42
|
-
#--------------------------------------------------------------------------
|
43
|
-
def bgm_play(bgm)
|
44
|
-
@playing_bgm = bgm
|
45
|
-
if bgm != nil and bgm.name != ""
|
46
|
-
Audio.bgm_play("Audio/BGM/" + bgm.name, bgm.volume * 0.8, bgm.pitch)
|
47
|
-
else
|
48
|
-
Audio.bgm_stop
|
49
|
-
end
|
50
|
-
Graphics.frame_reset
|
51
|
-
end
|
52
|
-
#--------------------------------------------------------------------------
|
53
|
-
# * Stop Background Music
|
54
|
-
#--------------------------------------------------------------------------
|
55
|
-
def bgm_stop
|
56
|
-
Audio.bgm_stop
|
57
|
-
end
|
58
|
-
#--------------------------------------------------------------------------
|
59
|
-
# * Fade Out Background Music
|
60
|
-
# time : fade-out time (in seconds)
|
61
|
-
#--------------------------------------------------------------------------
|
62
|
-
def bgm_fade(time)
|
63
|
-
@playing_bgm = nil
|
64
|
-
Audio.bgm_fade(time * 1000)
|
65
|
-
end
|
66
|
-
#--------------------------------------------------------------------------
|
67
|
-
# * Background Music Memory
|
68
|
-
#--------------------------------------------------------------------------
|
69
|
-
def bgm_memorize
|
70
|
-
@memorized_bgm = @playing_bgm
|
71
|
-
end
|
72
|
-
#--------------------------------------------------------------------------
|
73
|
-
# * Restore Background Music
|
74
|
-
#--------------------------------------------------------------------------
|
75
|
-
def bgm_restore
|
76
|
-
bgm_play(@memorized_bgm)
|
77
|
-
end
|
78
|
-
#--------------------------------------------------------------------------
|
79
|
-
# * Play Background Sound
|
80
|
-
# bgs : background sound to be played
|
81
|
-
#--------------------------------------------------------------------------
|
82
|
-
def bgs_play(bgs)
|
83
|
-
@playing_bgs = bgs
|
84
|
-
if bgs != nil and bgs.name != ""
|
85
|
-
Audio.bgs_play("Audio/BGS/" + bgs.name, bgs.volume, bgs.pitch)
|
86
|
-
else
|
87
|
-
Audio.bgs_stop
|
88
|
-
end
|
89
|
-
Graphics.frame_reset
|
90
|
-
end
|
91
|
-
#--------------------------------------------------------------------------
|
92
|
-
# * Fade Out Background Sound
|
93
|
-
# time : fade-out time (in seconds)
|
94
|
-
#--------------------------------------------------------------------------
|
95
|
-
def bgs_fade(time)
|
96
|
-
@playing_bgs = nil
|
97
|
-
Audio.bgs_fade(time * 1000)
|
98
|
-
end
|
99
|
-
#--------------------------------------------------------------------------
|
100
|
-
# * Background Sound Memory
|
101
|
-
#--------------------------------------------------------------------------
|
102
|
-
def bgs_memorize
|
103
|
-
@memorized_bgs = @playing_bgs
|
104
|
-
end
|
105
|
-
#--------------------------------------------------------------------------
|
106
|
-
# * Restore Background Sound
|
107
|
-
#--------------------------------------------------------------------------
|
108
|
-
def bgs_restore
|
109
|
-
bgs_play(@memorized_bgs)
|
110
|
-
end
|
111
|
-
#--------------------------------------------------------------------------
|
112
|
-
# * Play Music Effect
|
113
|
-
# me : music effect to be played
|
114
|
-
#--------------------------------------------------------------------------
|
115
|
-
def me_play(me)
|
116
|
-
if me != nil and me.name != ""
|
117
|
-
Audio.me_play("Audio/ME/" + me.name, me.volume, me.pitch)
|
118
|
-
else
|
119
|
-
Audio.me_stop
|
120
|
-
end
|
121
|
-
Graphics.frame_reset
|
122
|
-
end
|
123
|
-
#--------------------------------------------------------------------------
|
124
|
-
# * Play Sound Effect
|
125
|
-
# se : sound effect to be played
|
126
|
-
#--------------------------------------------------------------------------
|
127
|
-
def se_play(se)
|
128
|
-
if se != nil and se.name != ""
|
129
|
-
Audio.se_play("Audio/SE/" + se.name, se.volume, se.pitch)
|
130
|
-
end
|
131
|
-
end
|
132
|
-
#--------------------------------------------------------------------------
|
133
|
-
# * Stop Sound Effect
|
134
|
-
#--------------------------------------------------------------------------
|
135
|
-
def se_stop
|
136
|
-
Audio.se_stop
|
137
|
-
end
|
138
|
-
#--------------------------------------------------------------------------
|
139
|
-
# * Get Playing Background Music
|
140
|
-
#--------------------------------------------------------------------------
|
141
|
-
def playing_bgm
|
142
|
-
return @playing_bgm
|
143
|
-
end
|
144
|
-
#--------------------------------------------------------------------------
|
145
|
-
# * Get Playing Background Sound
|
146
|
-
#--------------------------------------------------------------------------
|
147
|
-
def playing_bgs
|
148
|
-
return @playing_bgs
|
149
|
-
end
|
150
|
-
#--------------------------------------------------------------------------
|
151
|
-
# * Get Windowskin File Name
|
152
|
-
#--------------------------------------------------------------------------
|
153
|
-
def windowskin_name
|
154
|
-
if @windowskin_name == nil
|
155
|
-
return $data_system.windowskin_name
|
156
|
-
else
|
157
|
-
return @windowskin_name
|
158
|
-
end
|
159
|
-
end
|
160
|
-
#--------------------------------------------------------------------------
|
161
|
-
# * Set Windowskin File Name
|
162
|
-
# windowskin_name : new windowskin file name
|
163
|
-
#--------------------------------------------------------------------------
|
164
|
-
def windowskin_name=(windowskin_name)
|
165
|
-
@windowskin_name = windowskin_name
|
166
|
-
end
|
167
|
-
#--------------------------------------------------------------------------
|
168
|
-
# * Get Battle Background Music
|
169
|
-
#--------------------------------------------------------------------------
|
170
|
-
def battle_bgm
|
171
|
-
if @battle_bgm == nil
|
172
|
-
return $data_system.battle_bgm
|
173
|
-
else
|
174
|
-
return @battle_bgm
|
175
|
-
end
|
176
|
-
end
|
177
|
-
#--------------------------------------------------------------------------
|
178
|
-
# * Set Battle Background Music
|
179
|
-
# battle_bgm : new battle background music
|
180
|
-
#--------------------------------------------------------------------------
|
181
|
-
def battle_bgm=(battle_bgm)
|
182
|
-
@battle_bgm = battle_bgm
|
183
|
-
end
|
184
|
-
#--------------------------------------------------------------------------
|
185
|
-
# * Get Background Music for Battle Ending
|
186
|
-
#--------------------------------------------------------------------------
|
187
|
-
def battle_end_me
|
188
|
-
if @battle_end_me == nil
|
189
|
-
return $data_system.battle_end_me
|
190
|
-
else
|
191
|
-
return @battle_end_me
|
192
|
-
end
|
193
|
-
end
|
194
|
-
#--------------------------------------------------------------------------
|
195
|
-
# * Set Background Music for Battle Ending
|
196
|
-
# battle_end_me : new battle ending background music
|
197
|
-
#--------------------------------------------------------------------------
|
198
|
-
def battle_end_me=(battle_end_me)
|
199
|
-
@battle_end_me = battle_end_me
|
200
|
-
end
|
201
|
-
#--------------------------------------------------------------------------
|
202
|
-
# * Frame Update
|
203
|
-
#--------------------------------------------------------------------------
|
204
|
-
def update
|
205
|
-
# reduce timer by 1
|
206
|
-
if @timer_working and @timer > 0
|
207
|
-
@timer -= 1
|
208
|
-
end
|
209
|
-
end
|
210
|
-
end
|
data/Scripts/Game_Temp.rb
DELETED
@@ -1,145 +0,0 @@
|
|
1
|
-
#==============================================================================
|
2
|
-
# ** Game_Temp
|
3
|
-
#------------------------------------------------------------------------------
|
4
|
-
# This class handles temporary data that is not included with save data.
|
5
|
-
# Refer to "$game_temp" for the instance of this class.
|
6
|
-
#==============================================================================
|
7
|
-
|
8
|
-
class Game_Temp
|
9
|
-
#--------------------------------------------------------------------------
|
10
|
-
# * Public Instance Variables
|
11
|
-
#--------------------------------------------------------------------------
|
12
|
-
attr_accessor :target_bgm_vol_level # volume we want to reach when fading in music
|
13
|
-
attr_accessor :bgm_fadein_speed # speed at which we will reach target bgm vol_level
|
14
|
-
attr_accessor :bgm_fadein_timer # used so we aren't changing the volume every frame
|
15
|
-
attr_accessor :map_bgm # map music (for battle memory)
|
16
|
-
attr_accessor :message_text # message text
|
17
|
-
attr_accessor :message_face # face graphic
|
18
|
-
attr_accessor :message_proc # message callback (Proc)
|
19
|
-
attr_accessor :message_ed_text # Ed message text
|
20
|
-
attr_accessor :message_doc_text # Text message text
|
21
|
-
attr_accessor :message_desktop_text # Desktop message text
|
22
|
-
attr_accessor :message_credits_text # Desktop message text
|
23
|
-
attr_accessor :choices # show choices: text
|
24
|
-
attr_accessor :choice_cancel_type # show choices: cancel
|
25
|
-
attr_accessor :choice_proc # show choices: callback (Proc)
|
26
|
-
attr_accessor :num_input_variable_id # input number: variable ID
|
27
|
-
attr_accessor :num_input_digits_max # input number: digit amount
|
28
|
-
attr_accessor :message_window_showing # message window showing
|
29
|
-
attr_accessor :common_event_id # common event ID
|
30
|
-
attr_accessor :in_battle # in-battle flag
|
31
|
-
attr_accessor :battle_calling # battle calling flag
|
32
|
-
attr_accessor :battle_troop_id # battle troop ID
|
33
|
-
attr_accessor :battle_can_escape # battle flag: escape possible
|
34
|
-
attr_accessor :battle_can_lose # battle flag: losing possible
|
35
|
-
attr_accessor :battle_proc # battle callback (Proc)
|
36
|
-
attr_accessor :battle_turn # number of battle turns
|
37
|
-
attr_accessor :battle_event_flags # battle event flags: completed
|
38
|
-
attr_accessor :battle_abort # battle flag: interrupt
|
39
|
-
attr_accessor :battle_main_phase # battle flag: main phase
|
40
|
-
attr_accessor :battleback_name # battleback file name
|
41
|
-
attr_accessor :forcing_battler # battler being forced into action
|
42
|
-
attr_accessor :shop_calling # shop calling flag
|
43
|
-
attr_accessor :shop_goods # list of shop goods
|
44
|
-
attr_accessor :name_calling # name input: calling flag
|
45
|
-
attr_accessor :menu_calling # menu calling flag
|
46
|
-
attr_accessor :item_menu_calling # item menu calling flag
|
47
|
-
attr_accessor :travel_menu_calling # fast travel menu calling flag
|
48
|
-
attr_accessor :window_settings_calling # fast travel menu calling flag
|
49
|
-
attr_accessor :menu_beep # menu: play sound effect flag
|
50
|
-
attr_accessor :save_calling # save calling flag
|
51
|
-
attr_accessor :debug_calling # debug calling flag
|
52
|
-
attr_accessor :player_transferring # player place movement flag
|
53
|
-
attr_accessor :player_new_map_id # player destination: map ID
|
54
|
-
attr_accessor :player_new_x # player destination: x-coordinate
|
55
|
-
attr_accessor :player_new_y # player destination: y-coordinate
|
56
|
-
attr_accessor :player_new_direction # player destination: direction
|
57
|
-
attr_accessor :transition_processing # transition processing flag
|
58
|
-
attr_accessor :transition_name # transition file name
|
59
|
-
attr_accessor :gameover # game over flag
|
60
|
-
attr_accessor :to_title # return to title screen flag
|
61
|
-
attr_accessor :last_file_index # last save file no.
|
62
|
-
attr_accessor :debug_top_row # debug screen: for saving conditions
|
63
|
-
attr_accessor :debug_index # debug screen: for saving conditions
|
64
|
-
attr_accessor :footstep_sfx # current footstep sfx array
|
65
|
-
attr_accessor :filmsprite # film puzzle sprite
|
66
|
-
attr_accessor :prompt_wait # wait for delay caused by prompt
|
67
|
-
attr_accessor :menus_visible
|
68
|
-
attr_accessor :countdown_password
|
69
|
-
#--------------------------------------------------------------------------
|
70
|
-
# * Object Initialization
|
71
|
-
#--------------------------------------------------------------------------
|
72
|
-
def initialize
|
73
|
-
@target_bgm_vol_level = -1
|
74
|
-
@bgm_fadein_speed = 0
|
75
|
-
@bgm_fadein_timer = 0
|
76
|
-
@map_bgm = nil
|
77
|
-
@message_text = nil
|
78
|
-
@message_face = nil
|
79
|
-
@message_proc = nil
|
80
|
-
@choices = nil
|
81
|
-
@choice_cancel_type = 0
|
82
|
-
@choice_proc = nil
|
83
|
-
@num_input_variable_id = 0
|
84
|
-
@num_input_digits_max = 0
|
85
|
-
@message_window_showing = false
|
86
|
-
@common_event_id = 0
|
87
|
-
@in_battle = false
|
88
|
-
@battle_calling = false
|
89
|
-
@battle_troop_id = 0
|
90
|
-
@battle_can_escape = false
|
91
|
-
@battle_can_lose = false
|
92
|
-
@battle_proc = nil
|
93
|
-
@battle_turn = 0
|
94
|
-
@battle_event_flags = {}
|
95
|
-
@battle_abort = false
|
96
|
-
@battle_main_phase = false
|
97
|
-
@battleback_name = ''
|
98
|
-
@forcing_battler = nil
|
99
|
-
@shop_calling = false
|
100
|
-
@shop_id = 0
|
101
|
-
@name_calling = false
|
102
|
-
@name_actor_id = 0
|
103
|
-
@name_max_char = 0
|
104
|
-
@menu_calling = false
|
105
|
-
@item_menu_calling = false
|
106
|
-
@travel_menu_calling = false
|
107
|
-
@window_settings_calling = false
|
108
|
-
@menu_beep = false
|
109
|
-
@save_calling = false
|
110
|
-
@debug_calling = false
|
111
|
-
@player_transferring = false
|
112
|
-
@player_new_map_id = 0
|
113
|
-
@player_new_x = 0
|
114
|
-
@player_new_y = 0
|
115
|
-
@player_new_direction = 0
|
116
|
-
@transition_processing = false
|
117
|
-
@transition_name = ""
|
118
|
-
@gameover = false
|
119
|
-
@to_title = false
|
120
|
-
@last_file_index = 0
|
121
|
-
@debug_top_row = 0
|
122
|
-
@debug_index = 0
|
123
|
-
@footstep_sfx = nil
|
124
|
-
@filmsprite = nil
|
125
|
-
@prompt_wait = 0
|
126
|
-
@menus_visible = false
|
127
|
-
@countdown_password = ""
|
128
|
-
end
|
129
|
-
|
130
|
-
def bgm_fadein(game_system)
|
131
|
-
if @target_bgm_vol_level > 0
|
132
|
-
@bgm_fadein_timer += 1
|
133
|
-
if @bgm_fadein_timer > 14
|
134
|
-
@bgm_fadein_timer = 0
|
135
|
-
game_system.playing_bgm.volume += @bgm_fadein_speed
|
136
|
-
if game_system.playing_bgm.volume >= @target_bgm_vol_level
|
137
|
-
game_system.playing_bgm.volume = @target_bgm_vol_level
|
138
|
-
@target_bgm_vol_level = -1
|
139
|
-
@bgm_fadein_speed = 1
|
140
|
-
end
|
141
|
-
game_system.bgm_play(game_system.playing_bgm)
|
142
|
-
end
|
143
|
-
end
|
144
|
-
end
|
145
|
-
end
|
data/Scripts/Game_Variables.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
#==============================================================================
|
2
|
-
# ** Game_Variables
|
3
|
-
#------------------------------------------------------------------------------
|
4
|
-
# This class handles variables. It's a wrapper for the built-in class "Array."
|
5
|
-
# Refer to "$game_variables" for the instance of this class.
|
6
|
-
#==============================================================================
|
7
|
-
|
8
|
-
class Game_Variables
|
9
|
-
#--------------------------------------------------------------------------
|
10
|
-
# * Object Initialization
|
11
|
-
#--------------------------------------------------------------------------
|
12
|
-
def initialize
|
13
|
-
@data = []
|
14
|
-
end
|
15
|
-
#--------------------------------------------------------------------------
|
16
|
-
# * Get Variable
|
17
|
-
# variable_id : variable ID
|
18
|
-
#--------------------------------------------------------------------------
|
19
|
-
def [](variable_id)
|
20
|
-
if variable_id <= 5000 and @data[variable_id] != nil
|
21
|
-
return @data[variable_id]
|
22
|
-
else
|
23
|
-
return 0
|
24
|
-
end
|
25
|
-
end
|
26
|
-
#--------------------------------------------------------------------------
|
27
|
-
# * Set Variable
|
28
|
-
# variable_id : variable ID
|
29
|
-
# value : the variable's value
|
30
|
-
#--------------------------------------------------------------------------
|
31
|
-
def []=(variable_id, value)
|
32
|
-
if variable_id <= 5000
|
33
|
-
@data[variable_id] = value
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|