RPGVX.net

  RPG-Maker VX => VX Technik [Frageforum] => Thema gestartet von: Franky am Februar 13, 2011, 16:27:37

Titel: Event über Picture
Beitrag von: Franky am Februar 13, 2011, 16:27:37
Hallo!
So, mich würde mal interessieren, ob es eine Möglichkeit gibt, schnell und unkompliziert ein Event über ein Picture zu setzen.
Ganz einfach um schon mal den Fall auszuschließen, dass ich etwas übersehen habe.

Falls es nicht möglich ist, frage ich mal, ob sich jemand dazu bereit erklärt, diesen eher einfachen (glaube ich mal xD) Umstand in ein Script zu übersetzen.
Es sollte mit einem Comment geregelt werden, ob das Event über dem Picture sein soll (z.B. "Event above Picture"), welches im Event liegt.
Dementsprechend sollte es auch anders herum funktionieren, sodass das Event wieder drunter liegt.
Ich denke, dass das möglich ist. :haha:
Titel: Re: Event über Picture
Beitrag von: Klex am März 08, 2011, 13:30:17
TamTam
Einmal das Woratana Picture Below Skript, kommt sofort

Zitat
#===============================================================
# ? [VX] ? Pictures under Characters ? ?
# * Show pictures under characters on map but above map tiles *
#--------------------------------------------------------------
# ? by Woratana [woratana@hotmail.com]
# ? Thaiware RPG Maker Community
# ? Released on: 22/02/2009
# ? Version: 1.0
#--------------------------------------------------------------
# ? Update:
#--------------------------------------------------------------
# ? Version 1.0 (22/02/2009)
# - Unlimited numbers of picture under characters
#
#--------------------------------------------------------------
# ? Compatibility:
#--------------------------------------------------------------
# ? This script will rewrite 0 method(s):
#
#
# ? This script will alias 2 method(s):
#     Spriteset_Map.create_pictures
#     Sprite_Picture.update
#
# ? This script should work with most scripts
#
#--------------------------------------------------------------
# ? Installation:
#--------------------------------------------------------------
# 1) This script should be placed JUST AFTER ? Materials.
#
# ? Like this:
# ? Materials
# *Pictures under Characters
# ...
# ...
# ? Main Process
# Main
#
# 2) Setup this script in Setup Part below.
#
#--------------------------------------------------------------
# ? How to use:
#--------------------------------------------------------------
# ? Place this script and setup in the setup part.
#
#=================================================================

class Spriteset_Map

  #=================================================================
  # ++ Setup Part
  #-----------------------------------------------------------------
  FIRST_PICBELOW_ID = 10 # First ID of picture that will show below characters
  LAST_PICBELOW_ID = 15 # Last ID of picture that will show below characters

  #   For example, if you set FIRST to 10 and LAST to 15, picture ID 10-15
  # will show below characters on map.
  #=================================================================

  alias wora_picbelow_sprsetmap_crepic create_pictures

  #--------------------------------------------------------------------------
  # * Create Picture Sprite
  #--------------------------------------------------------------------------
  def create_pictures(*args)
    wora_picbelow_sprsetmap_crepic(*args)
    for pic_id in FIRST_PICBELOW_ID..LAST_PICBELOW_ID
      @picture_sprites[pic_id - 1].dispose
      # Create picture below player in viewport1, so it can show just below player
      @picture_sprites[pic_id - 1] = Sprite_Picture.new(@viewport1,
    $game_map.screen.pictures[pic_id])
    end
  end
end

class Sprite_Picture < Sprite
  alias wora_picbelow_sprpic_upd update

  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update(*args)
    wora_picbelow_sprpic_upd(*args)
    self.z = $game_player.screen_z - 1 if @picture.number >=
  Spriteset_Map::FIRST_PICBELOW_ID and @picture.number <= Spriteset_Map::LAST_PICBELOW_ID
  end
end
SimplePortal 2.3.3 © 2008-2010, SimplePortal