Does anyone know of a small code that will refresh the character sprite and change it back to what it is in the actors tab of the database? Something I could put in "script" in an event?
thanks
Why not just use an event with the Change Actor Sprite command?
Or is this for a very specific command from another script?
Quote from: Phasedscar on July 12, 2008, 04:49:44 pm
Why not just use an event with the Change Actor Sprite command?
Or is this for a very specific command from another script?
If his hero has multiple graphics, the Change Actor Sprite would fail as it would only work for the first default graphic. For example, you can't use the command if the hero can have multiple looks (Such as maybe some bearded man or a young child). But it would work if a switch, variable, or something along the lines of that is recorded to that choice, then you use the command of that with a conditional.
Use a call script command with:
$game_actors[ID].character_name =
$data_actors[ID].character_name
$game_actors[ID].character_hue =
$data_actors[ID].character_hue
I am using an item as a bike and I am trying to make it to if u use the item, it changes ur graphic but I want it so when you use the item again it gets you off the bike and it changes ur graphic back to the same thing as what it was to the faces thing will work.
But using those line of code I can this error... (the common event im using is under it)
(http://www.fileden.com/files/2007/5/14/1079196/error%20and%20event.png)
You need to change ID to the ID of the actor in the database. xD
is there anyways to make ti like remember the char ID until the char gets off the bike or logs out of the game?
Depends. You could use this instead if it's about the first char in the party:
id = $game_party.actors[0].id
$game_actors[id].character_name =
$data_actors[id].character_name
$game_actors[id].character_hue =
$data_actors[id].character_hue
ok that is fine but still get an error
(http://www.fileden.com/files/2007/5/14/1079196/error%202.png)
Stupid SDK. -_- Add this code under the SDK:
class Game_Actor
attr_accessor :character_name
attr_accessor :character_hue
end
And change the script call to:
id = $game_party.actors[0].id
$game_actors[id].character_name =
$data_actors[id].character_name
$game_actors[id].character_hue =
$data_actors[id].character_hue
$game_player.refresh
I can tell this is some sort of pokemon game...although wouldn't this be simple with events as long as you don't change the character's sprite throughout the game?
the sprite does change thoughout the game but it dosn't matter Blizzard help me yet again
and yes it is a pokemon game...
Most of the time if you say you are making a pokemon game or using netplay (im using both) people wont help u becuz they know too many people give up because it is too hard... so far Blizzard has been the only scripter to really help me and i owe him... alot.
rmxp.org I go there alot but i have gotten nothing from there and people here do try to help here, and my game would be nothing about Blizzard
RMXP.org wont help you unless you build up a huge post count and reputation...
I've been working here for a while, and ever since I got Blizzard's help with the creation of the Chaos Drive system for Chaotic Fury, I've actually been able to work on my game, although I'm still late on a demo I'll have something up soon.