Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Location in Menu(Simple Script)
Dorkfr3sh
post Oct 26 2009, 08:01 PM
Post #1



Group Icon

Group: Member
Posts: 2
Type: None
RM Skill: Undisclosed




Intro:
a simple script that tells you your location in menu


CODE
#======================================================================
========
# Location Window by Dorkfr3sh - E-mail:shamar.sabree@yahoo.com
#------------------------------------------------------------------------------
# Adds a simple location window to the menu.
#------------------------------------------------------------------------------
# http://www.rpgrevolution.com/
#==============================================================================

############
# Scene_Menu #
############
class Scene_Menu
alias location_show_scn_mnu_start start
alias location_show_scn_mnu_terminate terminate
def start
location_show_scn_mnu_start
@mapname_window = Window_Mapname.new(0, 272)
end
def terminate
location_show_scn_mnu_terminate
@mapname_window.dispose
end
end
############
# Game_Map #
############
class Game_Map
attr_reader :map_id
def mpname
$mpname = load_data("Data/MapInfos.rvdata")
$mpname[@map_id].name
end
end
###############
# Window_Time #
###############
class Window_Mapname < Window_Base
def initialize(x, y)
super(x, y, 160, WLH + 64)
refresh
end
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Destination:")
draw_icon(153, 100, 2)
self.contents.font.color = normal_color
self.contents.draw_text(4, 28, 120, 32, $game_map.mpname.to_s, 2)
end
end
Go to the top of the page
 
+Quote Post
   
rpgdude
post Nov 1 2009, 05:28 PM
Post #2


Level 1
Group Icon

Group: Member
Posts: 6
Type: Developer
RM Skill: Masterful




dont wrk
Go to the top of the page
 
+Quote Post
   
power200
post Nov 5 2009, 07:09 PM
Post #3


Level 10
Group Icon

Group: Revolutionary
Posts: 155
Type: Writer
RM Skill: Intermediate




QUOTE (rpgdude @ Nov 1 2009, 05:28 PM) *
dont wrk

It works fine. You just need to remove the = signs on top. *sigh* I'll repost the 'working' version..even though it's easily fixable..
[Show/Hide] Script ._.
CODE
#======================================================================
# Location Window by Dorkfr3sh - E-mail:shamar.sabree@yahoo.com
#------------------------------------------------------------------------------
# Adds a simple location window to the menu.
#------------------------------------------------------------------------------
# http://www.rpgrevolution.com/
#==============================================================================

############
# Scene_Menu #
############
class Scene_Menu
alias location_show_scn_mnu_start start
alias location_show_scn_mnu_terminate terminate
def start
location_show_scn_mnu_start
@mapname_window = Window_Mapname.new(0, 272)
end
def terminate
location_show_scn_mnu_terminate
@mapname_window.dispose
end
end
############
# Game_Map #
############
class Game_Map
attr_reader :map_id
def mpname
$mpname = load_data("Data/MapInfos.rvdata")
$mpname[@map_id].name
end
end
###############
# Window_Time #
###############
class Window_Mapname < Window_Base
def initialize(x, y)
super(x, y, 160, WLH + 64)
refresh
end
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Destination:")
draw_icon(153, 100, 2)
self.contents.font.color = normal_color
self.contents.draw_text(4, 28, 120, 32, $game_map.mpname.to_s, 2)
end
end


__________________________
Ex-lurker. Mwuahaha
Back from being suspended for being too young. I HOLD NO GRUDGES.
WTF is FTW Backwards!!!

Isn't RPG'in fun? :3
[Show/Hide] Cool Things
Cna yuo raed tihs? Olny 55% of plepoe can.
I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.


[place for to-be-siggy picture]
Go to the top of the page
 
+Quote Post
   
als
post Nov 16 2009, 09:20 PM
Post #4


Level 1
Group Icon

Group: Member
Posts: 8
Type: Artist
RM Skill: Beginner




Greetings laugh.gif
umm... i'm newbie here mellow.gif
i'm still confused about this

i copy paste the code to my insert new script and i name it window_scene_location
after i paste it, i went to test it sleep.gif

and the error is :
Script 'Window_Location_Menu' line 13: NameError occurred.

undefined method 'start' for class 'Scene_Menu'


then, i delete the word 'start' after the 'alias location_show_scn_mnu_start' code
i got another error:
Script 'Window_Location_menu' line 14: SyntaxError occurred

it means the syntax 'alias'

please help me in this one, i'm not understand what error happen here ?
Go to the top of the page
 
+Quote Post
   
Odin
post Nov 17 2009, 02:30 AM
Post #5


Level 1
Group Icon

Group: Member
Posts: 7
Type: Scripter
RM Skill: Skilled




Hi,
the script ist just working fine.

QUOTE (als @ Nov 16 2009, 10:20 PM) *
Greetings laugh.gif
umm... i'm newbie here mellow.gif
i'm still confused about this

i copy paste the code to my insert new script and i name it window_scene_location
after i paste it, i went to test it sleep.gif

and the error is :
Script 'Window_Location_Menu' line 13: NameError occurred.

undefined method 'start' for class 'Scene_Menu'


