- Joined
- Oct 13, 2013
- Messages
- 102
- Reaction score
- 34
- First Language
- English
- Primarily Uses
I've been working on a game and, for the most part, I've been able to fix the problems I've encountered after a lot of trial and error. But this time, I think I'm stuck. 
So, in my game, there's a point where the Player must go to a party. In order to go to the party, the Player must have a Tuxedo equipped, which also comes with some other armours such as Cufflinks and whatnot. The outfit is put on by default, however, there's box of clothing where the Player is allowed to change back into the regular armour, and vice versa. It was working fine, but then I added Yanfly's Ace Equip Engine (http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/ace-equip-engine/) to give the Player an extra Accessory slot.
Now here's the problem. When play testing, I go to the box of clothing and change out of the tuxedo. All is well and good, apart from the Player having to re-equip their previous items. But, when I try and change back into the Tuxedo again, the game breaks, with a window saying the following...
"Script 'Game_Actor' line 146: NoMethodError occured.
undefined method 'is_nil?' for nil:NilClass"
I have absolutely no knowledge of script coding and I've searched and searched only to find that no one else has ever had this problem. If anyone can give me any advice on how to fix this, I would greatly appreciate it.
(I have no idea whether or not this information is important, but I'll put it in anyway. The Tuxedo is set to Fix Equip all the slots except the Accessory slots. I put this information into both the Feature's section of the armour's Database and the Note section, as the tutorial that Yanfly put up said. Now, the box of clothing is programed to take off the equipment, take it out of the inventory, and change the player graphic. And the problem only happens when I try and put the tux back on after first changing out of it. I hope this helps someone to understand why my game is doing this.)

So, in my game, there's a point where the Player must go to a party. In order to go to the party, the Player must have a Tuxedo equipped, which also comes with some other armours such as Cufflinks and whatnot. The outfit is put on by default, however, there's box of clothing where the Player is allowed to change back into the regular armour, and vice versa. It was working fine, but then I added Yanfly's Ace Equip Engine (http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/ace-equip-engine/) to give the Player an extra Accessory slot.
Now here's the problem. When play testing, I go to the box of clothing and change out of the tuxedo. All is well and good, apart from the Player having to re-equip their previous items. But, when I try and change back into the Tuxedo again, the game breaks, with a window saying the following...
"Script 'Game_Actor' line 146: NoMethodError occured.
undefined method 'is_nil?' for nil:NilClass"
I have absolutely no knowledge of script coding and I've searched and searched only to find that no one else has ever had this problem. If anyone can give me any advice on how to fix this, I would greatly appreciate it.
(I have no idea whether or not this information is important, but I'll put it in anyway. The Tuxedo is set to Fix Equip all the slots except the Accessory slots. I put this information into both the Feature's section of the armour's Database and the Note section, as the tutorial that Yanfly put up said. Now, the box of clothing is programed to take off the equipment, take it out of the inventory, and change the player graphic. And the problem only happens when I try and put the tux back on after first changing out of it. I hope this helps someone to understand why my game is doing this.)
Last edited by a moderator: