Greetings, and thanks for taking your time to read through this!
I have following 'problem': I am trying to change an event's graphic at runtime depending on the current in-game time.
I already thought about simply using a second event page, but the variables that the graphic depends on are too 'complex' to put into the conditions. I am also well aware that there is a premade function for that, but I would really prefer to use my own script for it.
Ideally, I would be looking for a method like:
#This is pseudo code! It WON'T work and solely exists to represent my idea of how the command could look
$game_map.changeEventSprite(event_id, sourcesheet, sprite_id)
#where:
# event_id: simply the ID of the event (wow)
# sourcesheet: name of the file I take the sprite from
# sprite_id: ID of the sprite on the sourcesheet that will be used
There probably already is a thread about this, but I couldn't find it. So if any of you know of an existing one that concerns the same topic, please provide me with a link ^^
EDIT: To prevent confusion, I am only looking for a method to change the Sprite. I already scripted the required flow-control.
EDIT: I have found the method I was looking for:
$game_map.events[id].set_graphic("character_name", character_index)
I would greatly appreaciate any solutions or workarounds! ^^
~Crowley
I have following 'problem': I am trying to change an event's graphic at runtime depending on the current in-game time.
I already thought about simply using a second event page, but the variables that the graphic depends on are too 'complex' to put into the conditions. I am also well aware that there is a premade function for that, but I would really prefer to use my own script for it.
Ideally, I would be looking for a method like:
#This is pseudo code! It WON'T work and solely exists to represent my idea of how the command could look
$game_map.changeEventSprite(event_id, sourcesheet, sprite_id)
#where:
# event_id: simply the ID of the event (wow)
# sourcesheet: name of the file I take the sprite from
# sprite_id: ID of the sprite on the sourcesheet that will be used
There probably already is a thread about this, but I couldn't find it. So if any of you know of an existing one that concerns the same topic, please provide me with a link ^^
EDIT: To prevent confusion, I am only looking for a method to change the Sprite. I already scripted the required flow-control.
EDIT: I have found the method I was looking for:
$game_map.events[id].set_graphic("character_name", character_index)
I would greatly appreaciate any solutions or workarounds! ^^
~Crowley