The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: elfyelf on December 02, 2007, 03:16:49 PM

Title: Adding a money option on Ring Menu(Kypep)
Post by: elfyelf on December 02, 2007, 03:16:49 PM
First i would say for you to copy the ring menu posted by Kypep, and read to what it says to do
with the lines 16 - 21, here is the link.

http://rmrk.net/index.php/topic,8998.msg118066.html#msg118066 (http://rmrk.net/index.php/topic,8998.msg118066.html#msg118066)


1. Go to line 21 and press "Enter" to add a free line, type this into it:

ICON_GOLD = RPG::Cache.icon("040-Item09") # Adds a money icon on it



2A. Go to line 47 and press enter to add a new line, type this into it:

s7 = "Money"

2B. Go to line 49 and at the end of s6 put s7,.

2C. Go to line 50 and put 7 instead of 6.

2D. Go to line 52 and at the end of ICON_EXIT, add this:

ICON_GOLD,

2E. Go to line 53 and add another false right after the last one.

3. Go to line 396 and press "Enter" to make a new line, add this to the the line:

#==========================================================
when 6 # when the money icon is clicked.
    @gold_window = Window_Gold.new #makes a new gold window.
    @gold_window.x = 0 #the x cordinate of window.
    @gold_window.y = 0 #the y cordinate of window.
        Graphics.freeze # when out of menu.
    @gold_window.dispose #exits out of money window.
#==========================================================

3A. This whole thing should go from line 397 - 404, also include the spaces.

Yes I know you can browse through the other things but just cancel everything after clicking the money icon or browse throught
what ever you where doing.

Here's a screenshot from my game.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi119.photobucket.com%2Falbums%2Fo144%2Felfy99803%2Fsec1.jpg&hash=ddaed9dfb740f8404599cb7d117d4ce4ad66681d)
Money Window Opened.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi119.photobucket.com%2Falbums%2Fo144%2Felfy99803%2Fsec2.jpg&hash=dcaa6c03d1fa78162cc809f33de484702c2126a2)
Yes this is the same game as the aegis demo in the new projects.

Hope you understood and thank you for reading this.
Title: Re: Adding a money option on Ring Menu(Kypep)
Post by: pujeda507 on December 29, 2007, 12:55:56 PM
oye this is useful for me