Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Erase an event...

I am making an RPG based on the Monster Hunter series called "Monster Hunter W"

Below is title screen
http://img441.imageshack.us/img441/2868/mhw03jm2.jpg[/img]


Shot of first area I.E. "Pokke village"
http://img526.imageshack.us/img526/860/mhw01lx3.jpg[/img]

And I am trying to erase an event from pop up twice.

Example: In similar RPG's their would be chests that once opened you find an item or in this case money. But once visited to the same location it will be gone forever...

http://img398.imageshack.us/img398/7807/mhw02fu3.jpg[/img]





Thanx in advance
 
For a slighty better explanation then said above, where you have Erase Event, instead use the self switch command and turn one of your self switches on.Click add a new page. Then under the preconditions in the new page, select self switch and choose whatever switch you turned on.

This just gave me an idea for a script:
Code:
#==============================================================================
# ** Auto-Erase Event
#------------------------------------------------------------------------------
# SephirothSpawn
# Version 1.0
# 2008-09-03
#------------------------------------------------------------------------------
# * Description :
#
#   This script was designed to allow you to erase an event permanetly setting
#   one self-switch. Rather than setting a self-switch, creating a new page
#   and setting the condition the switch is on, you can now just turn on the
#   switch and the page is auto-erased.
#
#   Please note that by default, this script is configured to use the local
#   switch D for all events (D can be changed). This can make any event
#   system that uses the local switch D error.
#------------------------------------------------------------------------------
# * Instrucions :
#
#   Place the script below the SDK (if included) and above main.
#
#   Change the constant to which self-switch will erase the event. 'A'-'D'
#------------------------------------------------------------------------------
# * Terms & Conditions :
#
#   Copyright (C) 2007  SephirothSpawn (Timothy Hoffman)
#   Free for non-commercial and commercial use.
#==============================================================================

#==============================================================================
# ** SDK Log
#==============================================================================

if Object.const_defined?(:SDK)
  SDK.log('Auto-Erase Event', 'SephirothSpawn', 1.0, '2008-09-03')
end

#------------------------------------------------------------------------------
# * Begin SDK Enable Test
#------------------------------------------------------------------------------
if Object.const_defined?(:SDK) && !SDK.enabled?('Auto-Erase Event')
  
#==============================================================================
# ** Game_Event
#==============================================================================

class Game_Event
  #--------------------------------------------------------------------------
  # * Auto-Erase Constant
  #--------------------------------------------------------------------------
  Auto_Erase_Self_Switch = 'D'
  #--------------------------------------------------------------------------
  # * Alias Method
  #--------------------------------------------------------------------------
  alias_method :seph_autoeraseevent_gmevt_refresh, :refresh
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    # Gets self-switch key
    key = [@map_id, @id, Auto_Erase_Self_Switch]
    # Erase if Self-Switch key on
    @erased = true if $game_self_switches[key]
    # Original Refresh
    seph_autoeraseevent_gmevt_refresh
  end
end

#------------------------------------------------------------------------------
# * End SDK Enable Test
#------------------------------------------------------------------------------
end

Now with this, everytime you turn a certain self-switch on, it acts just like as if you created the new page and set a precondition, you just don't have to.Think of it like a permanent erase event command, you just turn a specific self switch on. Right now, I have it set to D. Enjoy!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top