Hi guys,
I would like to change the graphic of events by direct assigning via a script.
More detailled explanation:
I would like to give the player the opportunity to lay down items on the ground on each map. So I have a bunch of events (arround 30) on each map, which are only waiting for being "layed down". Accordingly they have to change their graphics. I don't want to script for several hundred items fork conditions and manual graphic changings.
So the player can't lay down more than 30 items for each map because there are only 30 events for this purpose on each map.
Then I will include this script in my inventory script. So the player can choose an item which he would like to lay down to the ground. Then an event is chosen and its graphic is changed to the specific item.
Each charset has 16 frames, so I can get 16 items out of one charset.
Thanks for your help!
Cheers
Hugo
EDIT: I have found a similiar thread: http://www.rmxp.org/forums/index.php?topic=29513.0
But unfortunately I don't understand the code which is in the FAQ:
$game_map.events[event_id].character_name = 'filename'
$game_map.events[event_id].character_hue = 0..360
I have written this in my script which I am calling:
$game_map.events[003].character_name = '002-Fighter01'
$game_map.events[003].character_hue = 0..360
It doesn't work
Do I have to change the "character_name" to what?
Thanks for your help!
I would like to change the graphic of events by direct assigning via a script.
More detailled explanation:
I would like to give the player the opportunity to lay down items on the ground on each map. So I have a bunch of events (arround 30) on each map, which are only waiting for being "layed down". Accordingly they have to change their graphics. I don't want to script for several hundred items fork conditions and manual graphic changings.
So the player can't lay down more than 30 items for each map because there are only 30 events for this purpose on each map.
Then I will include this script in my inventory script. So the player can choose an item which he would like to lay down to the ground. Then an event is chosen and its graphic is changed to the specific item.
Each charset has 16 frames, so I can get 16 items out of one charset.
Thanks for your help!
Cheers
Hugo
EDIT: I have found a similiar thread: http://www.rmxp.org/forums/index.php?topic=29513.0
But unfortunately I don't understand the code which is in the FAQ:
$game_map.events[event_id].character_name = 'filename'
$game_map.events[event_id].character_hue = 0..360
I have written this in my script which I am calling:
$game_map.events[003].character_name = '002-Fighter01'
$game_map.events[003].character_hue = 0..360
It doesn't work
Do I have to change the "character_name" to what?
Thanks for your help!