Show gold and X item in the main menu

Hi, I need to ask, is there a way to display X item in the same place where gold is located in the menu?

My game uses gold to buy most stuffs, but there are some stuffs are only avaiable to get with X item quantity, I put them as Key item, but I want it displayed in the same place where gold is displayed.

Thanks by the help
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

What is X item?  If you want someone to write a script for you, you need to be specific.

You want gold AND this item count displayed together?  Is it only one item, or do you have several of them (ie - several different items that are required to get different things)?
I need both, Gold AND Item # 38 to be displayed in the place where under normal conditions only Gold is showed in the menu

And yeah, it's only this item
#==============================================================================


# ** Window_Gold


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


# This window displays the party's gold.


#==============================================================================


class Window_Gold < Window_Base


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


# * Object Initialization


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


def initialize


super(0, 0, window_width, fitting_height(2))


refresh


end


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


# * Get Window Width


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


def window_width


return 160


end


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


# * Refresh


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


def refresh


contents.clear


draw_currency_value(value, currency_unit, 4, 0, contents.width - 8)


draw_currency_value(itemnumber, " " , 4, 24, contents.width - 8)


draw_icon( $data_items[38].icon_index, contents.width - 24, 24, true)


end


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


# * Get Party Item Numbers 38


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


def itemnumber


$game_party.item_number($data_items[38])


end


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


# Get Item "38" name


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


def itemname


$data_items[38].name


end


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


# * Get Party Gold


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


def value


$game_party.gold


end


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


# Get Currency Unit


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


def currency_unit


Vocab::currency_unit


end


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


# * Open Window


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


def open


refresh


super


end


end
Thanks, it works, but... it's possible to show the icon instead the item name?
i updated the script in the last post
Ok, we're done with this, thanks a lot! it's solved

Original thread: https://forums.rpgmakerweb.com/threads/show-gold-and-x-item-in-the-main-menu.34002/