Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 FPLE : First Person Labyrinth Explorer
#25
@MGC
There was an small issue with touch trigger events and random battle calling.
Since FPLE hadles Game_Player moving? in an different way, it didn't become false after each step, like it do on defautl script.
So the encounter count down and event checks are made only when you stop.
if you keep walking unstoped they would never be checked.

i changed this part of the FLPE_Game_Player update:
Code:
unless moving?
      # If player was moving last time
      if last_moving || $game_temp.last_moving
        $game_temp.last_moving = false
        # Event determinant is via touch of same position event
        result = check_event_trigger_here([1,2])
        # If event which started does not exist
        if result == false
          # Disregard if debug mode is ON and ctrl key was pressed
          unless $DEBUG and Input.press?(Input::CTRL)
            # Encounter countdown
            if @encounter_count > 0
              @encounter_count -= 1
            end
          end
        end
      end


to this:
Code:
if not moving? or ($game_system.fple and moving? and @steps != $game_party.steps)
      # If player was moving last time
      if last_moving
        @steps = $game_party.steps
        $game_temp.last_moving = false
        # Event determinant is via touch of same position event
        result = check_event_trigger_here([1,2])
        # If event which started does not exist
        if result == false or ($game_system.fple and result == false and
           passable?(@x, @y, @direction))
          # Disregard if debug mode is ON and ctrl key was pressed
          unless $DEBUG and Input.press?(Input::CTRL)
            # Encounter countdown
            if @encounter_count > 0
              @encounter_count -= 1
            end
          end
        end
      end
that way the scripts checks also the step count, to verify if an step was done.

I get no errors with that so you could make some tests with this change.
Also, random battle doesn't start if diferectly facing an blocked tile.

Also for people whou would like to use the dungeon background as battle back ground, this small code can do this ;D
Code:
#==============================================================================
# ** Scene_Battle
#==============================================================================
class Scene_Battle
  #--------------------------------------------------------------------------
  if !@already_aliased
    alias main_fple_scene_map main
    @already_aliased = true
  end
  #--------------------------------------------------------------------------
  def main
    if $game_system.fple
      @spriteset_map = FPLE_Spriteset_Map.new
    else
      @spriteset_map = Spriteset_Map.new
    end
    main_fple_scene_map
    @spriteset_map.dispose
  end
end

#==============================================================================
# ** Scene_Map
#==============================================================================
class Scene_Map
  #--------------------------------------------------------------------------
  if !@already_aliased
    alias call_battle_fple_scene_map call_battle
    @already_aliased = true
  end
  #--------------------------------------------------------------------------
  def call_battle
    if $game_system.fple
      @spriteset.update
      Graphics.update
    end
    call_battle_fple_scene_map
  end
end
Just paste it bellow FPLE scripts.
Reply }


Messages In This Thread
FPLE : First Person Labyrinth Explorer - by MGC - 03-28-2010, 01:13 PM
FPLE : First Person Labyrinth Explorer - by Ace - 03-28-2010, 01:41 PM
FPLE : First Person Labyrinth Explorer - by Bolt - 03-29-2010, 04:43 AM
FPLE : First Person Labyrinth Explorer - by MGC - 03-29-2010, 09:39 AM
FPLE : First Person Labyrinth Explorer - by MGC - 03-30-2010, 07:09 AM
FPLE : First Person Labyrinth Explorer - by MGC - 03-31-2010, 06:56 AM
FPLE : First Person Labyrinth Explorer - by Boot - 03-31-2010, 07:36 PM
FPLE : First Person Labyrinth Explorer - by MGC - 04-03-2010, 08:48 AM
FPLE : First Person Labyrinth Explorer - by PK8 - 04-04-2010, 02:36 AM
FPLE : First Person Labyrinth Explorer - by EJlol - 04-04-2010, 10:28 AM
FPLE : First Person Labyrinth Explorer - by Ace - 04-04-2010, 11:32 AM
FPLE : First Person Labyrinth Explorer - by PK8 - 04-05-2010, 01:40 AM
FPLE : First Person Labyrinth Explorer - by MGC - 04-05-2010, 02:16 PM
FPLE : First Person Labyrinth Explorer - by Victor Sant - 04-07-2010, 12:22 AM
FPLE : First Person Labyrinth Explorer - by MGC - 04-07-2010, 06:57 AM
FPLE : First Person Labyrinth Explorer - by Boot - 04-07-2010, 05:58 PM
FPLE : First Person Labyrinth Explorer - by MGC - 04-07-2010, 08:07 PM
FPLE : First Person Labyrinth Explorer - by Xaiko - 04-09-2010, 05:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   FPLE Camera Height DerVVulfman 23 28,148 07-20-2020, 01:41 AM
Last Post: rzrcoon
   [WIP] FPLE 2 MGC 17 39,522 01-08-2018, 04:06 AM
Last Post: Darkantuan
   Importing FPLE maps in RMVX MGC 5 15,744 04-21-2012, 11:45 PM
Last Post: albertcprice
   L's Simple Main Menu #3 - 1-person Landarma 1 7,001 10-14-2010, 04:25 AM
Last Post: Landarma
   1-Person DBS Raziel 0 5,608 03-07-2008, 04:41 AM
Last Post: Raziel



Users browsing this thread: