Skip to content

Instantly share code, notes, and snippets.

@jiro4989
Last active January 7, 2020 14:26
Show Gist options
  • Select an option

  • Save jiro4989/4cd3f2e71aaf3c520aa2633ba59592e8 to your computer and use it in GitHub Desktop.

Select an option

Save jiro4989/4cd3f2e71aaf3c520aa2633ba59592e8 to your computer and use it in GitHub Desktop.
var upstream_Game_Party_gainItem = Game_Party.prototype.gainItem;
Game_Party.prototype.gainItem = function (item, amount, includeEquip) {
upstream_Game_Party_gainItem.apply(this, arguments);
if (amount > 0) {
TextLastGet.item = item;
$gameVariables.setValue(1, item.id); // 追加した処理。変数99にアイテムのIDを格納したいのであれば1を99に変更する
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment