Chaos Project

RPG Maker => Event Systems => Event System Troubleshooting => Topic started by: G_G on March 07, 2010, 11:00:17 am

Title: Show Animation on Event via Script Call (Resolved)
Post by: G_G on March 07, 2010, 11:00:17 am
Is it possible to show an animation on an event by using a script call? I doubt this belongs in the Event System board but it has to do with my event system I'm working on.

The command itself won't do for the fact you have to specify the event id. I need a different way of doing this.

EDIT: Found it myself. :P if anyone wants to know use this
$game_map.events[event id].animation_id = animation_id
Title: Re: Show Animation on Event via Script Call (Resolved)
Post by: (Hexamin) on March 07, 2010, 01:05:25 pm
Oooo, I was actually lookin' for this a while ago, very useful.  Good job figurin it out.  *lvl*
Title: Re: Show Animation on Event via Script Call (Resolved)
Post by: Tyril132 on March 24, 2010, 12:35:35 am
I've been fiddling with something similar... I'm trying to change an event's appearance based on either a game variable or the global $game_party.actors[0].id variable.

I already have the current party's actors saved into variables via a common script so that I can pass their names / actor IDs to events easily, the natural extension of this was to be able to make events dynamically appear as characters that are in your party.

I'm not much of a scripter, so I'll use what you found as a springboard and see if I can't come up with it on my own... it's got to be doable.
Title: Re: Show Animation on Event via Script Call (Resolved)
Post by: Feildmaster on March 24, 2010, 04:52:06 am
Quote from: Tyril132 on March 24, 2010, 12:35:35 am
I've been fiddling with something similar... I'm trying to change an event's appearance based on either a game variable or the global $game_party.actors[0].id variable.

I already have the current party's actors saved into variables via a common script so that I can pass their names / actor IDs to events easily, the natural extension of this was to be able to make events dynamically appear as characters that are in your party.

I'm not much of a scripter, so I'll use what you found as a springboard and see if I can't come up with it on my own... it's got to be doable.
You "should" post this in a new topic
Title: Re: Show Animation on Event via Script Call (Resolved)
Post by: Tyril132 on March 24, 2010, 07:14:55 am
I had considered it, but after quite a while spent beating my head on the wall, I came up with the answer on my own.

$game_map.events[event_id].character_name = $game_party.actors[id].character_name


worked after declaring the necessary class.

Unfortunately, it turns out that manipulating the events to have different potential animations based on which party member is using that event will probably be way more trouble than its worth. I was wanting to condense the basic syntax down into a common event I could call and then modify for cut-scenes, but it looks like I'd have to code them by hand. On the plus side, I'm suddenly much more familiar with the basic elements of Ruby.

...But thanks anyway.  :^_^':