Skip to content

Instantly share code, notes, and snippets.

@HimeWorks
Created April 6, 2016 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HimeWorks/778102940f8c70ecf7f38faad4e56cf2 to your computer and use it in GitHub Desktop.
Save HimeWorks/778102940f8c70ecf7f38faad4e56cf2 to your computer and use it in GitHub Desktop.
[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