Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Ace] Show items from all party members during key item selection
class Window_KeyItem < Window_ItemList
def make_item_list
@data = []
$game_party.members.each {|mem|
@data.concat(mem.all_items.select {|item| include?(item) })
}
@data.uniq!
@data.push(nil) if include?(nil)
end
def enable?(item)
true
end
def draw_item_number(rect, item)
num = $game_party.members.inject(0) {|r, mem| r += mem.item_number(item) }
draw_text(rect, sprintf(":%2d", num), 2)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.