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.

Just a few small questions.

A) Is there a way to make it so that certain options aren't available in combat. Specifically, I want one character who can only use "Item" and "Defend", and others who can only use "Attack" and "Skill". Is there a way to make this happen?

B) Is there a way to get rid of the "Equip" tab in the menu? I don't want to use any equipment in this game.

C) Is there a way to make it so that enemies never attack a certain character?

D) Is there a way to make it so that you lose the battle even if one of your characters is left alive?

Basically what I'm doing is setting up a monster training game, and I want the Trainer to be one character slot and monsters to be the other three. The trainer can use Items and Defend (which will be switched to "wait", since no one ever attacks him). The Monsters can Attack and use Skills, but not Items. I'd like it so that the enemies never attack the trainer and you lose when your three monsters are dead.

I was told that all of these would be simple scripting changes, but right now I have 0 experience with scripting. Thank you for any help.
 
For B, add this above main in a new script.
Code:
class Scene_Menu
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  def main
    # Make command window
    s1 = $data_system.words.item
    s2 = $data_system.words.skill
    s3 = "Status"
    s4 = "Save"
    s5 = "End Game"
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5])
    @command_window.index = @menu_index
    # If number of party members is 0
    if $game_party.actors.size == 0
      # Disable items, skills, equipment, and status
      @command_window.disable_item(0)
      @command_window.disable_item(1)
      @command_window.disable_item(2)
      @command_window.disable_item(3)
    end
    # If save is forbidden
    if $game_system.save_disabled
      # Disable save
      @command_window.disable_item(4)
    end
    # Make play time window
    @playtime_window = Window_PlayTime.new
    @playtime_window.x = 0
    @playtime_window.y = 224
    # Make steps window
    @steps_window = Window_Steps.new
    @steps_window.x = 0
    @steps_window.y = 320
    # Make gold window
    @gold_window = Window_Gold.new
    @gold_window.x = 0
    @gold_window.y = 416
    # Make status window
    @status_window = Window_MenuStatus.new
    @status_window.x = 160
    @status_window.y = 0
    # Execute transition
    Graphics.transition
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    # Dispose of windows
    @command_window.dispose
    @playtime_window.dispose
    @steps_window.dispose
    @gold_window.dispose
    @status_window.dispose
  end
end
 
A) Yes, with something like: (just an example)
Code:
if @active_battler == 2
  @actor_command_window.disable_item(0)
  @actor_command_window.disable_item(1)
end
D) Can you do it with "End Battle" (don't sure of the name)?
 
Thank you! I'll be trying these out later today. I forsee one further question: where exactly do I put these?

add this above main in a new script.

I'm sorry, I'm not following those instructions exactly.

And for the battler menu one, where should I place that code?

Thanks again!
 

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