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 need help changing something, please help

Alright, Should be easy but I'm kinda slow. Here's what I need changed:

Code:
 

  #-----------------------------------------------------------

  # Exit Battle Information

  #-----------------------------------------------------------

  # This section tells the battle interpreter how and where to return to the map.  

  # This can be useful to know, whether you should return to the position in which

  # you called the battle from or not.  The settings are as follows:

  # [

  #   Return to calling map and position(True, False),

  #   Goto Map_ID(only used if first if false),

  #   Return to [X, Y] on specified map, 

  #   Return direction

  # ]

  #-----------------------------------------------------------

  def self.battle_exit_info(map_id)

    case map_id

    when 1; return [true, 1, [$game_player.x,$game_player.y], $game_player.direction]

    else; return [true, 1, [1,1], 2]

    end

  end

end

 

 

 

Alright, Now according to the istructions on top, how do I change it to where, for example, after a battle on Map 1 it takes me to map 2, and whatever position??

And I don't want to change this for EVERY map, I just want this to effect 1 map.
 
when 1; return [false, 2, [x,y], direction]
else; return [true, 1, [$game_player.x,$game_player.y], $game_player.direction]

 
replace x,y with the position you want. ex:   [12,5]
replace direction with the direction you want to face. (look at the number pad for guidance)
 
  8
4   6
  2
 

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