RPG Maker Forums

I'm really in need of this to solve half of my design crisis. Please help me!. It is written for VX.

I found the original script here @ (rmrk thread)

Spoiler containing the script:

Code:
#==============================================================================# ** TDS Battle Common Events#    ver : 1.0#------------------------------------------------------------------------------#  Description :#    This script is used to run common events before and after battle.#==============================================================================  #--------------------------------------------------------------------------  # * Constants  #--------------------------------------------------------------------------  # Common Event ID to run before a battle starts  BEFORE_BATTLE_C_EVENT_ID = 1  # Common Event ID to run after a battle ends (Win, Escape, Lose) 0 for nothing  AFTER_BATTLE_C_EVENTS_ID = [2, 0, 2]  #==============================================================================# ** Scene_Map#------------------------------------------------------------------------------#  This class performs the map screen processing.#==============================================================================class Scene_Map < Scene_Base  #--------------------------------------------------------------------------  # * Alias Listing  #--------------------------------------------------------------------------    alias tds_battle_common_events_scene_map_call_battle     call_battle    #--------------------------------------------------------------------------  # * Switch to Battle Screen  #--------------------------------------------------------------------------  def call_battle          # Run Original Method    tds_battle_common_events_scene_map_call_battle    # Call a battle common event    $game_map.interpreter.battle_common_event(BEFORE_BATTLE_C_EVENT_ID)        # Update Game Map Interpreter    $game_map.interpreter.update      endend#==============================================================================# ** Scene_Battle#------------------------------------------------------------------------------#  This class performs battle screen processing.#==============================================================================class Scene_Battle < Scene_Base  #--------------------------------------------------------------------------  # * Alias Listing  #--------------------------------------------------------------------------    alias tds_battle_common_events_scene_battle_battle_end     battle_end    #--------------------------------------------------------------------------  # * End Battle  #     result : Results (0: win, 1: escape, 2:lose)  #--------------------------------------------------------------------------  def battle_end(result)    # Run Original Method    tds_battle_common_events_scene_battle_battle_end(result)    # If After Battle Common Event ID is not 0    if AFTER_BATTLE_C_EVENTS_ID[result] != 0      # Call a battle common event      $game_map.interpreter.battle_common_event(AFTER_BATTLE_C_EVENTS_ID[result])      # Update Game Map Interpreter      $game_map.interpreter.update        end      end  end#==============================================================================# ** Game_Interpreter#------------------------------------------------------------------------------#  An interpreter for executing event commands. This class is used within the# Game_Map, Game_Troop, and Game_Event classes.#==============================================================================class Game_Interpreter  #--------------------------------------------------------------------------  # * Call Battle Common Event  #--------------------------------------------------------------------------  def battle_common_event(id)    common_event = $data_common_events[id]    if common_event != nil      @child_interpreter = Game_Interpreter.new(@depth + 1)      @child_interpreter.setup(common_event.list, @event_id)    end    return true  endend

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,455
Members
137,821
Latest member
Capterson
Top