The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: &&&&&&&&&&&&& on January 30, 2007, 06:52:28 PM

Title: [RESOLVED] Character without party
Post by: &&&&&&&&&&&&& on January 30, 2007, 06:52:28 PM
Hello, my name is Boe, and I was wondering if there is a script that makes a walking animation for you, even if there is nobody in the party.

Example - Pokemon, you see the person walk around on the world map, even though you don't have a party.
Title: Re: Person without part.
Post by: Blizzard on January 30, 2007, 07:01:01 PM
BOE, you silly man. You could have PMed me about that. ::)

Open The Game_Player script and find def refresh.

  def refresh
    if $game_party.actors.size == 0
      @character_name = ""
      @character_hue = 0
      return
    end
    actor = $game_party.actors[0]
    @character_name = actor.character_name
    @character_hue = actor.character_hue
    @opacity = 255
    @blend_type = 0
  end
 


Replace it with:

  def refresh
    @character_name = "NAME"
    @character_hue = 0
    @opacity = 255
    @blend_type = 0
  end
 


Change the NAME to the filename of the spriteset you want to use. Hue is... well, the hue... Change it to any value between 0 and 360 if you need a hued charset. Leave the other two as they are.
Title: Re: Person without party
Post by: &&&&&&&&&&&&& on January 30, 2007, 07:18:48 PM
Thanks! Works perfect!  ;D
Title: Re: Person without party
Post by: kathis on February 01, 2007, 06:01:35 PM
You should change the title of your topic and add  (resolved) to it