then, i delete the word 'start' after the 'alias location_show_scn_mnu_start' code
i got another error:
Script 'Window_Location_menu' line 14: SyntaxError occurred

it means the syntax 'alias'

please help me in this one, i'm not understand what error happen here ?


@als

Is it possible that you copied the script above the original Scene_Menu script?
Because every custom script should be copied below the section "Materials". For example if a custom script just use methods from an original script.

I don't know how good you are as a scripter, but you shouldn't delete lines of a script if you don't understand what you do. ^^

I'm sorry for my english. I'm using the English I've learned at school. ^^

So soon,
Odin
Go to the top of the page
 
+Quote Post
   
power200
post Nov 17 2009, 06:49 AM
Post #6


Level 10
Group Icon

Group: Revolutionary
Posts: 155
Type: Writer
RM Skill: Intermediate




QUOTE (als @ Nov 16 2009, 09:20 PM) *
Greetings laugh.gif
umm... i'm newbie here mellow.gif
i'm still confused about this

i copy paste the code to my insert new script and i name it window_scene_location
after i paste it, i went to test it sleep.gif

and the error is :
Script 'Window_Location_Menu' line 13: NameError occurred.

undefined method 'start' for class 'Scene_Menu'


then, i delete the word 'start' after the 'alias location_show_scn_mnu_start' code
i got another error:
Script 'Window_Location_menu' line 14: SyntaxError occurred

it means the syntax 'alias'

please help me in this one, i'm not understand what error happen here ?

Did you take the one I posted? Because if you took the one from the top, you must remove the = signs on the second line. If you took the one I posted, post it above the 'insert here' thing at the bottom of the window where the names of the scripts are, put it above that, but below any scripts besides Main.


__________________________
Ex-lurker. Mwuahaha
Back from being suspended for being too young. I HOLD NO GRUDGES.
WTF is FTW Backwards!!!

Isn't RPG'in fun? :3
[Show/Hide] Cool Things
Cna yuo raed tihs? Olny 55% of plepoe can.
I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.


[place for to-be-siggy picture]
Go to the top of the page
 
+Quote Post
   
rpgdude
post Nov 28 2009, 04:22 PM
Post #7


Level 1
Group Icon

Group: Member
Posts: 6
Type: Developer
RM Skill: Masterful




QUOTE (power200 @ Nov 17 2009, 06:49 AM) *
QUOTE (als @ Nov 16 2009, 09:20 PM) *
Greetings laugh.gif
umm... i'm newbie here mellow.gif
i'm still confused about this

i copy paste the code to my insert new script and i name it window_scene_location
after i paste it, i went to test it sleep.gif

and the error is :
Script 'Window_Location_Menu' line 13: NameError occurred.

undefined method 'start' for class 'Scene_Menu'


then, i delete the word 'start' after the 'alias location_show_scn_mnu_start' code
i got another error:
Script 'Window_Location_menu' line 14: SyntaxError occurred

it means the syntax 'alias'

please help me in this one, i'm not understand what error happen here ?

Did you take the one I posted? Because if you took the one from the top, you must remove the = signs on the second line. If you took the one I posted, post it above the 'insert here' thing at the bottom of the window where the names of the scripts are, put it above that, but below any scripts besides Main.




THIS SCROPT DOSN'T WORK AND I NEED IT BADLY!!!!!! FIX IT!!!!
Go to the top of the page
 
+Quote Post
   
Xzygon
post Nov 28 2009, 04:57 PM
Post #8


Pineapple Inc's President and Creator of Duality Online
Group Icon

Group: Revolutionary
Posts: 554
Type: Writer
RM Skill: Skilled




You don't need it badly, the only thing a person needs badly is food and sleep O.o
Acting like that isn't going to help anyone help you confused.gif
Anyways, did you check the script that power posted?That should work.
If it doesn't, what other scripts are you using? It maybe incompatible with any other scripts.


__________________________
Check out my game, Duality Online!
Duality Online






Blah
A saying that I DID NOT STEAL FROM KUNG FU PANDA!
Today is a Gift.
That's why they call it the Present.
You never know what's inside,
Because the Present is always changing.
~Made it up with my cuz 7 Years Ago, without the help of anybody else~


