Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> 


———
Before you ask! Read! ;)

You must have 30+ Posts to create a topic here!

Thanks for reading!
———

 
Reply to this topicStart new topic
> [SOLVED] Always have the same sprite walking on the map, Even if not the party leader
TheDrifter
post Apr 15 2012, 03:21 PM
Post #1


Level 2
Group Icon

Group: Member
Posts: 25
Type: Mapper
RM Skill: Masterful




Hi everyone,

When I remove the main character from my party, the sprite walking on the map changes, and I don't want that.

I want the character on the map to always be the same, even if he's not in my party.
But I'd also like to be able to change the graphic to "invisible" for cut-scenes where he shouldn't be there.

I need a script for this, because I can't just put the same graphic for every actor.
Their graphics must appear during battle, so they can't all be the same.

I use KGC_LargeParty

Thanks a lot!

Why I need this:
I don't want to have to "lock" the main character and force people to use him every battle, but I still want him to appear on the map.
In my project, you should be able to switch characters even during battle, just like in Final Fantasy X.

This post has been edited by TheDrifter: Apr 16 2012, 10:04 AM
Go to the top of the page
 
+Quote Post
   
TheDrifter
post Apr 16 2012, 10:04 AM
Post #2


Level 2
Group Icon

Group: Member
Posts: 25
Type: Mapper
RM Skill: Masterful




QUOTE (Zarby @ Apr 16 2012, 11:53 AM) *
Hi, in the "Game Player" script search that :
CODE
  def refresh
    if $game_party.members.size == 0
      @character_name = ""
      @character_index = 0
    else
      actor = $game_party.members[0]   # Get front actor
      @character_name = actor.character_name
      @character_index = actor.character_index
    end
  end


and just change it for that :

CODE
  def refresh
    if $game_party.members.size == 0
      @character_name = ""
      @character_index = 0
    else
      @character_name = "filename" # The filename of your character ex : Actor1 inside the " " (for default)
      @character_index = 0 # The index of the character ex : 0 (for default)
    end
  end



Thank you very much, kind sir.

That helps a lot! However, I still need to be able to change the graphic mid-game...

Is there a way I can do that with events?

QUOTE (Zarby @ Apr 16 2012, 05:00 PM) *
you can use a condition like this :

CODE
  def refresh
    if $game_party.members.size == 0
      @character_name = ""
      @character_index = 0
    else
      if $game_switches[IDOFTHESWITCHYOUWANT] == true
      @character_name = "filename" # The filename of your character ex : Actor1 inside the " " (for default)
      @character_index = 0 # The index of the character ex : 0 (for default)
       end
    end
  end


juste replace the IDOFTHESWITCHYOUWANT by the id of the switch you want lol, when the switch is on your character is always the character you setted, if it off you can change the appearance or the other group member can be leader too


Thanks, that's awesome! Thank you for the quick reply and everything.

This issue is now [Solved].

This post has been edited by TheDrifter: Apr 16 2012, 10:05 AM
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 11:06 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker