XP I transfer player to a different map for a manual 'Bestiary', how do I bring the player back to initial position after they exit said 'Bestiary'?

I needed a simple Bestiary (just to function as a diary of some sort) of creatures the player has encountered. None of the Bestiary scripts (I found 5) does what I want it to do - basically just a picture, the creature's name and a few lines of the creature's description. My game is low-combat hence the stats and whatnots that the other Bestiary scripts has were redundant for me.

So I made it as a map with events and sprites, and put it as a common event under an Item (Book). All is well, except I forgot that this is accessible via the menu as an item, and the player could be ANYWHERE when they access it. Now I don't know how to bring the player back out of the book, back to wherever they were ;_;

I don't even know if a scriptlet could help me out of this hole I've dug myself into xD Initially used Trickter's Bestiary Script but I couldn't add more creatures other than the demo one that was included. Perhaps some other brains could help me out, either with my manual Bestiary or with Trickster's script.

1760609083498.png


Many thanks and appreciation ;_;
Hello, when you use your item, you can store into 3 variables the id of the map and position x,y of the player before using the item. Then you can teleport yourself to your custom bestiary map.
1760611137528.png
1760611158085.png

And finally when leaving the map, you can teleport yourself through your variables:
1760611223392.png



EDIT for the script:
I needed a simple Bestiary (just to function as a diary of some sort) of creatures the player has encountered. None of the Bestiary scripts (I found 5) does what I want it to do - basically just a picture, the creature's name and a few lines of the creature's description. My game is low-combat hence the stats and whatnots that the other Bestiary scripts has were redundant for me.
This is doable, a small addon to the script you've provided can remove most of the unwanted data. Is this one below ok?

Ruby:
#==============================================================================
# Trickster's Bestiary 1.1 addon - simple description
#------------------------------------------------------------------------------
# Author: Timtrack
# date: 16/10/2025
# Requires: Trickster's Bestiary 1.1 for RPG Maker XP
#==============================================================================
# Description: removes all battle data from the monster to keep only its name,
# its picture and its description
#==============================================================================
# Installation: put it below the required script
#==============================================================================
# Term of use: no need for credit
#==============================================================================

#==============================================================================
# Window_Bestiary
#==============================================================================
class Window_Bestiary < Window_Base
  #--------------------------------------------------------------------------
  # overwrite method: refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    return if @battler == nil || $game_system.seen[@battler.id] == 0
    # Setup Local Variable battler
    battler = @battler
    # Draw Name
    draw_actor_name(battler, 0, 0)
    # Draw Enemy
    draw_enemy(battler, 0, 32, 176, 176)
    # Draw Description
    draw_battler_description(battler, 0, 192) #352
  end
end #Window_Bestiary

1760612295657.png


I don't even know if a scriptlet could help me out of this hole I've dug myself into xD Initially used Trickter's Bestiary Script but I couldn't add more creatures other than the demo one that was included. Perhaps some other brains could help me out, either with my manual Bestiary or with Trickster's script.
You can add more entries like this:
Ruby:
Description = {
  1 => 'Boo! A Ghost. Always Encountered in a Demo of one of Trickster\'s Scripts.',
  2 => 'blablabla',
  #id => "Description", #the comma is required to put other entries
  }
OH. MY. GOD.
THANK YOU SO MUCH @Timtrack! T^T your add-on script helped so much and got me exactly what I needed! I guess my manual Bestiary is just a backup for now xD

Do you mind if I ask for just a little bit more help on the add-on script? It's just aesthetics, really.
1. If it's possible, can you help me remove the numbers on the left? 001, 002, etc... I'd like it to just be the creature's name, eg: SLIME
2. If it's possible, can the word "Description:" be removed?
3. And lastly, is it possible to center align the description text? Right now they're left-aligned (this is such a small issue but my brain refuses to let go xD)

1760626788063.png


Also, what do you mean "no need to credit" in your add on? I am SO crediting you for helping me! I really appreciate you!
OH. MY. GOD.
THANK YOU SO MUCH @Timtrack! T^T your add-on script helped so much and got me exactly what I needed! I guess my manual Bestiary is just a backup for now xD

Do you mind if I ask for just a little bit more help on the add-on script? It's just aesthetics, really.
1. If it's possible, can you help me remove the numbers on the left? 001, 002, etc... I'd like it to just be the creature's name, eg: SLIME
2. If it's possible, can the word "Description:" be removed?
3. And lastly, is it possible to center align the description text? Right now they're left-aligned (this is such a small issue but my brain refuses to let go xD)

View attachment 351377

Also, what do you mean "no need to credit" in your add on? I am SO crediting you for helping me! I really appreciate you!
Add the following to your addon:

Ruby:
class Window_BestiaryCommand < Window_Selectable
  def draw_item(index)
    enemy_id = $game_system.enemies[index]
    x, y = 4, index * 32
    enemy = $data_enemies[enemy_id]
    name = $game_system.seen[enemy_id] > 0 ? enemy.name : Bestiary::Not_Seen
    self.contents.draw_text(x, y, contents.width, 32, name)
  end
