Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: jayje on August 09, 2010, 07:39:12 am

Title: [RESOLVED]SHOULD BE EASY
Post by: jayje on August 09, 2010, 07:39:12 am
I'm looking to change a monster's battler graphic. I'm not transforming it, just change it, i tried using@data_enemies[1].battler_name, but it didn't work. any ideas or did i mess up somewhere?

Title: Re: [XP]SHOULD BE EASY
Post by: Blizzard on August 09, 2010, 07:45:48 am
Make a copy of the enemy with a different graphic and transform it into that one.
Title: Re: [XP]SHOULD BE EASY
Post by: jayje on August 09, 2010, 09:33:33 am
i know THAT :haha:. i wanted to change the graphic because i have a boss that's a clam and every so often it goes into it's shell and is impervious to attack then comes out of the shell. i don't want to do the whole transform thing because that would make it a WHOLE other monster and i would have to more steps(making variables that set the two monsters hp, sp, etc when they change) than i'd want to make that work. that's why i was looking for a simple graphice change code to change the battler and give the boss a status change.
Title: Re: [RESOLVED]SHOULD BE EASY
Post by: Blizzard on August 09, 2010, 12:14:06 pm
The stats stay the same when you transform a monster. If the only difference  between two monsters is the graphic, then you virtually only change the graphic when you transform from one to another.
Title: Re: [RESOLVED]SHOULD BE EASY
Post by: G_G on August 09, 2010, 05:02:57 pm
Does the current HP stay the same as well?
Title: Re: [RESOLVED]SHOULD BE EASY
Post by: Blizzard on August 09, 2010, 05:24:55 pm
Yes. *points to Game_Enemy#transform*

  def transform(enemy_id)
   @enemy_id = enemy_id
   @battler_name = $data_enemies[@enemy_id].battler_name
   @battler_hue = $data_enemies[@enemy_id].battler_hue
   make_action
 end


In fact, Game_Enemy#transform does exactly the thing jayle was trying to do.