RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
RMVXA (Script Request) Character sprite on world map

0 Members and 1 Guest are viewing this topic.

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Zero to Hero2013 Biggest Drama WhoreParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
(Rpg Maker VX ace)

As I was working on my game, I noticed that, on the world map, the characters dwarfed the buildings. I didn't like how this looked, so I made smaller version of all the sprites.

I was wondering if they was a script that would change the character's sprite when I went to the world map.

Currently I am just manually changing each character's sprite... later into development, I see this becoming really annoying, as I have to change them when exiting a city and then back when entering one. That means every time I created a new character, I'll have to go back to every town/city and add in the new character to the shrinking/growing process... blarg.

tl;dr:bbq
can i mak i so's teh character chaing sprit when they go 2 teh wurld map/?
&&&&&&&&&&&&&&&&

pokeball TDSOffline
***
Rep:
Level 84
-T D S-
Silver - GIAW 11 (Hard)Silver - Game In A Week VII
I'll give a try.

I just need to know if you are you using any naming conventions for the character graphics, like "hero_name" for normal and "hero_name_MINI" for the smaller version or some other type of naming convention.

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
If I recall correctly, which is unlikely, there should be a way to do this without actually changing files at all; defining the appropriate map ID(s) and altering the way that actor sprites are drawn (I'm sure there's a way to do this, I don't have any RM with me right now though) according to said ID(s). I know I've seen this done before.
it's like a metaphor or something i don't know

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Zero to Hero2013 Biggest Drama WhoreParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
I'll give a try.

I just need to know if you are you using any naming conventions for the character graphics, like "hero_name" for normal and "hero_name_MINI" for the smaller version or some other type of naming convention.

Each character has their own charsheet.
Like this ~


I have both default and tiny on the same one.
&&&&&&&&&&&&&&&&

pokeball TDSOffline
***
Rep:
Level 84
-T D S-
Silver - GIAW 11 (Hard)Silver - Game In A Week VII
I see.

If they all follow the same format then something like this should do it.

Code: [Select]
#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  This class handles actors. It is used within the Game_Actors class
# ($game_actors) and is also referenced from the Game_Party class ($game_party).
#==============================================================================

class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # * Alias Listing
  #-------------------------------------------------------------------------- 
  alias tds_player_map_graphic_change_game_actor_character_index character_index
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def character_index(*args, &block)
    # If Map uses mini characters
    return @character_index + 1 if $game_map.use_mini_character?
    # Run Original Method
    tds_player_map_graphic_change_game_actor_character_index(*args, &block)
  end
end


#==============================================================================
# ** Game_Map
#------------------------------------------------------------------------------
#  This class handles maps. It includes scrolling and passage determination
# functions. The instance of this class is referenced by $game_map.
#==============================================================================

class Game_Map
  #--------------------------------------------------------------------------
  # * Alias Listing
  #-------------------------------------------------------------------------- 
  alias tds_mini_character_map_graphic_game_map_setup                    setup
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader :mini_character_map                   # Mini Character Map Flag
  #--------------------------------------------------------------------------
  # * Setup
  #--------------------------------------------------------------------------
  def setup(*args, &block)
    # Run Original Method
    tds_mini_character_map_graphic_game_map_setup(*args, &block)
    # Set Mini Character Map Flag
    @mini_character_map = (@map.note =~ /<Player_MINI>/i ? true : false)
  end
  #--------------------------------------------------------------------------
  # * Determine if Mini Character should be used
  #--------------------------------------------------------------------------
  def use_mini_character?
    return @mini_character_map if !@mini_character_map.nil?
    return false
  end
end

Any map that has "<Player_MINI>" on it's note box will automatically use the next index for the character.

Let me know if it works for you and if you want anything added/remove changed.

Have a nice day.

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Zero to Hero2013 Biggest Drama WhoreParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
Hmmm, I think I'm doing something wrong here...



I was going to say "It's not working", but then I went to save, and...




For some reason it's only changing it in the little party snapshot in the save menu.
&&&&&&&&&&&&&&&&

pokeball TDSOffline
***
Rep:
Level 84
-T D S-
Silver - GIAW 11 (Hard)Silver - Game In A Week VII
Is this happening when you load a game and save or when you hit new game?

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Zero to Hero2013 Biggest Drama WhoreParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
Both.
It seems to be "working", when I have the "<Player_MINI>" on a map, when I save it shows them tiny. I don't know why it isn't effecting the actual character sprites, and only doing it to the save sprites...

http://youtu.be/5fYBTvtCqjY
« Last Edit: April 13, 2013, 03:23:29 AM by Boe »
&&&&&&&&&&&&&&&&

pokeball TDSOffline
***
Rep:
Level 84
-T D S-
Silver - GIAW 11 (Hard)Silver - Game In A Week VII
Are you using any other scripts and if so if this one at the bottom of all of them?

This should fix the save menu problem.

Code: [Select]
#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  This class handles actors. It is used within the Game_Actors class
# ($game_actors) and is also referenced from the Game_Party class ($game_party).
#==============================================================================

class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # * Alias Listing
  #-------------------------------------------------------------------------- 
  alias tds_player_map_graphic_change_game_actor_character_index character_index
  #--------------------------------------------------------------------------
  # * Character Index
  #--------------------------------------------------------------------------
  def character_index(*args, &block)
    # If Map uses mini characters
    return @character_index + 1 if $game_map.use_mini_character?
    # Run Original Method
    tds_player_map_graphic_change_game_actor_character_index(*args, &block)
  end
end


#==============================================================================
# ** Game_Map
#------------------------------------------------------------------------------
#  This class handles maps. It includes scrolling and passage determination
# functions. The instance of this class is referenced by $game_map.
#==============================================================================

class Game_Map
  #--------------------------------------------------------------------------
  # * Alias Listing
  #-------------------------------------------------------------------------- 
  alias tds_mini_character_map_graphic_game_map_setup                    setup
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader :mini_character_map                   # Mini Character Map Flag
  #--------------------------------------------------------------------------
  # * Setup
  #--------------------------------------------------------------------------
  def setup(*args, &block)
    # Run Original Method
    tds_mini_character_map_graphic_game_map_setup(*args, &block)
    # Set Mini Character Map Flag
    @mini_character_map = (@map.note =~ /<Player_MINI>/i ? true : false)
  end
  #--------------------------------------------------------------------------
  # * Determine if Mini Character should be used
  #--------------------------------------------------------------------------
  def use_mini_character?
    return false if !SceneManager.scene_is?(Scene_Map)
    return @mini_character_map if !@mini_character_map.nil?
    return false
  end
end

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Zero to Hero2013 Biggest Drama WhoreParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
I have it above all the other scripts. I have 2 scripts, and they change the menu.

I tried creating a completely new game, and it didn't work in it either.
&&&&&&&&&&&&&&&&

pokeball TDSOffline
***
Rep:
Level 84
-T D S-
Silver - GIAW 11 (Hard)Silver - Game In A Week VII
It's supposed to be below all other scripts, as close to the "main process" script as possible.

And are you sure you put the text in the map properties note box?

Like this



Because I just tested it with the image you provided and it works just fine.


*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Zero to Hero2013 Biggest Drama WhoreParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
It's supposed to be below all other scripts, as close to the "main process" script as possible.

Sorry, mistype. I have it below all other scripts. Don't know why I said above.


It's supposed to be below all other scripts, as close to the "main process" script as possible.

And are you sure you put the text in the map properties note box?

Like this

Spoiler for:
Spoiler for:

Because I just tested it with the image you provided and it works just fine.

Spoiler for:
I really don't know what I'm doing wrong. I'm very skilled at screwing things up, but I don't see how I'm screwing this up...

Spoiler for:

Spoiler for:
« Last Edit: April 13, 2013, 05:12:54 AM by Boe »
&&&&&&&&&&&&&&&&

pokeball TDSOffline
***
Rep:
Level 84
-T D S-
Silver - GIAW 11 (Hard)Silver - Game In A Week VII
I think I know what is causing the problem.

Try this version and let me know if it works.

Code: [Select]
#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  This class handles actors. It is used within the Game_Actors class
# ($game_actors) and is also referenced from the Game_Party class ($game_party).
#==============================================================================

class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # * Alias Listing
  #-------------------------------------------------------------------------- 
  alias tds_player_map_graphic_change_game_actor_character_index character_index
  #--------------------------------------------------------------------------
  # * Character Index
  #--------------------------------------------------------------------------
  def character_index(*args, &block)
    # If Map uses mini characters
    return @character_index + 1 if $game_map.use_mini_character?
    # Run Original Method
    tds_player_map_graphic_change_game_actor_character_index(*args, &block)
  end
end


#==============================================================================
# ** Game_Map
#------------------------------------------------------------------------------
#  This class handles maps. It includes scrolling and passage determination
# functions. The instance of this class is referenced by $game_map.
#==============================================================================

class Game_Map
  #--------------------------------------------------------------------------
  # * Alias Listing
  #-------------------------------------------------------------------------- 
  alias tds_mini_character_map_graphic_game_map_setup                    setup
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader :mini_character_map                   # Mini Character Map Flag
  #--------------------------------------------------------------------------
  # * Setup
  #--------------------------------------------------------------------------
  def setup(*args, &block)
    # Run Original Method
    tds_mini_character_map_graphic_game_map_setup(*args, &block)
    # Set Mini Character Map Flag
    @mini_character_map =  (@map.note =~ /<Player_MINI>/i).nil? ? false : true
    # Refresh Game Player
    $game_player.refresh
  end
  #--------------------------------------------------------------------------
  # * Determine if Mini Character should be used
  #--------------------------------------------------------------------------
  def use_mini_character?
    return false if !(SceneManager.scene_is?(Scene_Map) or SceneManager.scene_is?(Scene_Title))
    return @mini_character_map if !@mini_character_map.nil?
    return false
  end
end


*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Zero to Hero2013 Biggest Drama WhoreParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
Thank you so much. ^_^

I don't know what y'all did, but it works perfectly.

Thanks for sticking with me.
&&&&&&&&&&&&&&&&