rmxp_extractor 1.5 → 1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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 +259 -0
- data/Scripts/Data_FastTravel.rb +50 -0
- data/Scripts/Data_Footsteps.rb +77 -0
- data/Scripts/Data_Item.rb +50 -0
- data/Scripts/Data_SpecialEventData.rb +60 -0
- data/Scripts/Demo.rb +7 -0
- data/Scripts/Desktop_Message.rb +210 -0
- data/Scripts/Doc_Message.rb +273 -0
- data/Scripts/EdText.rb +50 -0
- data/Scripts/Ed_Message.rb +234 -0
- data/Scripts/FastTravel.rb +175 -0
- data/Scripts/Game_Actor.rb +156 -0
- data/Scripts/Game_Actors.rb +28 -0
- data/Scripts/Game_BattleAction.rb +145 -0
- data/Scripts/Game_Battler 1.rb +307 -0
- data/Scripts/Game_Battler 2.rb +294 -0
- data/Scripts/Game_Battler 3.rb +354 -0
- data/Scripts/Game_Character 1.rb +291 -0
- data/Scripts/Game_Character 2.rb +355 -0
- data/Scripts/Game_Character 3.rb +505 -0
- data/Scripts/Game_CommonEvent.rb +70 -0
- data/Scripts/Game_Enemy.rb +317 -0
- data/Scripts/Game_Event.rb +264 -0
- data/Scripts/Game_FastTravel.rb +40 -0
- data/Scripts/Game_Follower.rb +76 -0
- data/Scripts/Game_Light.rb +13 -0
- data/Scripts/Game_Map.rb +551 -0
- data/Scripts/Game_Oneshot.rb +83 -0
- data/Scripts/Game_Party.rb +380 -0
- data/Scripts/Game_Picture.rb +164 -0
- data/Scripts/Game_Player.rb +298 -0
- data/Scripts/Game_Screen.rb +148 -0
- data/Scripts/Game_SelfSwitches.rb +30 -0
- data/Scripts/Game_Switches.rb +45 -0
- data/Scripts/Game_System.rb +210 -0
- data/Scripts/Game_Temp.rb +145 -0
- data/Scripts/Game_Variables.rb +36 -0
- data/Scripts/Interpreter 1.rb +320 -0
- data/Scripts/Interpreter 2.rb +286 -0
- data/Scripts/Interpreter 3.rb +474 -0
- data/Scripts/Interpreter 4.rb +327 -0
- data/Scripts/Interpreter 5.rb +448 -0
- data/Scripts/Interpreter 6.rb +307 -0
- data/Scripts/Interpreter 7.rb +282 -0
- data/Scripts/Main.rb +46 -9
- data/Scripts/Particles.rb +141 -0
- data/Scripts/Persistent.rb +71 -0
- data/Scripts/Puzzle_Film.rb +14 -0
- data/Scripts/Puzzle_Pixel.rb +210 -0
- data/Scripts/Puzzle_Safe.rb +152 -0
- data/Scripts/Puzzle_Sokoban.rb +14 -0
- data/Scripts/RPG.rb +55 -0
- data/Scripts/SaveLoad.rb +275 -0
- data/Scripts/Scene_Debug.rb +190 -0
- data/Scripts/Scene_End.rb +108 -0
- data/Scripts/Scene_Equip.rb +222 -0
- data/Scripts/Scene_File.rb +111 -0
- data/Scripts/Scene_Item.rb +205 -0
- data/Scripts/Scene_Load.rb +106 -0
- data/Scripts/Scene_Map.rb +540 -0
- data/Scripts/Scene_Menu.rb +213 -0
- data/Scripts/Scene_Name.rb +113 -0
- data/Scripts/Scene_Save.rb +88 -0
- data/Scripts/Scene_Skill.rb +232 -0
- data/Scripts/Scene_Status.rb +78 -0
- data/Scripts/Scene_Title.rb +237 -0
- data/Scripts/Script.rb +780 -0
- data/Scripts/Sprite_Battler.rb +131 -0
- data/Scripts/Sprite_Character.rb +192 -0
- data/Scripts/Sprite_Footprint.rb +35 -0
- data/Scripts/Sprite_Footsplash.rb +54 -0
- data/Scripts/Sprite_Light.rb +18 -0
- data/Scripts/Sprite_MapText.rb +63 -0
- data/Scripts/Sprite_Picture.rb +72 -0
- data/Scripts/Sprite_Timer.rb +52 -0
- data/Scripts/Spriteset_Map.rb +370 -0
- data/Scripts/Window_Base.rb +327 -0
- data/Scripts/Window_BattleResult.rb +51 -0
- data/Scripts/Window_BattleStatus.rb +62 -0
- data/Scripts/Window_Command.rb +49 -0
- data/Scripts/Window_DebugLeft.rb +57 -0
- data/Scripts/Window_DebugRight.rb +69 -0
- data/Scripts/Window_EquipItem.rb +94 -0
- data/Scripts/Window_EquipLeft.rb +61 -0
- data/Scripts/Window_EquipRight.rb +56 -0
- data/Scripts/Window_Gold.rb +27 -0
- data/Scripts/Window_Help.rb +33 -0
- data/Scripts/Window_InputNumber.rb +111 -0
- data/Scripts/Window_Item.rb +229 -0
- data/Scripts/Window_MainMenu.rb +150 -0
- data/Scripts/Window_MenuStatus.rb +48 -0
- data/Scripts/Window_Message.rb +459 -0
- data/Scripts/Window_NameEdit.rb +108 -0
- data/Scripts/Window_NameInput.rb +262 -0
- data/Scripts/Window_PartyCommand.rb +42 -0
- data/Scripts/Window_PlayTime.rb +40 -0
- data/Scripts/Window_SaveFile.rb +91 -0
- data/Scripts/Window_Selectable.rb +203 -0
- data/Scripts/Window_Settings.rb +469 -0
- data/Scripts/Window_ShopBuy.rb +93 -0
- data/Scripts/Window_ShopCommand.rb +37 -0
- data/Scripts/Window_ShopNumber.rb +87 -0
- data/Scripts/Window_ShopSell.rb +94 -0
- data/Scripts/Window_ShopStatus.rb +107 -0
- data/Scripts/Window_Skill.rb +83 -0
- data/Scripts/Window_SkillStatus.rb +28 -0
- data/Scripts/Window_Status.rb +64 -0
- data/Scripts/Window_Steps.rb +26 -0
- data/Scripts/Window_Target.rb +49 -0
- data/Scripts/_scripts.txt +110 -0
- data/Scripts/i18n_English.rb +59 -0
- data/Scripts/i18n_Language.rb +130 -0
- data/lib/rmxp_extractor/classnames.rb +6 -0
- data/lib/rmxp_extractor/data_export.rb +4 -2
- data/lib/rmxp_extractor/version.rb +1 -1
- metadata +111 -125
- data/Data/Map-1.rxdata +0 -0
- data/Data/Map-327.rxdata +0 -0
- data/Data/Map264.rxdata +0 -0
- data/Data/Map265.rxdata +0 -0
- data/Data/Map266.rxdata +0 -0
- data/Data/Map267.rxdata +0 -0
- data/Data/Map268.rxdata +0 -0
- data/Data/Map269.rxdata +0 -0
- data/Data/Map270.rxdata +0 -0
- data/Data/Map271.rxdata +0 -0
- data/Data/Map272.rxdata +0 -0
- data/Data/Map273.rxdata +0 -0
- data/Data/Map274.rxdata +0 -0
- data/Data/Map275.rxdata +0 -0
- data/Data/Map276.rxdata +0 -0
- data/Data/Map277.rxdata +0 -0
- data/Data/Map278.rxdata +0 -0
- data/Data/Map279.rxdata +0 -0
- data/Data/Map280.rxdata +0 -0
- data/Data/Map281.rxdata +0 -0
- data/Data/Map282.rxdata +0 -0
- data/Data/Map283.rxdata +0 -0
- data/Data/Map284.rxdata +0 -0
- data/Data/Map285.rxdata +0 -0
- data/Data/Map286.rxdata +0 -0
- data/Data/Map287.rxdata +0 -0
- data/Data/Map288.rxdata +0 -0
- data/Data/Map289.rxdata +0 -0
- data/Data/Map290.rxdata +0 -0
- data/Data/Map291.rxdata +0 -0
- data/Data/Map292.rxdata +0 -0
- data/Data/Map293.rxdata +0 -0
- data/Data/Map294.rxdata +0 -0
- data/Data/Map295.rxdata +0 -0
- data/Data/Map296.rxdata +0 -0
- data/Data/Map297.rxdata +0 -0
- data/Data/Map298.rxdata +0 -0
- data/Data/Map299.rxdata +0 -0
- data/Data/Map300.rxdata +0 -0
- data/Data/Map301.rxdata +0 -0
- data/Data/Map302.rxdata +0 -0
- data/Data/Map303.rxdata +0 -0
- data/Data/Map304.rxdata +0 -0
- data/Data/Map305.rxdata +0 -0
- data/Data/Map306.rxdata +0 -0
- data/Data/Map307.rxdata +0 -0
- data/Data/Map308.rxdata +0 -0
- data/Data/Map309.rxdata +0 -0
- data/Data/Map310.rxdata +0 -0
- data/Data/Map311.rxdata +0 -0
- data/Data/Map312.rxdata +0 -0
- data/Data/Map313.rxdata +0 -0
- data/Data/Map314.rxdata +0 -0
- data/Data/Map315.rxdata +0 -0
- data/Data/Map316.rxdata +0 -0
- data/Data/Map317.rxdata +0 -0
- data/Data/Map318.rxdata +0 -0
- data/Data/Map319.rxdata +0 -0
- data/Data/Map320.rxdata +0 -0
- data/Data/Map321.rxdata +0 -0
- data/Data/Map322.rxdata +0 -0
- data/Data/Map323.rxdata +0 -0
- data/Data/Map324.rxdata +0 -0
- data/Data/Map325.rxdata +0 -0
- data/Data/Map326.rxdata +0 -0
- data/Data/Map327.rxdata +0 -0
- data/Data/Map328.rxdata +0 -0
- data/Data/Map329.rxdata +0 -0
- data/Data/Map330.rxdata +0 -0
- data/Data/Map331.rxdata +0 -0
- data/Data/Map332.rxdata +0 -0
- data/Data/Map333.rxdata +0 -0
- data/Data/Map334.rxdata +0 -0
- data/Data/Map335.rxdata +0 -0
- data/Data/Map336.rxdata +0 -0
- data/Data/Map337.rxdata +0 -0
- data/Data/Map338.rxdata +0 -0
- data/Data/Map339.rxdata +0 -0
- data/Data/Map340.rxdata +0 -0
- data/Data/Map341.rxdata +0 -0
- data/Data/Map342.rxdata +0 -0
- data/Data/Map343.rxdata +0 -0
- data/Data/Map344.rxdata +0 -0
- data/Data/Map345.rxdata +0 -0
- data/Data/Map346.rxdata +0 -0
- data/Data/Map347.rxdata +0 -0
- data/Data/Map348.rxdata +0 -0
- data/Data/Map349.rxdata +0 -0
- data/Data/Map350.rxdata +0 -0
- data/Data/Map351.rxdata +0 -0
- data/Data/Map352.rxdata +0 -0
- data/Data/Map353.rxdata +0 -0
- data/Data/Map354.rxdata +0 -0
- data/Data/Map355.rxdata +0 -0
- data/Data/Map356.rxdata +0 -0
- data/Data/Map357.rxdata +0 -0
- data/Data/Map358.rxdata +0 -0
- data/Data/Map359.rxdata +0 -0
- data/Data/Map360.rxdata +0 -0
- data/Data/Map361.rxdata +0 -0
- data/Data/Map362.rxdata +0 -0
- data/Data/Map363.rxdata +0 -0
- data/Data/Map364.rxdata +0 -0
- data/Data/Map365.rxdata +0 -0
- data/Data/Map366.rxdata +0 -0
- data/Data/Map367.rxdata +0 -0
- data/Data/Map368.rxdata +0 -0
- data/Data/Map369.rxdata +0 -0
- data/Data/Map370.rxdata +0 -0
- data/Data/Map371.rxdata +0 -0
- data/Data/Map372.rxdata +0 -0
- data/Data/Map373.rxdata +0 -0
- data/Data/Map374.rxdata +0 -0
- data/Data/Map375.rxdata +0 -0
- data/Data/Map376.rxdata +0 -0
- data/Data/Map377.rxdata +0 -0
- data/Data/Map378.rxdata +0 -0
- data/Data/Map379.rxdata +0 -0
- data/Data/Map380.rxdata +0 -0
- data/Data/Map381.rxdata +0 -0
- data/Data/Map382.rxdata +0 -0
- data/Data/Map383.rxdata +0 -0
- data/Data/Map384.rxdata +0 -0
- data/Data/Map385.rxdata +0 -0
data/Scripts/Game_Map.rb
ADDED
@@ -0,0 +1,551 @@
|
|
1
|
+
#==============================================================================
|
2
|
+
# ** Game_Map
|
3
|
+
#------------------------------------------------------------------------------
|
4
|
+
# This class handles the map. It includes scrolling and passable determining
|
5
|
+
# functions. Refer to "$game_map" for the instance of this class.
|
6
|
+
#==============================================================================
|
7
|
+
|
8
|
+
class Game_Map
|
9
|
+
#--------------------------------------------------------------------------
|
10
|
+
# * Public Instance Variables
|
11
|
+
#--------------------------------------------------------------------------
|
12
|
+
attr_accessor :tileset_name # tileset file name
|
13
|
+
attr_accessor :autotile_names # autotile file name
|
14
|
+
attr_accessor :panorama_name # panorama file name
|
15
|
+
attr_accessor :panorama_hue # panorama hue
|
16
|
+
attr_accessor :fog_name # fog file name
|
17
|
+
attr_accessor :fog_hue # fog hue
|
18
|
+
attr_accessor :fog_opacity # fog opacity level
|
19
|
+
attr_accessor :fog_blend_type # fog blending method
|
20
|
+
attr_accessor :fog_zoom # fog zoom rate
|
21
|
+
attr_accessor :fog_sx # fog sx
|
22
|
+
attr_accessor :fog_sy # fog sy
|
23
|
+
attr_accessor :battleback_name # battleback file name
|
24
|
+
attr_accessor :display_x # display x-coordinate * 128
|
25
|
+
attr_accessor :display_y # display y-coordinate * 128
|
26
|
+
attr_accessor :wrap_x # display x-coordinate * 128 for wrap
|
27
|
+
attr_accessor :wrap_y # display y-coordinate * 128 for wrap
|
28
|
+
attr_accessor :need_refresh # refresh request flag
|
29
|
+
attr_accessor :bg_name # bg file name
|
30
|
+
attr_accessor :particles_type # particles name
|
31
|
+
attr_accessor :clamped_x # panorama is horizontally clamped?
|
32
|
+
attr_accessor :clamped_y # panorama is vertically clamped?
|
33
|
+
attr_accessor :always_moving # panorama is always moving
|
34
|
+
attr_accessor :pan_move_offset # panorama moving offset
|
35
|
+
attr_accessor :pan_onetoone # panorama is 1:1
|
36
|
+
attr_accessor :pan_animate # panorama is animated
|
37
|
+
attr_accessor :pan_fade_animate # panorama is fade animated
|
38
|
+
attr_accessor :pan_zoom # panorama zoom
|
39
|
+
attr_accessor :wrapping # map is wrapping?
|
40
|
+
attr_accessor :pan_offset_y # offset of y-coord of panorama
|
41
|
+
attr_accessor :ambient # ambient light
|
42
|
+
attr_reader :passages # passage table
|
43
|
+
attr_reader :priorities # prioroty table
|
44
|
+
attr_reader :terrain_tags # terrain tag table
|
45
|
+
attr_reader :events # events
|
46
|
+
attr_reader :fog_ox # fog x-coordinate starting point
|
47
|
+
attr_reader :fog_oy # fog y-coordinate starting point
|
48
|
+
attr_reader :fog_tone # fog color tone
|
49
|
+
#--------------------------------------------------------------------------
|
50
|
+
# * List of clamped panorama images
|
51
|
+
#--------------------------------------------------------------------------
|
52
|
+
CLAMPED = [
|
53
|
+
'red',
|
54
|
+
'red_distort',
|
55
|
+
'codebg'
|
56
|
+
]
|
57
|
+
CLAMPED_X = [
|
58
|
+
]
|
59
|
+
CLAMPED_Y = [
|
60
|
+
'red_obsdesk',
|
61
|
+
]
|
62
|
+
ANIMATED = [
|
63
|
+
'blue_water',
|
64
|
+
]
|
65
|
+
FADE_ANIMATION_PANORAMA = [
|
66
|
+
'dark_water',
|
67
|
+
'green_water',
|
68
|
+
]
|
69
|
+
ONETOONE = [
|
70
|
+
'blue_water',
|
71
|
+
'green_water',
|
72
|
+
'dark_water',
|
73
|
+
]
|
74
|
+
NOZOOM = [
|
75
|
+
'dark_water',
|
76
|
+
#'green_water',
|
77
|
+
]
|
78
|
+
|
79
|
+
ALWAYS_MOVING = [
|
80
|
+
'codebg'
|
81
|
+
]
|
82
|
+
#--------------------------------------------------------------------------
|
83
|
+
# * Object Initialization
|
84
|
+
#--------------------------------------------------------------------------
|
85
|
+
def initialize
|
86
|
+
@map_id = 0
|
87
|
+
@display_x = 0
|
88
|
+
@display_y = 0
|
89
|
+
end
|
90
|
+
#--------------------------------------------------------------------------
|
91
|
+
# * Setup
|
92
|
+
# map_id : map ID
|
93
|
+
#--------------------------------------------------------------------------
|
94
|
+
def setup(map_id)
|
95
|
+
# Put map ID in @map_id memory
|
96
|
+
@map_id = map_id
|
97
|
+
# Load map from file and set @map
|
98
|
+
@map = load_data(sprintf("Data/Map%03d.rxdata", @map_id))
|
99
|
+
# set tile set information in opening instance variables
|
100
|
+
tileset = $data_tilesets[@map.tileset_id]
|
101
|
+
if @map.tileset_id > 0
|
102
|
+
$game_temp.footstep_sfx = FOOTSTEP_SFX[@map.tileset_id - 1]
|
103
|
+
else
|
104
|
+
$game_temp.footstep_sfx = nil
|
105
|
+
end
|
106
|
+
@tileset_name = tileset.tileset_name
|
107
|
+
@autotile_names = tileset.autotile_names
|
108
|
+
@panorama_name = tileset.panorama_name
|
109
|
+
@panorama_hue = tileset.panorama_hue
|
110
|
+
@fog_name = tileset.fog_name
|
111
|
+
@fog_hue = tileset.fog_hue
|
112
|
+
@fog_opacity = tileset.fog_opacity
|
113
|
+
@fog_blend_type = tileset.fog_blend_type
|
114
|
+
@fog_zoom = tileset.fog_zoom
|
115
|
+
@fog_sx = tileset.fog_sx
|
116
|
+
@fog_sy = tileset.fog_sy
|
117
|
+
@battleback_name = tileset.battleback_name
|
118
|
+
@passages = tileset.passages
|
119
|
+
@priorities = tileset.priorities
|
120
|
+
@terrain_tags = tileset.terrain_tags
|
121
|
+
# Initialize displayed coordinates
|
122
|
+
@display_x = 0
|
123
|
+
@display_y = 0
|
124
|
+
@wrap_x = 0
|
125
|
+
@wrap_y = 0
|
126
|
+
# Clear refresh request flag
|
127
|
+
@need_refresh = false
|
128
|
+
# Set map event data
|
129
|
+
@events = {}
|
130
|
+
for i in @map.events.keys
|
131
|
+
@events[i] = Game_Event.new(@map_id, @map.events[i])
|
132
|
+
end
|
133
|
+
# Set common event data
|
134
|
+
@common_events = {}
|
135
|
+
for i in 1...$data_common_events.size
|
136
|
+
@common_events[i] = Game_CommonEvent.new(i)
|
137
|
+
end
|
138
|
+
# Initialize all fog information
|
139
|
+
@fog_ox = 0
|
140
|
+
@fog_oy = 0
|
141
|
+
@fog_tone = Tone.new(0, 0, 0, 0)
|
142
|
+
@fog_tone_target = Tone.new(0, 0, 0, 0)
|
143
|
+
@fog_tone_duration = 0
|
144
|
+
@fog_opacity_duration = 0
|
145
|
+
@fog_opacity_target = 0
|
146
|
+
# Initialize scroll information
|
147
|
+
@scroll_direction = 2
|
148
|
+
@scroll_rest = 0
|
149
|
+
@scroll_speed = 4
|
150
|
+
# Clear BG
|
151
|
+
@bg_name = ""
|
152
|
+
# Clear particles
|
153
|
+
@particles_type = nil
|
154
|
+
# Unclamp panorama
|
155
|
+
if CLAMPED.include? @panorama_name
|
156
|
+
@clamped_x = true
|
157
|
+
@clamped_y = true
|
158
|
+
elsif CLAMPED_X.include? @panorama_name
|
159
|
+
@clamped_x = true
|
160
|
+
@clamped_y = false
|
161
|
+
elsif CLAMPED_Y.include? @panorama_name
|
162
|
+
@clamped_x = false
|
163
|
+
@clamped_y = true
|
164
|
+
else
|
165
|
+
@clamped_x = false
|
166
|
+
@clamped_y = false
|
167
|
+
end
|
168
|
+
|
169
|
+
@always_moving = ALWAYS_MOVING.include? @panorama_name
|
170
|
+
@pan_move_offset = 0
|
171
|
+
|
172
|
+
# Animated/One-to-one/zoom
|
173
|
+
@pan_animate = ANIMATED.include? @panorama_name
|
174
|
+
@pan_fade_animate = FADE_ANIMATION_PANORAMA.include? @panorama_name
|
175
|
+
@pan_onetoone = ONETOONE.include? @panorama_name
|
176
|
+
@pan_zoom = NOZOOM.include?(@panorama_name) ? 1 : 2
|
177
|
+
# Unwrap map
|
178
|
+
@wrapping = false
|
179
|
+
@pan_offset_y = 0
|
180
|
+
# Full bright ambient light
|
181
|
+
@ambient = Tone.new(0, 0, 0, 0)
|
182
|
+
|
183
|
+
# Construct map name path
|
184
|
+
mapinfo = load_data("Data/MapInfos.rxdata")
|
185
|
+
@map_name = ""
|
186
|
+
i = @map_id
|
187
|
+
begin
|
188
|
+
@map_name.insert(0, "/" + mapinfo[i].name)
|
189
|
+
i = mapinfo[i].parent_id
|
190
|
+
end while i > 0
|
191
|
+
end
|
192
|
+
#--------------------------------------------------------------------------
|
193
|
+
# * Get Map ID
|
194
|
+
#--------------------------------------------------------------------------
|
195
|
+
def map_id
|
196
|
+
return @map_id
|
197
|
+
end
|
198
|
+
#--------------------------------------------------------------------------
|
199
|
+
# * Get Map Name
|
200
|
+
#--------------------------------------------------------------------------
|
201
|
+
def map_name
|
202
|
+
return @map_name
|
203
|
+
end
|
204
|
+
#--------------------------------------------------------------------------
|
205
|
+
# * Get Width
|
206
|
+
#--------------------------------------------------------------------------
|
207
|
+
def width
|
208
|
+
return @map.width
|
209
|
+
end
|
210
|
+
#--------------------------------------------------------------------------
|
211
|
+
# * Get Height
|
212
|
+
#--------------------------------------------------------------------------
|
213
|
+
def height
|
214
|
+
return @map.height
|
215
|
+
end
|
216
|
+
#--------------------------------------------------------------------------
|
217
|
+
# * Get Encounter List
|
218
|
+
#--------------------------------------------------------------------------
|
219
|
+
def encounter_list
|
220
|
+
return @map.encounter_list
|
221
|
+
end
|
222
|
+
#--------------------------------------------------------------------------
|
223
|
+
# * Get Encounter Steps
|
224
|
+
#--------------------------------------------------------------------------
|
225
|
+
def encounter_step
|
226
|
+
return @map.encounter_step
|
227
|
+
end
|
228
|
+
#--------------------------------------------------------------------------
|
229
|
+
# * Get Map Data
|
230
|
+
#--------------------------------------------------------------------------
|
231
|
+
def data
|
232
|
+
return @map.data
|
233
|
+
end
|
234
|
+
#--------------------------------------------------------------------------
|
235
|
+
# * Automatically Change Background Music and Backround Sound
|
236
|
+
#--------------------------------------------------------------------------
|
237
|
+
def autoplay
|
238
|
+
if @map.autoplay_bgm
|
239
|
+
$game_system.bgm_play(@map.bgm)
|
240
|
+
end
|
241
|
+
if @map.autoplay_bgs
|
242
|
+
$game_system.bgs_play(@map.bgs)
|
243
|
+
end
|
244
|
+
end
|
245
|
+
#--------------------------------------------------------------------------
|
246
|
+
# * Refresh
|
247
|
+
#--------------------------------------------------------------------------
|
248
|
+
def refresh
|
249
|
+
# If map ID is effective
|
250
|
+
if @map_id > 0
|
251
|
+
# Refresh all map events
|
252
|
+
for event in @events.values
|
253
|
+
event.refresh
|
254
|
+
end
|
255
|
+
# Refresh all common events
|
256
|
+
for common_event in @common_events.values
|
257
|
+
common_event.refresh
|
258
|
+
end
|
259
|
+
end
|
260
|
+
# Clear refresh request flag
|
261
|
+
@need_refresh = false
|
262
|
+
end
|
263
|
+
|
264
|
+
|
265
|
+
#--------------------------------------------------------------------------
|
266
|
+
# * Scroll Down
|
267
|
+
# distance : scroll distance
|
268
|
+
#--------------------------------------------------------------------------
|
269
|
+
def scroll_down(distance)
|
270
|
+
if $game_switches[98] == true
|
271
|
+
@display_y = [@display_y + distance, (self.height - 15) * 128].min
|
272
|
+
else
|
273
|
+
@display_y += distance
|
274
|
+
end
|
275
|
+
end
|
276
|
+
#--------------------------------------------------------------------------
|
277
|
+
# * Scroll Left
|
278
|
+
# distance : scroll distance
|
279
|
+
#--------------------------------------------------------------------------
|
280
|
+
def scroll_left(distance)
|
281
|
+
if $game_switches[98] == true
|
282
|
+
@display_x = [@display_x - distance, 0].max
|
283
|
+
else
|
284
|
+
@display_x -= distance
|
285
|
+
end
|
286
|
+
end
|
287
|
+
#--------------------------------------------------------------------------
|
288
|
+
# * Scroll Right
|
289
|
+
# distance : scroll distance
|
290
|
+
#--------------------------------------------------------------------------
|
291
|
+
def scroll_right(distance)
|
292
|
+
if $game_switches[98] == true
|
293
|
+
@display_x = [@display_x + distance, (self.width - 20) * 128].min
|
294
|
+
else
|
295
|
+
@display_x += distance
|
296
|
+
end
|
297
|
+
end
|
298
|
+
#--------------------------------------------------------------------------
|
299
|
+
# * Scroll Up
|
300
|
+
# distance : scroll distance
|
301
|
+
#--------------------------------------------------------------------------
|
302
|
+
def scroll_up(distance)
|
303
|
+
if $game_switches[98] == true
|
304
|
+
@display_y = [@display_y - distance, 0].max
|
305
|
+
else
|
306
|
+
@display_y -= distance
|
307
|
+
end
|
308
|
+
end
|
309
|
+
#--------------------------------------------------------------------------
|
310
|
+
# * Determine Valid Coordinates
|
311
|
+
# x : x-coordinate
|
312
|
+
# y : y-coordinate
|
313
|
+
#--------------------------------------------------------------------------
|
314
|
+
def valid?(x, y)
|
315
|
+
return true if @wrapping
|
316
|
+
return (x >= 0 and x < width and y >= 0 and y < height)
|
317
|
+
end
|
318
|
+
#--------------------------------------------------------------------------
|
319
|
+
# * Determine if Passable
|
320
|
+
# x : x-coordinate
|
321
|
+
# y : y-coordinate
|
322
|
+
# d : direction (0,2,4,6,8,10)
|
323
|
+
# * 0,10 = determine if all directions are impassable
|
324
|
+
# self_event : Self (If event is determined passable)
|
325
|
+
#--------------------------------------------------------------------------
|
326
|
+
def passable?(x, y, d, self_event = nil)
|
327
|
+
# If coordinates given are outside of the map
|
328
|
+
unless valid?(x, y)
|
329
|
+
# impassable
|
330
|
+
return false
|
331
|
+
end
|
332
|
+
x %= self.width
|
333
|
+
y %= self.height
|
334
|
+
# Change direction (0,2,4,6,8,10) to obstacle bit (0,1,2,4,8,0)
|
335
|
+
bit = (1 << (d / 2 - 1)) & 0x0f
|
336
|
+
# Loop in all events
|
337
|
+
for event in events.values
|
338
|
+
# If tiles other than self are consistent with coordinates
|
339
|
+
if event.tile_id >= 0 and event != self_event and
|
340
|
+
event.x == x and event.y == y and not event.through
|
341
|
+
# If blank tile
|
342
|
+
if event.tile_id == 0 && event.character_name.empty?
|
343
|
+
return false
|
344
|
+
# If obstacle bit is set
|
345
|
+
elsif @passages[event.tile_id] & bit != 0
|
346
|
+
# impassable
|
347
|
+
return false
|
348
|
+
# If obstacle bit is set in all directions
|
349
|
+
elsif @passages[event.tile_id] & 0x0f == 0x0f
|
350
|
+
# impassable
|
351
|
+
return false
|
352
|
+
# If priorities other than that are 0
|
353
|
+
elsif @priorities[event.tile_id] == 0
|
354
|
+
# passable
|
355
|
+
return true
|
356
|
+
end
|
357
|
+
end
|
358
|
+
end
|
359
|
+
# Loop searches in order from top of layer
|
360
|
+
blank = 0
|
361
|
+
[2, 1, 0].each do |i|
|
362
|
+
# Get tile ID
|
363
|
+
tile_id = data[x, y, i]
|
364
|
+
# Tile ID acquistion failure
|
365
|
+
next if tile_id == nil
|
366
|
+
|
367
|
+
# Only handle blank if all three layers are blank
|
368
|
+
if tile_id < 48 && i > 0
|
369
|
+
blank += 1
|
370
|
+
next if blank < 3
|
371
|
+
end
|
372
|
+
|
373
|
+
# If obstacle bit is set
|
374
|
+
if @passages[tile_id] & bit != 0
|
375
|
+
# impassable
|
376
|
+
return false
|
377
|
+
# If obstacle bit is set in all directions
|
378
|
+
elsif @passages[tile_id] & 0x0f == 0x0f
|
379
|
+
# impassable
|
380
|
+
return false
|
381
|
+
# If priorities other than that are 0
|
382
|
+
elsif @priorities[tile_id] == 0
|
383
|
+
# passable
|
384
|
+
return true
|
385
|
+
end
|
386
|
+
end
|
387
|
+
# passable
|
388
|
+
return true
|
389
|
+
end
|
390
|
+
#--------------------------------------------------------------------------
|
391
|
+
# * Determine Thicket
|
392
|
+
# x : x-coordinate
|
393
|
+
# y : y-coordinate
|
394
|
+
#--------------------------------------------------------------------------
|
395
|
+
def bush?(x, y)
|
396
|
+
if @map_id != 0
|
397
|
+
for i in [2, 1, 0]
|
398
|
+
tile_id = data[x, y, i]
|
399
|
+
if tile_id == nil
|
400
|
+
return false
|
401
|
+
elsif @passages[tile_id] & 0x40 == 0x40
|
402
|
+
return true
|
403
|
+
end
|
404
|
+
end
|
405
|
+
end
|
406
|
+
return false
|
407
|
+
end
|
408
|
+
#--------------------------------------------------------------------------
|
409
|
+
# * Determine Counter
|
410
|
+
# x : x-coordinate
|
411
|
+
# y : y-coordinate
|
412
|
+
#--------------------------------------------------------------------------
|
413
|
+
def counter?(x, y)
|
414
|
+
if @map_id != 0
|
415
|
+
for i in [2, 1, 0]
|
416
|
+
tile_id = data[x, y, i]
|
417
|
+
if tile_id == nil
|
418
|
+
return false
|
419
|
+
elsif @passages[tile_id] & 0x80 == 0x80
|
420
|
+
return true
|
421
|
+
end
|
422
|
+
end
|
423
|
+
end
|
424
|
+
return false
|
425
|
+
end
|
426
|
+
#--------------------------------------------------------------------------
|
427
|
+
# * Get Terrain Tag
|
428
|
+
# x : x-coordinate
|
429
|
+
# y : y-coordinate
|
430
|
+
#--------------------------------------------------------------------------
|
431
|
+
def terrain_tag(x, y)
|
432
|
+
if @map_id != 0
|
433
|
+
for i in [2, 1, 0]
|
434
|
+
tile_id = data[x, y, i]
|
435
|
+
if tile_id == nil
|
436
|
+
next #return 0
|
437
|
+
elsif @terrain_tags[tile_id] > 0
|
438
|
+
return @terrain_tags[tile_id]
|
439
|
+
end
|
440
|
+
end
|
441
|
+
end
|
442
|
+
return 0
|
443
|
+
end
|
444
|
+
#--------------------------------------------------------------------------
|
445
|
+
# * Get Designated Position Event ID
|
446
|
+
# x : x-coordinate
|
447
|
+
# y : y-coordinate
|
448
|
+
#--------------------------------------------------------------------------
|
449
|
+
def check_event(x, y)
|
450
|
+
for event in $game_map.events.values
|
451
|
+
if event.x == x and event.y == y
|
452
|
+
return event.id
|
453
|
+
end
|
454
|
+
end
|
455
|
+
end
|
456
|
+
#--------------------------------------------------------------------------
|
457
|
+
# * Start Scroll
|
458
|
+
# direction : scroll direction
|
459
|
+
# distance : scroll distance
|
460
|
+
# speed : scroll speed
|
461
|
+
#--------------------------------------------------------------------------
|
462
|
+
def start_scroll(direction, distance, speed)
|
463
|
+
@scroll_direction = direction
|
464
|
+
@scroll_rest = distance * 128
|
465
|
+
@scroll_speed = speed
|
466
|
+
end
|
467
|
+
#--------------------------------------------------------------------------
|
468
|
+
# * Determine if Scrolling
|
469
|
+
#--------------------------------------------------------------------------
|
470
|
+
def scrolling?
|
471
|
+
return @scroll_rest > 0
|
472
|
+
end
|
473
|
+
#--------------------------------------------------------------------------
|
474
|
+
# * Start Changing Fog Color Tone
|
475
|
+
# tone : color tone
|
476
|
+
# duration : time
|
477
|
+
#--------------------------------------------------------------------------
|
478
|
+
def start_fog_tone_change(tone, duration)
|
479
|
+
@fog_tone_target = tone.clone
|
480
|
+
@fog_tone_duration = duration
|
481
|
+
if @fog_tone_duration == 0
|
482
|
+
@fog_tone = @fog_tone_target.clone
|
483
|
+
end
|
484
|
+
end
|
485
|
+
#--------------------------------------------------------------------------
|
486
|
+
# * Start Changing Fog Opacity Level
|
487
|
+
# opacity : opacity level
|
488
|
+
# duration : time
|
489
|
+
#--------------------------------------------------------------------------
|
490
|
+
def start_fog_opacity_change(opacity, duration)
|
491
|
+
@fog_opacity_target = opacity * 1.0
|
492
|
+
@fog_opacity_duration = duration
|
493
|
+
if @fog_opacity_duration == 0
|
494
|
+
@fog_opacity = @fog_opacity_target
|
495
|
+
end
|
496
|
+
end
|
497
|
+
#--------------------------------------------------------------------------
|
498
|
+
# * Frame Update
|
499
|
+
#--------------------------------------------------------------------------
|
500
|
+
def update
|
501
|
+
# Refresh map if necessary
|
502
|
+
if $game_map.need_refresh
|
503
|
+
refresh
|
504
|
+
end
|
505
|
+
# If scrolling
|
506
|
+
if @scroll_rest > 0
|
507
|
+
# Change from scroll speed to distance in map coordinates
|
508
|
+
distance = 2 ** @scroll_speed
|
509
|
+
# Execute scrolling
|
510
|
+
case @scroll_direction
|
511
|
+
when 2 # Down
|
512
|
+
scroll_down(distance)
|
513
|
+
when 4 # Left
|
514
|
+
scroll_left(distance)
|
515
|
+
when 6 # Right
|
516
|
+
scroll_right(distance)
|
517
|
+
when 8 # Up
|
518
|
+
scroll_up(distance)
|
519
|
+
end
|
520
|
+
# Subtract distance scrolled
|
521
|
+
@scroll_rest -= distance
|
522
|
+
end
|
523
|
+
# Update map event
|
524
|
+
for event in @events.values
|
525
|
+
event.update
|
526
|
+
end
|
527
|
+
# Update common event
|
528
|
+
for common_event in @common_events.values
|
529
|
+
common_event.update
|
530
|
+
end
|
531
|
+
# Manage fog scrolling
|
532
|
+
@fog_ox -= @fog_sx / 8.0
|
533
|
+
@fog_oy -= @fog_sy / 8.0
|
534
|
+
# Manage change in fog color tone
|
535
|
+
if @fog_tone_duration >= 1
|
536
|
+
d = @fog_tone_duration
|
537
|
+
target = @fog_tone_target
|
538
|
+
@fog_tone.red = (@fog_tone.red * (d - 1) + target.red) / d
|
539
|
+
@fog_tone.green = (@fog_tone.green * (d - 1) + target.green) / d
|
540
|
+
@fog_tone.blue = (@fog_tone.blue * (d - 1) + target.blue) / d
|
541
|
+
@fog_tone.gray = (@fog_tone.gray * (d - 1) + target.gray) / d
|
542
|
+
@fog_tone_duration -= 1
|
543
|
+
end
|
544
|
+
# Manage change in fog opacity level
|
545
|
+
if @fog_opacity_duration >= 1
|
546
|
+
d = @fog_opacity_duration
|
547
|
+
@fog_opacity = (@fog_opacity * (d - 1) + @fog_opacity_target) / d
|
548
|
+
@fog_opacity_duration -= 1
|
549
|
+
end
|
550
|
+
end
|
551
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
class Game_Oneshot
|
2
|
+
#--------------------------------------------------------------------------
|
3
|
+
# * Public Instance Variables
|
4
|
+
#--------------------------------------------------------------------------
|
5
|
+
attr_accessor :player_name # map music (for battle memory)
|
6
|
+
attr_accessor :plight_timer # start of plight's plight
|
7
|
+
attr_accessor :bruteforce_start # when the bruteforce_timer is started
|
8
|
+
attr_accessor :wallpaper # the wallpaper that we should use
|
9
|
+
attr_accessor :wallpaper_color # the wallpaper color
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
if $GDC
|
13
|
+
@player_name = ''
|
14
|
+
else
|
15
|
+
@player_name = Game_Oneshot.get_user_name.force_encoding("utf-8")
|
16
|
+
end
|
17
|
+
@lights = {}
|
18
|
+
@plight_timer = nil
|
19
|
+
@wallpaper = nil
|
20
|
+
@bruteforce_start = nil
|
21
|
+
end
|
22
|
+
def self.get_user_name
|
23
|
+
user_name = (Oneshot::USER_NAME).split(/\s+/)
|
24
|
+
#user_name = (Steam.enabled? ? Steam::USER_NAME : Oneshot::USER_NAME).split(/\s+/)
|
25
|
+
if user_name[0].casecmp('the') == 0 || user_name[0].casecmp('a') == 0
|
26
|
+
return user_name.join(' ')
|
27
|
+
else
|
28
|
+
return user_name[0]
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
module Wallpaper
|
34
|
+
def self.set_persistent(name, color)
|
35
|
+
if Graphics.fullscreen
|
36
|
+
Graphics.fullscreen = false
|
37
|
+
$console = false
|
38
|
+
if Oneshot::OS == "macos"
|
39
|
+
sleep 0.65
|
40
|
+
else
|
41
|
+
sleep 0.2
|
42
|
+
end
|
43
|
+
Graphics.update
|
44
|
+
end
|
45
|
+
|
46
|
+
if (name == 'save_w32')
|
47
|
+
case $persistent.langcode
|
48
|
+
when 'fr'
|
49
|
+
name = $persistent.langcode + "/" + name
|
50
|
+
when 'pt_BR'
|
51
|
+
name = $persistent.langcode + "/" + name
|
52
|
+
when 'es'
|
53
|
+
name = $persistent.langcode + "/" + name
|
54
|
+
when 'ja'
|
55
|
+
name = $persistent.langcode + "/" + name
|
56
|
+
when 'ko'
|
57
|
+
name = $persistent.langcode + "/" + name
|
58
|
+
when 'zh_CN'
|
59
|
+
name = $persistent.langcode + "/" + name
|
60
|
+
end
|
61
|
+
end
|
62
|
+
$game_oneshot.wallpaper = name
|
63
|
+
$game_oneshot.wallpaper_color = color
|
64
|
+
Wallpaper.set(name, color)
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.reset_persistent
|
68
|
+
if Graphics.fullscreen
|
69
|
+
Graphics.fullscreen = false
|
70
|
+
$console = false
|
71
|
+
if Oneshot::OS == "macos"
|
72
|
+
sleep 0.65
|
73
|
+
else
|
74
|
+
sleep 0.2
|
75
|
+
end
|
76
|
+
Graphics.update
|
77
|
+
end
|
78
|
+
|
79
|
+
$game_oneshot.wallpaper = nil
|
80
|
+
$game_oneshot.wallpaper_color = nil
|
81
|
+
Wallpaper.reset
|
82
|
+
end
|
83
|
+
end
|