Main Menu
  • Welcome to The RPG Maker Resource Kit.

[Resolved] Change actor graphic Rememberer

Started by Dimosthennis, March 14, 2011, 06:54:52 PM

0 Members and 1 Guest are viewing this topic.

Dimosthennis

Hello.
I am looking for a script that allows my actor's graphics to remember it's graphics. So I can change them in to something else and use the script to change them to thier previous graphic. Like a shapeshift.
Is that possble to make?
MrD

brewmeister

Yep, it's possible. But exactly how do you want it to work?
When you change to a new character image, will you always change back to the original?  (i.e. the graphic set in the database?)

hikomarukun

Couldn't this be done with variables and conditional branches? Or am I missing something?
RPMG2k forever!

Pokey

Hiko is right, this could easily be done via eventing

Zylos

Possible, yes. Easily, perhaps not. It all depends on how the changes are done. It could be that the player has a large amount of control over how the character appears and he wants the option of undoing the recent most change.

For the most part though, I'd prefer manually changing the graphics myself.




Dimosthennis

#5
Yes it is Possble to change it with Variables. but not if you got 73 diffrent char graphics to chose from... I have tried it in many diffrent ways.

The way I would like the script to work is when you have change the graphic in to a Cat. then the script remembers the previous graphic.
So when i use the script common in a Commen event to change the player's graphics in to the previous graphic.

I think I made it only more confusing -.-

What I am making is a druid in about 4 diffrent forms. and I would like that the graphics change into the form in game. that is the easy part with an event. but to undo that is harder if you got 73 diffrent char spirits/graphics.
MrD

brewmeister

There are also 73 different solution to this problem. (that's an estimate, of course)

actor data from the database, including the originally assigned character graphic, is stored in an object called $data_actors
Your actor data, in game, is stored in an array of actors called $game_actors.

This makes it easy to look back at the database & reset the graphic to it's original state. That is the reason I asked you to verify that you want to return to the original state before changing to another 'shifted shape'.
so, you would go from Ralph -> Cat -> Ralph,  then later Ralph -> Giraffe -> Ralph...

Paste this above main...

#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  Reset Graphics to original from database
#==============================================================================

class Game_Actor
  #--------------------------------------------------------------------------
  # * Reset Graphics
  #--------------------------------------------------------------------------
  def reset_graphics
    @character_name = $data_actors[@actor_id].character_name
    @character_index = $data_actors[@actor_id].character_index
    @face_name = $data_actors[@actor_id].face_name
    @face_index = $data_actors[@actor_id].face_index
    $game_player.refresh
  end
end


Now use:   $game_actors[1].reset_graphics    to change the graphic back to it's original state.

Dimosthennis

It worked but it takes the previous graphic from the data base and not the chosen graphic that you chose in game :(

Unless you know how to change the actor data from the database in game, not just an reset.
Or if you know how to undo to the graphic before it changed to an animal. like 'Ctrl+z'

tell me if i miss understand anything here -.-

MrD

brewmeister

So you have a character selection system where the user selects their starting character graphic??

AND.... you want to shape-shift & return to that graphic?

That would have been good information to share in your request.

Dimosthennis

I am not a good Infomation teller....

Sorry.  :(
MrD