QUOTE (cometstar @ Dec 15 2011, 12:06 AM)
I want a script to call it to create an even t manually ,which is copied from another mapevent with its command events and give it new graphic or change its ghraphic manually, too
Is this possible ?
I think it's possible, try this script...
sprite = Sprite_Character.new(@viewport1, $game_map.events[id])
if $game_map.events[id] == nil
event = $game_map.events[id].clone
if char_name != nil
event.character_name = char_name
if char_hue != nil
event.character_hue = char_hue
index = $game_map.events.keys.size
$game_map.events[index+1] = event
Call it from script writing
is the id of the event you want to copy;
are the new coordinates;
are what their name say and can be left blank.
creates a copy of Event #1 and places it into coordinates (5,7).
I've not made a complete debug yet, please report any bugs...N.B.
It works ONLY in Scene_Map and in this state doesn't save the new event. If you exit the game and resume it again, the new event will disappear...
actually, you can use this script anywhere, but once you leave the map, events will be reset...
It seems working quite well, although...
Please, let me know if it works...