end

And add this to the Window_Bestiary class already provided:

Ruby:
def draw_battler_description(battler, x, y)
  string = Bestiary::Description[battler.id]
  self.contents.draw_wrap_text(x, y, contents.width, 32, string)
end

I can't actually see the "draw_wrap_text" method used in the original script and have no idea where it's coming from, but the fact that it wraps suggests it wouldn't be possible to center-justify it, I'm afraid.
I can't actually see the "draw_wrap_text" method used in the original script and have no idea where it's coming from, but the fact that it wraps suggests it wouldn't be possible to center-justify it, I'm afraid.
After a bit of investigation, the method seems to come from an external library called Method & Class Library 2.1.rsc in folder RSC Hidden Files of the demo of Trickster's Bestiary.

I found the source code of version 2.3 here.

And here is the code of the draw_wrap_text method in Bitmap class:
Ruby:
def draw_wrap_text(x, y, width, height, text)
   # Get Array of Text
   strings = text.split
   # Run Through Array of Strings
   strings.each do |string|
     # Get Word
     word = string + ' '
     # Get Word Width
     word_width = text_size(word).width
     # If Can't Fit on Line move to next one
     x, y = 0, y + height if x + word_width > width
     # Draw Text Memory
     self.draw_text(x, y, word_width, height, word)
     # Add To X
     x += word_width
   end
 end
This basically go to the next line when the text is bigger than the width given.

