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.

Small DMS Change Help Request

I'm attempting to replace the Step Counter on the DMS with a window that will display the map name of the players current location. I'm using the script shown in This thread, as amended in the thread, as a base script to work from.

I have this added above Main and below every other script (excluding a few others that are custom as well... not mine, obviously). In Scene_Menu, I have made the following alterations :

Code:
# Make location window (ALTERED)
    @location_window = Window_Location.new
    @location_window.x = 0
    @location_window.y = 320

This one merely replaces the word 'step' with 'location' from the original, as well as changing it to Window_Location.new.

Code:
# Dispose of windows
    @command_window.dispose
    @playtime_window.dispose
    @location_window.dispose
    @gold_window.dispose
    @status_window.dispose

Same as above for disposal.

Code:
 # Update windows
    @command_window.update
    @playtime_window.update
    @location_window.update
    @gold_window.update
    @status_window.update

Same again for update.

For you coders, it will probably be painfully obvious that this doesn't seem to work. I would most appreciate it if someone could explain to me the changes I need to make, and where to make them. After looking at Mr. Mo's CMS tutorial, I see how to call a window, but I'm not finding where Window_Steps is being changed into @steps_window. If I can find out where that happens, I think I can figure out how to edit the Scene_Menu to call the correct window.

A couple of things I'd forgotten:

Using the SDK v1.5 (tried using 2.1, but two other scripts I'm using aren't compatible with it, so I went back to 1.5) and the Method and Class Library v1.5. Other custom scripts present include Autoscroll v 1.02, Seph's recent CTB battle system, and the UMS script.
 
Resolved. It suddenly occured to me that if I didn't want the Steps counter anyhow, I could overwrite the base Window_Steps script with the Window_Location script, keeping the original window dimensions and class name.

Since this now works, and no additional assistance is required, this thread may be closed and marked Resolved.
 

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