nathmatt

Battle Dome(1) Version: 1.25

May 22nd, 2011
387
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  2. # Battle Dome by Nathmatt
  3. # Version: 1.25
  4. # Type: Add On
  5. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  6. #
  7. #                                    PART 1
  8. #
  9. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  10. #  
  11. #  This work is protected by the following license:
  12. # #----------------------------------------------------------------------------
  13. # #  
  14. # #  Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported
  15. # #  ( http://creativecommons.org/licenses/by-nc-sa/3.0/ )
  16. # #  
  17. # #  You are free:
  18. # #  
  19. # #  to Share - to copy, distribute and transmit the work
  20. # #  to Remix - to adapt the work
  21. # #  
  22. # #  Under the following conditions:
  23. # #  
  24. # #  Attribution. You must attribute the work in the manner specified by the
  25. # #  author or licensor (but not in any way that suggests that they endorse you
  26. # #  or your use of the work).
  27. # #  
  28. # #  Noncommercial. You may not use this work for commercial purposes.
  29. # #  
  30. # #  Share alike. If you alter, transform, or build upon this work, you may
  31. # #  distribute the resulting work only under the same or similar license to
  32. # #  this one.
  33. # #  
  34. # #  - For any reuse or distribution, you must make clear to others the license
  35. # #    terms of this work. The best way to do this is with a link to this web
  36. # #    page.
  37. # #  
  38. # #  - Any of the above conditions can be waived if you get permission from the
  39. # #    copyright holder.
  40. # #  
  41. # #  - Nothing in this license impairs or restricts the author's moral rights.
  42. # #  
  43. # #-----------------------------------------------------------------------------
  44. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  45. #==============================================================================
  46. # Battle_Dome
  47. #------------------------------------------------------------------------------
  48. #  This is the master control, configuration.
  49. #  module for Battle_Dome.
  50. #==============================================================================
  51. module Battle_Dome
  52.  
  53.  
  54.  
  55.   #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  56.   # Battle_Dome::Control
  57.   #----------------------------------------------------------------------------
  58.   #  This module provides in-game control configurations.
  59.   #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  60.   module Control
  61.     Escape    = 'R' # The button you press to escape(only in battle).
  62.   end
  63.   #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  64.   # Battle_Dome::Config
  65.   #----------------------------------------------------------------------------
  66.   #  This module provides Battle_Dome configurations.
  67.   #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  68.   module Config
  69.     # in frames
  70.     Escape_Time     = 250         # How long it will take to escape
  71.     Escape_Text     = 'RUNNING'   # The text displayed when escaping
  72.     Use_Tons        = false       # If you want to use tons bars
  73.     Escape_bar_x    = 200         # The escape bar x co-ordanance
  74.     Escape_bar_y    = 410         # The escape bar y co-ordanance
  75.     Wait_Time       = 5           # How long the result window will be displayed
  76.     Disable_menu    = true        # Disables the menu during battle
  77.     Menu            = false       # Allows you to call a battle menu
  78.                                   # false or the call example('Scene_Menu')
  79.   end
  80.   #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  81.   # Battle_Dome::Transition_Pack
  82.   #----------------------------------------------------------------------------
  83.   #  This module ensures compatibility with Transition Pack by Fantasist.
  84.   #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  85.   module Transition_Pack
  86.     Using = false                # Whether or not you are using the Transition Pack
  87.     Type  = 0                    # The type defined in the Transition Pack instructions
  88.     Args  = nil                  # The args defined in the Transition Pack instructions
  89.   end
  90.   #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  91.   # Battle_Dome::Terrains
  92.   #----------------------------------------------------------------------------
  93.   #  This module provides Battle_Dome terrain information.
  94.   #  Add You'r Terrains here to change your terrain call
  95.   #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  96.   module Terrains
  97.   Terrain = []
  98.   #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  99.   #
  100.   # Terrain[1] = [M,X,Y,D] Terrain[2] = [M,X,Y,D] ect...
  101.   #
  102.   # M,        # Replace the (M) with the map id you want to go to.
  103.   #
  104.   # X,        # Replace the (X) with the X concordances you want go to.
  105.   #
  106.   # Y,        # Replace the (Y) with the  Y concordances you go to.
  107.   #
  108.   # D,        # Replace the (D) with the direction you want to face
  109.   #           # (8) IS UP (6) IS RIGHT (2) IS DOWN (4) IS LEFT
  110.   #
  111.   #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  112.     Terrain[1] = [7,10,7,2]
  113.     Terrain[2] = [11,9,7,2]
  114.     Terrain[3] = [15,8,5,2]
  115.   end
  116.   #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  117.   # Battle_Dome::Terrain_Maps
  118.   #----------------------------------------------------------------------------
  119.   #  This module changes the terrain automaticly depending on the map
  120.   #  you are on.
  121.   #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  122.   module Terrain_Maps
  123.     #--------------------------------------------------------------------------
  124.     # Terrains
  125.     #  (id) - is the terrain id
  126.     #  (return [the map ids]) - is the array of map ids for that terrain
  127.     #  This is where you set up what maps equals what terrains.
  128.     #--------------------------------------------------------------------------
  129.     def self.Terrains(id)
  130.       case id
  131.       when 1 then return [4,5,6]
  132.       when 2 then return [8,9,10]
  133.       when 3 then return [12,13,14]
  134.       end
  135.     end
  136.   end
  137. end
RAW Paste Data