Here is a second version of the addon, I added @Trihan contributions and give credit to him (if that's okay with you Trihan). I also rewrote the wrap text method to fix a small bug (regarding the x position) as well as allowing other text alignments.

Ruby:
#==============================================================================
# Trickster's Bestiary 1.1 addon - simple description
#------------------------------------------------------------------------------
# Authors: Timtrack, Trihan
# date: 16/10/2025
# Requires: Trickster's Bestiary 1.1 for RPG Maker XP
#==============================================================================
# Description: removes all battle data from the monster to keep only its name,
# its picture and its description
# Added Trihan's contirbutions to remove 'Desription' from the text as well as
# the ids of the monsters from the list.
# Rewrites the draw_wrap_text method from Bitmap to deal with text alignment
#==============================================================================
# Installation: put it below the required script
#==============================================================================
# Term of use: credit is not mandatory
#==============================================================================

module SimpleBestiaryDescription
  ALIGNMENT = 1 #0 for text to the left, 1 for middle, 2 for right
end

#==============================================================================
# Bitmap
#==============================================================================
class Bitmap
  #--------------------------------------------------------------------------
  # overload method: draw_wrap_text -> rewrites the method from Method & Class
  # Library to follow version 2.3 and add text alignment
  #--------------------------------------------------------------------------
  def draw_wrap_text(x, y, width, height, text, align = 0)
   # Get Array of Text
   strings = text.split
   #define a line to draw
   line = ''
   _x = 0 #define a starting relative x
   # Run Through Array of Strings
   strings.each do |string|
     # Get Word
     word = string + ' '
     # Get Word Width
     word_width = text_size(word).width
     _x += word_width
     # If Can't Fit on Line move to next one
     if _x > width
       draw_text(x, y, width, height, line, align)
       _x = word_width
       y += height
       line = word
     else
       line += word
     end
   end
   draw_text(x, y, width, height, line, align) unless line.empty?
 end
end #Bitmap

#==============================================================================
# Window_Bestiary
#==============================================================================
class Window_Bestiary < Window_Base
  #--------------------------------------------------------------------------
  # overwrite method: refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    return if @battler == nil || $game_system.seen[@battler.id] == 0
    # Setup Local Variable battler
    battler = @battler
    # Draw Name
    draw_actor_name(battler, 0, 0)
    # Draw Enemy
    draw_enemy(battler, 0, 32, 176, 176)
    # Draw Description
    draw_battler_description(battler, 0, 192) #352
  end
  #--------------------------------------------------------------------------
  # overwrite method: draw_battler_description
  #--------------------------------------------------------------------------
  def draw_battler_description(battler, x, y)
    string = Bestiary::Description[battler.id]
    self.contents.draw_wrap_text(x, y, contents.width, 32, string, SimpleBestiaryDescription::ALIGNMENT)
  end
end #Window_Bestiary

#==============================================================================
# Window_BestiaryCommand
#==============================================================================
class Window_BestiaryCommand < Window_Selectable
  #--------------------------------------------------------------------------
  # overwrite method: draw_item
  #--------------------------------------------------------------------------
  def draw_item(index)
    enemy_id = $game_system.enemies[index]
    x, y = 4, index * 32
    enemy = $data_enemies[enemy_id]
    name = $game_system.seen[enemy_id] > 0 ? enemy.name : Bestiary::Not_Seen
    self.contents.draw_text(x, y, contents.width, 32, name)
  end
end #Window_BestiaryCommand

Also, what do you mean "no need to credit" in your add on? I am SO crediting you for helping me! I really appreciate you!
My small addon was just removing stuff from a drawing method initially, hence why I did not need credit ahah. This new version is bigger though I still won't require credit for this (but nice if you want to 🙂 ).
After a bit of investigation, the method seems to come from an external library called Method & Class Library 2.1.rsc in folder RSC Hidden Files of the demo of Trickster's Bestiary.

I found the source code of version 2.3 here.

And here is the code of the draw_wrap_text method in Bitmap class:
Ruby:
def draw_wrap_text(x, y, width, height, text)
   # Get Array of Text
   strings = text.split
   # Run Through Array of Strings
   strings.each do |string|
     # Get Word
     word = string + ' '
     # Get Word Width
     word_width = text_size(word).width
     # If Can't Fit on Line move to next one
     x, y = 0, y + height if x + word_width > width
     # Draw Text Memory
     self.draw_text(x, y, word_width, height, word)
     # Add To X
     x += word_width
   end
 end
This basically go to the next line when the text is bigger than the width given.

Here is a second version of the addon, I added @Trihan contributions and give credit to him (if that's okay with you Trihan). I also rewrote the wrap text method to fix a small bug (regarding the x position) as well as allowing other text alignments.

Ruby:
#==============================================================================
# Trickster's Bestiary 1.1 addon - simple description
#------------------------------------------------------------------------------
# Authors: Timtrack, Trihan
# date: 16/10/2025
# Requires: Trickster's Bestiary 1.1 for RPG Maker XP
#==============================================================================
# Description: removes all battle data from the monster to keep only its name,
# its picture and its description
# Added Trihan's contirbutions to remove 'Desription' from the text as well as
# the ids of the monsters from the list.
# Rewrites the draw_wrap_text method from Bitmap to deal with text alignment
#==============================================================================
# Installation: put it below the required script
#==============================================================================
# Term of use: credit is not mandatory
#==============================================================================

module SimpleBestiaryDescription
  ALIGNMENT = 1 #0 for text to the left, 1 for middle, 2 for right
end

#==============================================================================
# Bitmap
#==============================================================================
class Bitmap
  #--------------------------------------------------------------------------
  # overload method: draw_wrap_text -> rewrites the method from Method & Class
  # Library to follow version 2.3 and add text alignment
  #--------------------------------------------------------------------------
  def draw_wrap_text(x, y, width, height, text, align = 0)
   # Get Array of Text
   strings = text.split
   #define a line to draw
   line = ''
   _x = 0 #define a starting relative x
   # Run Through Array of Strings
   strings.each do |string|
     # Get Word
     word = string + ' '
     # Get Word Width
     word_width = text_size(word).width
     _x += word_width
     # If Can't Fit on Line move to next one
     if _x > width
       draw_text(x, y, width, height, line, align)
       _x = word_width
       y += height
       line = word
     else
       line += word
     end
   end
   draw_text(x, y, width, height, line, align) unless line.empty?
 end
end #Bitmap

#==============================================================================
# Window_Bestiary
#==============================================================================
class Window_Bestiary < Window_Base
  #--------------------------------------------------------------------------
  # overwrite method: refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    return if @battler == nil || $game_system.seen[@battler.id] == 0
    # Setup Local Variable battler
    battler = @battler
    # Draw Name
    draw_actor_name(battler, 0, 0)
    # Draw Enemy
    draw_enemy(battler, 0, 32, 176, 176)
    # Draw Description
    draw_battler_description(battler, 0, 192) #352
  end
  #--------------------------------------------------------------------------
  # overwrite method: draw_battler_description
  #--------------------------------------------------------------------------
  def draw_battler_description(battler, x, y)
    string = Bestiary::Description[battler.id]
    self.contents.draw_wrap_text(x, y, contents.width, 32, string, SimpleBestiaryDescription::ALIGNMENT)
  end
end #Window_Bestiary

#==============================================================================
# Window_BestiaryCommand
#==============================================================================
class Window_BestiaryCommand < Window_Selectable
  #--------------------------------------------------------------------------
  # overwrite method: draw_item
  #--------------------------------------------------------------------------
  def draw_item(index)
    enemy_id = $game_system.enemies[index]
    x, y = 4, index * 32
    enemy = $data_enemies[enemy_id]
    name = $game_system.seen[enemy_id] > 0 ? enemy.name : Bestiary::Not_Seen
    self.contents.draw_text(x, y, contents.width, 32, name)
  end
end #Window_BestiaryCommand


My small addon was just removing stuff from a drawing method initially, hence why I did not need credit ahah. This new version is bigger though I still won't require credit for this (but nice if you want to 🙂 ).
I have the same ethos as you: credit is nice but not necessary. I appreciate you including me. ^_^
thank you @Timtrack and @Trihan for the awesome help! I really appreciate this! You bet your names are gonna be credited xD

That being said, can I be a little greedy and ask for one more tiny help? >.< also description-related xD i guess i love descriptions... here please 😅

Original thread: https://forums.rpgmakerweb.com/threads/i-transfer-player-to-a-different-map-for-a-manual-bestiary-how-do-i-bring-the-player-back-to-initial-position-after-they-exit-said-bestiary.180578/