The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: zhein04 on March 26, 2012, 06:22:14 PM

Title: [VXA] [REQUEST] event graphics changer
Post by: zhein04 on March 26, 2012, 06:22:14 PM
basically i script that i want to request is a graphics changer for the event.... usually we use self switch or the move event to change the graphics.... but i want to change it by using a call script... it can be either just change the pattern within the graphics or change the file graphics itself and then choose which pattern to view in that new graphics...

Thanks in advance,
Zhein04
Title: Re: [VXA] [REQUEST] event graphics changer
Post by: Illumination™ on March 26, 2012, 06:25:35 PM
Set move Route > Change graphics...
Title: Re: [VXA] [REQUEST] event graphics changer
Post by: zhein04 on March 26, 2012, 06:48:11 PM
is there a way that i can use call script to do that?
Title: Re: [VXA] [REQUEST] event graphics changer
Post by: Illumination™ on March 26, 2012, 06:59:42 PM
Quote from: zhein04 on March 26, 2012, 06:48:11 PM
is there a way that i can use call script to do that?

Why would you?

And also here is a script:
class Game_Event
attr_accessor:character_name
end
a="001-Fighter01"
$game_map.events[1].character_name=a


Has not been tested so report any problem. Change 1 for other events and "001-Fighter01" with some other charset you want to change to.

Really though, why you want to script this?
Title: Re: [VXA] [REQUEST] event graphics changer
Post by: zhein04 on March 26, 2012, 07:14:24 PM
thats exactly what i need. thanks a lot.. I will be using it for a decoration script i guess.... oh another thing what if i want to change the pattern of it .. i think it's default is the upper left part of the char sheet.. what if i want to use the upper right then?
Title: Re: [VXA] [REQUEST] event graphics changer
Post by: Illumination™ on March 26, 2012, 07:24:07 PM
Put this in a script cause you only need it to run once. Right above main should work.
class Game_Event
attr_accessor:character_name
attr_accessor:pattern
end


Change graphics

a="001-Fighter01"
$game_map.events[1].character_name=a


Change pattern

$game_map.events[1].pattern = 3


You need to change both the 1's to the correct ID. It now sets the pattern to far right. Far left is 0, middle left is 1 and middle right is 2.
If you want something else than the top row, you need to add this:


$game_map.events[1].direction = 2


2 - First row. 4 - Second row. 6 - Third row. 8 - Bottom row.