Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Party Swapping problem

I've been using Legacy's menu script http://www.rmxp.org/forums/showthread.php?t=4059
and I have a problem with the party switcher it has. My game allows a max of 5 party members. And when you have 4 party members, and get the 5th member and try to use the party switcher, i get this error

Script 'scene 1' line 2164: NoMethodError occured
undefined method 'size' for nil'Nilclass

Line 2164 says: for i in 0...$game_party.reserve.size

Help? :s I'm a noob when it comes to scripting.

Oh and..when I run a playtest and start a new game and use events to add 4 more party members...the party swapper works...it just doesnt work in the actual game.

http://i203.photobucket.com/albums/aa25 ... roblem.png[/IMG]
see? 5 party members. But when you press SHIFT on this screen to activate the party swapper..i get the error
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top