Advertisement
Guest User

Raymi Defeat ME Play

a guest
Nov 21st, 2017
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.56 KB | None | 0 0
  1. $imported = {} if $imported.nil? #DON'T EDIT
  2. $imported["Raymi-DefeatMePlay"] = true #DON'T EDIT
  3.  
  4. =begin
  5. Raymi's Defeat Me Play v.1.0
  6.  
  7. Update Log:
  8. 10/31/2017: v.1.0 - Script finished.
  9.  
  10. Directions:
  11. Plug and play. Just change the sound to whatever ME you want to play when your
  12. characters lose a battle. Make sure to leave the quotes!
  13.  
  14. Terms of Use:
  15. Free for commercial & non-commercial use, but you must credit Raymi/raymi100
  16. and leave this header in tact. Don't claim this script as your own, and if you
  17. want to edit it, feel free, just please don't post the edits without my
  18. permission. Don't redistribute this script, just link back to this page.
  19. Contact me with any issues you run into.
  20.  
  21. Contact Info:
  22. rpgmakercentral.com Username: raymi100 - Best way to contact me
  23. Email: raymithefangirl@aol.com - Not a good way to contact me
  24. =end
  25.  
  26. #Configuration Start
  27. module Raymi
  28.   module DefeatMeConfig
  29.     DefeatMe = "Gameover2" #Change what's in between the quotes to which ME
  30.                            #you want it to play when you lose a battle
  31.   end
  32. end
  33. #Configuration End
  34.  
  35. #Code Start - Don't edit unless you know what you're doing.
  36. module BattleManager
  37. def self.process_defeat
  38.     Audio.me_play('Audio/ME/' + Raymi::DefeatMeConfig::DefeatMe, 100, 100)
  39.     $game_message.add(sprintf(Vocab::Defeat, $game_party.name))
  40.     wait_for_message
  41.     if @can_lose
  42.       revive_battle_members
  43.       replay_bgm_and_bgs
  44.       SceneManager.return
  45.     else      
  46.       SceneManager.goto(Scene_Gameover)
  47.     end
  48.     battle_end(2)
  49.     return true
  50.   end
  51. end
  52. #Code End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement