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.

RGSS Show Choices question

Greetings to all! Got a question concerning the Show Choice event (a.k.a. command_102). Does anyone know if this function returns anything, and if so what does it return?
 
Code:
  #--------------------------------------------------------------------------
  # * Show Choices
  #--------------------------------------------------------------------------
  def command_102
    # If text has been set to message_text
    if $game_temp.message_text != nil
      # End
      return false
    end
    # Set message end waiting flag and callback
    @message_waiting = true
    $game_temp.message_proc = Proc.new { @message_waiting = false }
    # Choices setup
    $game_temp.message_text = ""
    $game_temp.choice_start = 0
    setup_choices(@parameters)
    # Continue
    return true
  end

So it returns false if text is already there, or returns true when processed. Hoped that helped. :s
 
ACK, sorry, but I need to reexplain myself. Sorry for my ignorance.

I'm trying to make a simple reserve party system, where a person can switch different heros in and out. I've decided to write a simple script, and one of the things that I want to do is call the "Show Choices" event to let the player decide which characters to switch.

My actual question is: in the Show Choices classes, does it output the result of what the player chooses, or how do I determine how the Show Choices classes handle the chosen choice?

Again, sorry for my n00b ignorance on the last question. I wrote that question right before a college class.
 
If you are building a script, don't use the show choice command. What you need to use is a custom command window. The shoice command relies heavily on the interpreter class and setting up a RPG::EventCommand array. You would end up having to generate a RPG::EventCommand array with pure script, then running it (the easy part).

I suggest Dubealex's Tutorials, in particular 2 and 3. You can find a link in the useful links in my signature under RGSS Tutorials.
 

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