Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
[VXA] [REQUEST] event graphics changer
Main Menu
  • Welcome to The RPG Maker Resource Kit.

[VXA] [REQUEST] event graphics changer

Started by zhein04, March 26, 2012, 06:22:14 PM

0 Members and 1 Guest are viewing this topic.

zhein04

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

Illumination™


zhein04

is there a way that i can use call script to do that?

Illumination™

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?

zhein04

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?

Illumination™

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.