I know what's causing this issue, but not WHY it's causing this issue. The Global Text Codes script by modern algebra is giving me the error
"undefined method 'gsub' for nil:NilClass", and I've found that it's due to a snippet of code I found and edited.
In my game, the item description of a specific item is suppose to update every time it's used via variables, though without this snippet of code, it requires the player to manually refresh the description of the item by viewing another item and coming back. This snippet of code works perfectly fine outside of causing the Global Text Codes script to crash. The crash always occurs after an action, and I've tested it a few times. It doesn't matter what action is taken, it always crashes. As for what the edit was, I simply changed it so that occurs in battle instead of in the menu.
I've also looked into what gsub actuallyis, and considering the nature of the code snippet, I guess I can see why it would crash, but I think it would be better if someone more experienced with ruby helped me out here, because after searching around, I can't really find any solutions, myself.
Thank you in advance.
"undefined method 'gsub' for nil:NilClass", and I've found that it's due to a snippet of code I found and edited.
Ruby:
class Scene_Battle < Scene_Base
alias gam_aakreq_use_item use_item
def use_item
gam_aakreq_use_item
@help_window.refresh
end
end
In my game, the item description of a specific item is suppose to update every time it's used via variables, though without this snippet of code, it requires the player to manually refresh the description of the item by viewing another item and coming back. This snippet of code works perfectly fine outside of causing the Global Text Codes script to crash. The crash always occurs after an action, and I've tested it a few times. It doesn't matter what action is taken, it always crashes. As for what the edit was, I simply changed it so that occurs in battle instead of in the menu.
I've also looked into what gsub actuallyis, and considering the nature of the code snippet, I guess I can see why it would crash, but I think it would be better if someone more experienced with ruby helped me out here, because after searching around, I can't really find any solutions, myself.
Thank you in advance.