Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Request: Scripting Event Graphic changes

I'm sorry if this is actually very easy, but I've been studying phylomortis' RGSS section religiously and I can't find the method to script an event graphic change. I gather it has something to do with the Game_Character.character_name variable but I can't quite put my finger on it.

Say for example Event1 (event_id=1) is a nul graphic, and I wanted to change it to the first fighter graphic "001-Fighter01.png"; how would I script that assuming I'm calling the $game_map.events array for my event list?

It's one of those custom battle system things that I don't feel like using events for.

thanks in advance,
-A
 
Add this below class Game_Character
Code:
  attr_accessor :character_name

Now you can use
Code:
$game_map.events[event_id].character_name = 'Filename'


This is in the FAQ under Q. How Do you Change Event Graphics?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top