Hi guys,
Is there a way to call a Common event based on a variable (specifically, the number of items in the player's inventory?)
This is what I have so far but I'm hitting a wall.
I would like to call 'Common event ID 1' when the player has 1 item in their inventory, '2' at 2 items, and so on, up to five. I'd like this to be a script and not a script call, also.
Thank you.
Is there a way to call a Common event based on a variable (specifically, the number of items in the player's inventory?)
This is what I have so far but I'm hitting a wall.
Ruby:
if Input.trigger?(Input::I)
#Summon the Inventory when the 'I' button is pushed.
$game_temp.common_event_id = @item.common_event_id
return
end
I would like to call 'Common event ID 1' when the player has 1 item in their inventory, '2' at 2 items, and so on, up to five. I'd like this to be a script and not a script call, also.
Thank you.