Help - Search - Members - Calendar
Full Version: Erase Event Troubles
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
fish-iguana
Okay, so I'm having trouble with the "Erase Event" command. I've been using RMXP for about 6 years, so I know that it's supposed to erase an event temporarily, and whenever you leave the map and come back it should reappear again. However, this is not happening. To be specific, I have an autorun event that has an event that is to run every time you enter the map. To be even more specific, I'm trying to get Blizzard's ATES to turn off every time you enter your house. I have the script command on a page of the event. There are no other pages. After the script command is the Erase Event command. It runs once with no problem, but it never runs again, no matter how many times I leave and come back. Other scripts I have in my database are the SDK 1.5, ccoa's Weather Script, Slipknot's Message System, sandgolem's playtesting map switch, and f0tz!baerchen's Pixelmovement script. I even went so far as to delete Blizzard's ATES script to see if that caused the problem; it still worked the same way. Is this a common bug? I'm running Windows 7, but RMXP is running in compatibility mode with Windows XP Service Pack 3.
jimmyly
I can look into it. Can you ready up a Demo and place the <S> near the bug and a Screen shot for me.
fish-iguana
Awesome, thanks a lot!

Here's the screenshot, though I'm not sure why you need one for this:


And here's where you can download a .zip of the demo:
http://www.mediafire.com/?0o3m367p3j6x7zu

I hope you can find the error!
jimmyly
This is as far as I got

The Script: Pixelmovement Script v 1.3
is causing the Event to be detect only once
it located on 2777 to 2814

CODE
  #-----------------------------------------------------------------------------
  # Collision/Autostart, Passable
  #-----------------------------------------------------------------------------
  def check_event_trigger_auto
    
    if @trigger == 2 and
    ($game_player.character_name != '' and
    (self.in_rect?($game_player.real_x / 4,
    $game_player.real_y / 4 - $game_player.size['y'] / 2 + @size['y'] / 2,
    $game_player.size['x'] + @size['x'], $game_player.size['y'] + @size['y']) or
    self.in_rect?($game_player.real_x / 4,
    $game_player.real_y / 4 - $game_player.size['y'] / 2 + @size['y'] / 2,
    $game_player.size['x'] + @size['x'],
    $game_player.size['y'] + @size['y'], @real_x / 4,@real_y / 4))) or
    ($game_player.character_name == '' and
    (self.in_rect?($game_player.real_x / 4,
    $game_player.real_y / 4 - $game_player.size['y'] / 2 + @size['y'] / 2,
    $game_player.size['x'] / 2, $game_player.size['y'] / 2) or
    self.in_rect?($game_player.real_x / 4,
    $game_player.real_y / 4 - $game_player.size['y'] / 2 + @size['y'] / 2,
    $game_player.size['x'] / 2, $game_player.size['y'] / 2,
    @real_x / 4,@real_y / 4)))
    
      if not jumping? and over_trigger? and @trigger_on == 0 and
      Graphics.frame_count > 0
        @trigger_on = 4
        start
      end
      
    else
      
      @trigger_on = 0 if @trigger_on == 4
      
    end
    
    start if @trigger == 3

  end


You should ask a people with Script EXP to fix it for you. Since I'm only good at finding problems.
Night5h4d3
edit- have you tried it as a parallel process event instead of autorun?
jimmyly
QUOTE (Night5h4d3 @ Oct 20 2010, 09:06 AM) *
edit- have you tried it as a parallel process event instead of autorun?


Even if it works it still leave him with an Auto Event problem.
fish-iguana
Sorry for the late reply. Thanks for locating the bug! I actually found out that script has a lot of bugs with all kinds of events. Now I just need to search my old discarded games for the one I used to have. Thanks again!
Rukiri
Don't use the erase command at all, if you want something to erase it's easier just to setup a switch or variable. So if you enter the room the switch is activated and if you leave the switch is turned off.

Though I do not know what Pixel-Movement script your using I'm thinking either it's an older version of Fotz's pixel movement or another one.

I've had no problems with the erase event command with this script.
http://www.hbgames.org/forums/viewtopic.php?f=11&t=624
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.