- Joined
- Sep 15, 2017
- Messages
- 63
- Reaction score
- 13
- First Language
- Telepathy
- Primarily Uses
- RMVXA
I'm trying to use this script but I get an error:
Script 'Galv's_Shop_UPgrade 2.7' line 379:
NoMethodError occured
undefined method '[]' for nil:NilClass
This is an excerpt from the script:
376 alias galv_shopkeeper_scene_shop_prepare prepare
377 def prepare(goods, purchase_only)
378 galv_shopkeeper_scene_shop_prepare(goods, purchase_only)
379 return if $game_system.shop_stock[$game_system.shop_selected].nil?
380 stock_change
end
I don't really understand why I get this error.
I downloaded the demo and it works perfectly fine but it doesn't work in my game (I even tried copying and pasting the exact same event with the same pictures for testing but I get the same error).
The other scripts I have are (in this order):
Galv's Jump Ability
Modern Algebra's Quest Journal
TheoAllen's Fog of War
Yanfly's Parallax Block
V.M of D.T's Enemy HP bars 2.9
Galv's Shop Upgrade 2.8
Does anyone have any suggestions?
My scripting knowledge is very limited and I only studied some basics of python.
BTW, the script I'm using is 2.8 but the DEMO is 2.7 so I have already tried using 2.7 but I get the same error.
Check the spoiler for the full script!
My needs:
I actually don't need the shopkeeper to change expression so I don't care about that.
I also don't care about the shop remembering how many items are sold (0 is for infinity) so I don't care about that option either.
To me what's important is the graphic so people can see a beautiful shop, its items and their effect on the party.
Thanks in advance!
Link to Galv's script https://galvs-scripts.com/galvs-shopkeeper-graphics/
Script 'Galv's_Shop_UPgrade 2.7' line 379:
NoMethodError occured
undefined method '[]' for nil:NilClass
This is an excerpt from the script:
376 alias galv_shopkeeper_scene_shop_prepare prepare
377 def prepare(goods, purchase_only)
378 galv_shopkeeper_scene_shop_prepare(goods, purchase_only)
379 return if $game_system.shop_stock[$game_system.shop_selected].nil?
380 stock_change
end
I don't really understand why I get this error.
I downloaded the demo and it works perfectly fine but it doesn't work in my game (I even tried copying and pasting the exact same event with the same pictures for testing but I get the same error).
The other scripts I have are (in this order):
Galv's Jump Ability
Modern Algebra's Quest Journal
TheoAllen's Fog of War
Yanfly's Parallax Block
V.M of D.T's Enemy HP bars 2.9
Galv's Shop Upgrade 2.8
Does anyone have any suggestions?
My scripting knowledge is very limited and I only studied some basics of python.
BTW, the script I'm using is 2.8 but the DEMO is 2.7 so I have already tried using 2.7 but I get the same error.
Check the spoiler for the full script!
My needs:
I actually don't need the shopkeeper to change expression so I don't care about that.
I also don't care about the shop remembering how many items are sold (0 is for infinity) so I don't care about that option either.
To me what's important is the graphic so people can see a beautiful shop, its items and their effect on the party.
Thanks in advance!
Link to Galv's script https://galvs-scripts.com/galvs-shopkeeper-graphics/
Last edited:
