CODE
char = get_character(0)
$event_furnid[ev_id] = 1
char.character_name = '!Cabinets'
char.character_index = $event_furnid[ev_id] - 1
char.through = false
$game_party.gain_item($event_itemid[ev_id], 1)
$event_itemid[ev_id] = 105
$game_party.gain_item($event_itemid[ev_id], -1)
$game_map.need_refresh = true
That's what my script call looks like. I added the $event_itemid and furnid myself. They initialize at 0.
itemid returns the right number for the item id I want removed/added. But the item doesn't get removed or added. Sometimes I use 0 for the item ID to tell it don't take any items as well, but I doubt that's a problem.
So is there anything in my script call that's causing this problem? I've had problems with getting the charset to change through script calls as well (it works now for whatever reason)
The point of this is to let you place an item down in a spot and remove that item. It cycles through various items to do this, so as you switch out items it gives you back the item you're changing from and puts down the next item in the list.
This post has been edited by Titanhex: Jan 12 2012, 01:15 PM