Don't read!
00110000001100010011000000110000001100010011000000110000001100000011000000
11000100110001001100000011000000110000001100000011000100110000001100010011000100
1
10000001100010011000000110000001100000011000000110001001100010011000000110000001
1
00000011000000110001001100000011000000110001001100000011000100110001001100000011
0
00000110000001100000011000100110000001100000011000000110000001100000011000000110
0
01001100010011000000110000001100010011000000110001001100000011000100110001001100
0
10011000000110000001100000011000000110000001100010011000100110000001100010011000
0
00110000001100010011000000110001001100010011000000110000001100000011000100110001
0
01100000011000000110001001100000011000000110000001100000011000000110000001100010
0
11000100110000001100000011000100110001001100000011000000110001001100010011000000
1
10000001100000011000000110001001100000011000100110001001100000011000100110000001
1
00000011000100110000001100010011000100110000001100010011000100110000001100000011
0
00000110000001100010011000000110000001100000011000000110000001100000011000100110
0
01001100000011000000110001001100010011000000110000001100010011000100110000001100
0
10011000100110001001100010011000000110001001100010011000100110000001100000011000
1
00110000001100000011000000110001001100000011000000110000001100000011000000110000
0
01100010011000100110000001100000011000100110000001100000011000000110001001100010
0
11000000110001001100010011000100110001001100000011000100110001001100010011000000
1
10001001100000011000100110000001100010011000100110000001100000011000000110001001
1
00000011000000110001001100010011000000110001001100010011000000110000001100000011
0
00100110001001100000011000000110001001100000011000100110000001100000011000100110
0
00001100000011000000110000001100000011000000110001001100010011000000110000001100
0
10011000000110000001100000011000100110001001100000011000000110001001100000011000
1
00110000001100010011000100110000001100000011000000110001001100010011000000110001
0
01100010011000100110000001100000011000100110000001100000011000100110001001100010
0
11000100110000001100000011000100110000001100010011000100110001001100000011000000
1
10000001100000011000000110001001100010011000100110000001100010011000000110000001
1
00000011000100110001001100000011000100110000001100000011000100110000001100010011
0
00100110000001100010011000100110001001100000011000000110001001100010011000000110
0
00001100010011000100110001001100000011000000110001001100000011000000110000001100
0
00011000000110000001100010011000100110001001100000011000100110000001100000011000
0
00110001001100010011000000110001001100000011000000110000001100000011000100110001
0
01100000011000100110000001100000011000100110000001100010011000100110001001100000
0
11000000110001001100010011000000110000001100010011000000110000001100000011000000
1
10000001100000011000100110001001100000011000000110000001100010011000000110000001
1
00010011000100110000001100010011000000110000001100010011000000110001001100010011
0
00000110001001100010011000100110000001100000011000100110001001100000011000000110
0
00001100000011000100110000001100010011000100110001001100000011000000110001001100
0
00011000000110001001100010011000100110001001100000011000000110001001100000011000
0
00110001001100000011000000110000001100000011000000110000001100010011000100110000
0
01100000011000000110001001100010011000000110001001100010011000000110001001100010
0
11000100110001001100000011000100110001001100000011000000110001001100000011000000
1
10000001100010011000100110000001100000011000100110000001100010011000000110000001
1
00010011000000110001001100010011000100110000





I support
Supporting


Go to the top of the page
 
+Quote Post
   
power200
post Nov 28 2009, 05:29 PM
Post #9


Level 10
Group Icon

Group: Revolutionary
Posts: 155
Type: Writer
RM Skill: Intermediate




From what I can see, the thingy I posted seems to be fine. Must be 'is first script. I'll send him a PM with pics to help him install it-no, better yet. I'll send 'im a demo. And I doubt there's incompatability, it seems to do very little. (from what I can guess).

EDIT: For anyone who's too lazy to put the darn script in the game. Here!


__________________________
Ex-lurker. Mwuahaha
Back from being suspended for being too young. I HOLD NO GRUDGES.
WTF is FTW Backwards!!!

Isn't RPG'in fun? :3
[Show/Hide] Cool Things
Cna yuo raed tihs? Olny 55% of plepoe can.
I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.


[place for to-be-siggy picture]
Go to the top of the page
 
+Quote Post
   
bcnobel
post Dec 4 2009, 10:05 AM
Post #10



Group Icon

Group: Member
Posts: 1
Type: Musician
RM Skill: Advanced




Hmmm... Nice and simple...
Just the way I like it...

All these ppl nagging about the script not working etc... IT WORKS PROPERLY!!!
Just above your gold window in the menu is another window that shows the current map you're in..

Couldn't be moar easy, and ppl that did something wrong, f*ckd up themselves because they just dont get it...

Kinda makes me wanna cry T.T

Anyhow, I love this script, stole it, and will give u credit...
Go to the top of the page
 
+Quote Post
   
Runefreak
post Dec 6 2009, 09:48 PM
Post #11


Comic Saaaaaaaans!
Group Icon

Group: Revolutionary
Posts: 140
Type: Developer
RM Skill: Advanced




Neatio me boy, simple like a cracka' jog snicka bongdiddy. smile.gif Great job royster doyster.

... geek.gif

... teehee.gif xD LOL

Nice, perfect for my menu, time to do some personal editing...


__________________________
</div>
Go to the top of the page
 
+Quote Post
   
Contemption
post Dec 12 2009, 07:19 AM
Post #12



Group Icon

Group: Member
Posts: 4
Type: Mapper
RM Skill: Undisclosed




umm... I have the Kylock Time System and the Location window overlaps with the time window. Can some one tell me how to change this so it doesn't happen anymore. Greatly appreciated
Go to the top of the page
 
+Quote Post
   
Rabla
post Dec 26 2009, 05:41 AM
Post #13


Level 1
Group Icon

Group: Member
Posts: 8
Type: None
RM Skill: Beginner




Is it possible to remove thelittle image in it?

Im sure its as simple as changing a line or two, but im still new working with scripts and i don't want to break it.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 07:08 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker