News: Have you seen Chaos Project's fully automated Script Database Index yet?
Pages: [1]
  Print  
Author Topic: [XP] Mouse-Friendly Equipment Screen  (Read 3665 times)
RPGManiac3030
Awakened Visionist
**

LV: 4
Offline Offline

Gender: Male
Posts: 59



View Profile
« on: July 08, 2011, 08:55:22 PM »

Mouse Friendly Equipment Screen
Author: RPGManiac3030
Version: 1.0
Type: Custom Menu
Key Term: Custom Menu

Introduction

This is a small edit of Scene_Equip that basically makes it more compatible with a mouse script.

If you're not using a mouse script in your game, this script also allows the player to quickly change a piece of equipment in the menu. If you equipped a sword, you can then quickly choose another sword instead of having to choose your already-equipped sword and going through the list again. See the demo to see this in action.

Features

  • Makes the default equipment screen compatible with a mouse script (i.e. Blizzard's mouse controller) so that the equipment list menu doesn't disappear when the mouse isn't selecting a piece of equipment...see the screenshot to see what I'm talking about   :^_^':
  • After equipping a weapon/armor, you can quickly select another piece.

Screenshots

This is before my edit is implemented:
(click to show/hide)

This is after my edit is implemented:
(click to show/hide)

Demo
Note: The demo doesn't make use of a mouse input module. It will work, though

Script
(click to show/hide)

If you use Fyre's custom equipment screen, use this edit:
See instructions on how to install this!
(click to show/hide)


Instructions

If you are using the default equipment menu:
Put the script above main and below any mouse script.

If you are using Fyre's custom equipment menu:
Put the edit below Fyre's script.

If you are using a different custom equipment menu:
Place this below whatever you are using, and edit my script accordingly.
Do not make ANY edits to the frame update or else you will lose the ability to quickly change equipment in the menu.


Compatibility

  • Should be compatible with any mouse script out there, since I only edit Scene_Equip.
  • Edited for the default equipment menu.

Credits and Thanks

  • RPGManiac3030


Author's notes
If you use this in your game, please credit me Happy
This is technically 2 scripts in 1, since I needed to use the quick equip feature to make the mouse compatibility better.
There were some issues when I tried testing the menu with other characters, all types of equipment, etc. and I fixed what I found. If you find any other errors like that, or any compatibility issues, please post it here!
« Last Edit: July 11, 2011, 07:36:14 AM by RPGManiac3030 » Logged



Official Gio website:
gioadventures.freehostingcloud.com (under construction)
RPGManiac3030
Awakened Visionist
**

LV: 4
Offline Offline

Gender: Male
Posts: 59



View Profile
« Reply #1 on: July 11, 2011, 07:36:54 AM »

I added an edit so that it is compatible with Fyre's custom equipment menu, since that's what I'm using in my game anyway Happy
Logged



Official Gio website:
gioadventures.freehostingcloud.com (under construction)
Pages: [1]
  Print  
 
Jump to:  


*
*
Shoutbox
Latest Shouts
View All
Today at 03:14:19 PM Blizzard: Your mom's a girl.
Today at 09:50:40 AM soulshaker3: As for me I once dreamt about fucking my ex gf in my school and a teacher entered the room looked at us for 2 seconds and continued to do his business. So did we 
Today at 09:46:32 AM soulshaker3: Pretty sure he's a girl Sarcasm
Today at 08:46:24 AM Ryex: you heard it here first folks, Blizzard officially likes not wearing pants.
Today at 07:12:14 AM Blizzard: For the first time in my life I had the dream of being in school without pants. Not just that, I was also without underwear. And I owned it. Nobody really cared or noticed.
May 25, 2015, 10:04:42 PM Ranquil: Looks like just calling the Initialize method again did enough. Thank you both for the advice though. :D
May 25, 2015, 04:29:07 PM Blizzard: The nuclear option would be the safest. It's easy to miss a variable if you do a soft reset.
May 25, 2015, 09:58:15 AM Ryex: well if you main method initializes the game environment you could just call it again. or you could go with the nuclear option and spawn a new game process and exit the current one. 
May 25, 2015, 09:21:02 AM Ranquil: Because this question is pretty small, I'm just gonna ask it here. Is there a way to easily reset a game completely in XNA? Not to a main menu or to the start of a level but an actual program reset. I know I could just set all variables to their original states individually in a method and then call that method when needed but I just want to know if there's an alternative.
May 24, 2015, 04:24:25 AM R.A.V.S.O: I recently decided to play some psp games on PPSSPP and dear god.... Final Fantasy Type-0..... I feel so bad to NOT have tried it out until recently.

View All


HB Games RpgMaker.org