I have an event that's supposed to change depending on how much <item name>s the player has in his inventory and it's causing an error in one of the main scripts.
I'm getting it no matter what I set the item to, whether it's an RTP item or a custom one.
Spoiler for Error details:
Script 'Game Interpreter' line 750: NoMethodError occurred.
undefined method '' for nil:NilClass
The line referenced:
when 3 # Item
value = $game_party.item_number($data_items[@params])
actor = $game_actors[@parameters] #THIS ONE
actor = $game_actors[@params]
The event command causing the error:
@>Control Variables: [0015: Milk Possessed] = [Milk] in Inventory
Any help solving this will be hugely appreciated :)