I have in my project a script by Hime that give to every actor a personal inventory, also in battle.
When i use an item called "bomb" that damages every enemy it pops an error: "undefined method 'last item' for nil:NilClass", but if the item is single target it goes fine. The script is this one.
Do you know where is the error?
If you needthe other scripts tell me.
Thanks.
EDIT: If I comment this line:
It seems to go well. Is this line necessary?
When i use an item called "bomb" that damages every enemy it pops an error: "undefined method 'last item' for nil:NilClass", but if the item is single target it goes fine. The script is this one.
It add the "multiple inventory" to the battle.
Do you know where is the error?
If you needthe other scripts tell me.
Thanks.
EDIT: If I comment this line:
Code:
BattleManager.actor.last_item.object = @item