- Jan 7, 2015
- Reaction score
- First Language
- Primarily Uses
So, I've been trying to use select_item_variable_id but that returns the id of the item i need a script call that lets you choose any item or a key item or ideally a key item with a note that I've made. I saw the code $game_message.item_choice but I'm not sure how it works or if it returns the item. Is there a bit of code out there that does what I want?
Class Game_Event def start item = #code here to ask the player what item they want to use and return that item tag, id = item.note =~ "/^<(seed) (\n)>"/i ? [true, $1.to_i] : [nil, nil] if tag plant_id = id else $game_message.add("This item isn't a seed") plant_id = 0 end end end