Advertisement
Fomar0153

Fomar0153 - Aeon Party 1.1

Apr 1st, 2012
2,293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.18 KB | None | 0 0
  1. =begin
  2. Aeon Party
  3. by Fomar0153
  4. Version 1.1
  5. ----------------------
  6. Notes
  7. ----------------------
  8. This script allows you to summon actors in the style of FFX's aeons.
  9. ----------------------
  10. Instructions
  11. ----------------------
  12. See the thread or blog post for a change.
  13.  
  14. Also if using an actor battler script add:
  15. SceneManager.scene.create_spriteset
  16. below:
  17. a = $game_actors[x]
  18. $game_party.aeons.push(a)
  19. in your common event.
  20. ----------------------
  21. Change Log
  22. ----------------------
  23. 1.0 -> 1.1 Added a fix for some popup systems which showed death when
  24.            summoning aeons. Reason with the fix below.
  25.            Added support for actor battler scripts.
  26. ----------------------
  27. Known bugs
  28. ----------------------
  29. None
  30. =end
  31.  
  32. $imported = {} if $imported.nil?
  33. $imported["Fomar0153-Aeon Party"] = true
  34.  
  35. class Game_Party < Game_Unit
  36.  
  37.   attr_accessor :aeons
  38.  
  39.   alias aeon_initialize initialize
  40.   def initialize
  41.     aeon_initialize
  42.     @aeons = []
  43.   end
  44.  
  45.   alias aeon_battle_members battle_members
  46.   def battle_members
  47.     return aeon_battle_members if @aeons == []
  48.     return @aeons
  49.   end
  50.  
  51.   alias aeon_all_dead? all_dead?
  52.   def all_dead?
  53.     if aeon_all_dead?
  54.       if @aeons == []
  55.         return true
  56.       else
  57.         @aeons = []
  58.         clear_actions
  59.         return false
  60.       end
  61.     end
  62.     return false
  63.   end
  64.  
  65.   def on_battle_end
  66.     @aeons = []
  67.     super
  68.   end
  69. end
  70.  
  71.  
  72. module BattleManager
  73.  
  74.   class << self
  75.     alias aeon_process_victory process_victory
  76.   end
  77.  
  78.   def self.process_victory
  79.     $game_party.aeons = []
  80.     SceneManager.scene.create_spriteset # added for actor sprites
  81.     aeon_process_victory
  82.   end
  83. end
  84.  
  85. class Game_BattlerBase
  86.   #--------------------------------------------------------------------------
  87.   # * When a character is first created they have 0 HP and hence get death
  88.   #   applied, if this happens in a battle and you are using popups
  89.   #   you get a popup that death has been applied. This is the fix for that.
  90.   #--------------------------------------------------------------------------
  91.   alias no_death_on_initialize initialize
  92.   def initialize
  93.     no_death_on_initialize
  94.     @hp = 1
  95.   end
  96. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement