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.
[Resolved] Change actor graphic Rememberer

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 75
RMRK Junior
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?
« Last Edit: March 18, 2011, 11:01:11 AM by Dimosthennis »
MrD

**
Rep:
Level 71
RMRK Junior
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?)

**
Rep: +0/-0Level 75
Hello everyone ^_^
Couldn't this be done with variables and conditional branches? Or am I missing something?
RPMG2k forever!

***
Rep:
Level 82
IT ALL ENDED.
Hiko is right, this could easily be done via eventing

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Randomizer - GIAW 11Gold - GIAW 11 (Hard)Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Programming)2012 Best RPG Maker User (Mapping)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Kindest Member2011 Best Veteran2010 Most Deserving Of A Promotion2010 Best RPG Maker User (Technical)
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.




**
Rep: +0/-0Level 75
RMRK Junior
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.
« Last Edit: March 15, 2011, 01:24:24 PM by Dimosthennis »
MrD

**
Rep:
Level 71
RMRK Junior
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...

Code: [Select]
#==============================================================================
# ** 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.

**
Rep: +0/-0Level 75
RMRK Junior
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

**
Rep:
Level 71
RMRK Junior
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.

**
Rep: +0/-0Level 75
RMRK Junior
I am not a good Infomation teller....

Sorry.  :(
MrD