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.

Having a problem with UMS script.

I'm having a problem with the advanced "Show Choices" option. The script line I'm using in the event is:

$game_temp.num_choices = 8

I follow this with a series of conditional branches, each asking if actors 2-8 are in the group. If an actor is in the group it adds a "Show Choices" with that actors name as the only choice. This is repeated for seven actors based on if they are in the group or not. I tested it on a smaller scale simply using two "Show Choices" and each only having one choice entered, and that worked. Am I just having too many choices? The error code that comes up when I test is:

Script 'UMS' line 663: NoMethodError occured.
undefined method 'code' for nil:NilClass

Line 663 reads:

      if @list.code == 102

Let me know if anymore details are needed. Thanks in advance for any help.
 
Where did you put the UMS script?
You should put your UMS right above the Main...

UMS
Main

Do not insert any other scripts between them.

Those errors occurs after you opened a scene -in my case it's Party Change Scene- then you talk to anyone, you met in the game, anything, the point is you call an event with "Show Text/Show Choices" option.

I hope this helps...
 
I just checked and there was one script in between it and main, but after I moved it, I still had the exact same error in the exact same place. What I'm trying for is something like the "Private Action" in Star Ocean 2: Second Story for the PSX, but with a few more options. When entering the town it asks if you want to split up and gives the choices Yes and No. That works, I can say no and walk around like normal. If I say yes, it brings up the next part that asks if you want to take along any other characters besides the main character. After pressing the action button to go to the next message is when the error occurs. Had it worked, the event would then go to 7 different conditional branches, one for each character besides the main. Each branch checks if a switch I made unique to each character is on. If the switch is on, then it should add that character as a choice to take along. Unfortunately, while explaining this I realized I'll have to add a few more things to make it loop back and allow another character to be chosen, so hopefully that won't effect the error should I be able to fix it.
 

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