The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Scripts Database => Topic started by: worale on April 14, 2008, 09:32:41 AM

Title: Simple Mouse System
Post by: worale on April 14, 2008, 09:32:41 AM
Simple Mouse System
Version 1.5
by Woratana
Release Date: 14/04/2008


Introduction
I scripted SMS because I'm working on other script that will be good if it has mouse function. And I'd like to share this to others after I got permission from Dervvulfman (this script require his script)

I don't have any knowledge about win32api, so I went to find XP mouse script and tried if they work on VX.
Finally, I found Dervvulfman's Mouse Input Module. It works great in VX without any edit.

This script required Mouse Input Module and Near Fantastica's Path Finding
It will allow player to click on menu, choose choice, move on map and talk to NPC by mouse.

It's also included feature to use image for cursor.


Features
- Support to use mouse in many scenes / windows
e.g. Battle Scene, Shop, Name Input Screen
- Click on map to move player using Path Finding
- Click on NPC when player is close to that NPC to talk.


Demo

Download Simple Mouse System Demo (http://www.rpgrevolution.com/users/woratana/script/Wora_Script/mouse_system/)
Download vx_mouse.rar for demo.
or you can get the script in text file from there.

Thanks RRR (http://"http://www.rpgrevolution.com/") for hosting this.  ^_^


Script
I think it's easier to download demo,
since I've edited some lines in Near Fantastica's Path Finding script. ;)

Screenshot
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi32.tinypic.com%2F2dwc1v5.jpg&hash=708c0021542a4230469f71ad683aa0d930c6c8b3)


Instruction
This script is Plug 'N Play script,
so just put Dervvulfman's Mouse Input Module, Near Fantastica's Path Finding,
and Simple Mouse System in your game, and enjoy! :)


Plan for next version
- Cursor change when put on other event
- Better event trigger check by click mouse


Compatibility
No report for compatibility issue so far.. ;)


Author's Notes
Free for use in both commercial and non-commercial if credit included.


Credit
DerVVulfman
Near Fantastica
Freak Boy
lambchop
Shun
Cybersam
Astro_mech
Mr.Mo
Fuso
Modern Algebra
Zeriab
Patrick Lester

for the scripts that help me finished this,
Mouse Input Module,
Super Simple Mouse System,
Path Finding.
Title: Re: Simple Mouse System
Post by: modern algebra on April 14, 2008, 10:26:24 AM
Ah, I think the link is a little broken :( SMF doesn't allow quotation marks around the link when using URL tags. Or double http://
Title: Re: Simple Mouse System
Post by: worale on April 14, 2008, 05:06:47 PM
It should work now. :)
Title: Re: Simple Mouse System
Post by: modern algebra on April 14, 2008, 10:45:00 PM
Good good. I've been doing a little testing with it. I'll PM the results.
Title: Re: Simple Mouse System
Post by: worale on April 19, 2008, 09:31:42 AM
Thanks! MA  ;)

[NEXT VERSION :: NOTE]
- Using Modern Algebra's Path finding that is faster, and has better algorithm.
- Added setup part, you can add the scene that you don't want to use mouse, configure many things in script.
- You can now click on event, NPC, and player will automatically walk to that event and interact.
- You can put some tags in event's comment, e.g. '[mauto]' to run this event automatically after you click on it.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi26.tinypic.com%2F1ils3k.jpg&hash=37a340c1ff358ecd2a9cbac11e41365118c8e5e8)
Title: Re: Simple Mouse System
Post by: modern algebra on April 19, 2008, 09:48:50 AM
Nice, those are all some very nice features. I particularly like the fact that you can now interact with an event automatically just by clicking on them, as opposed to having to walk up to them directly. Also, is my algorithm faster? I didn't notice Near's generating any lag, but my computer is (very slightly) faster than average.

Anyway, everything looks very cool. And I'm happy that you decided to use my Path Finding script. Makes me feel all warm and fuzzy inside. So thanks :)
Title: Re: Simple Mouse System
Post by: Leventhan on April 19, 2008, 10:13:01 AM
This script has great potential as I see it.
Awesome...!
Title: Re: Simple Mouse System
Post by: veltonvelton on May 07, 2008, 06:24:34 PM
with a few more added features it could be on its way to the big scripts
think about the little things that this script could make possible
and add them in
Title: Re: Simple Mouse System
Post by: Demonic Blade on May 09, 2008, 04:02:25 PM
Sounds nice, but the link is broken :police:
Why not just attach it? Attachments don't break up at least...
Title: Re: Simple Mouse System
Post by: okartee on May 11, 2008, 08:39:41 PM
Very, very nice. Do you think you could make a version where the mouse only activates when you use a menu, or have to select choices? I don't really like the pathing system.
Title: Re: Simple Mouse System
Post by: worale on May 12, 2008, 07:16:57 AM
The next version, you can set what scene you don't want to use it. :)

So just put Scene_Map in there, and mouse will not show/usable in map.
Title: Re: Simple Mouse System
Post by: MetalShadowX on July 03, 2008, 09:48:11 PM
I don't like the cursor. How do I change it
Title: Re: Simple Mouse System
Post by: littlekittygarden on November 09, 2008, 04:58:36 AM
The link just takes me to the RRR homepage, where do I go to download the demo?
Title: Re: Simple Mouse System
Post by: worale on November 14, 2008, 03:19:38 AM
Hi, sorry that I leaved for so long.

I found this demo leaved on my desktop. I think it is the newest version that you can click on NPC to interact~^^

http://www.mediafire.com/?l4nzlj5nokj

Enjoy,
Wora
Title: Re: Simple Mouse System
Post by: r_y_u_u on December 15, 2008, 03:37:27 PM
nice script, love it, only problem is it lags on my laptop like HELL, i get 2fps at best when i have my project running it, but then again my laptop is a bit... well... terrible, but everything works very well, you should make it so that you can disable it through the in-game menu, and therefore people running slower computers can still use it... oh well, still, brill script!
Title: Re: Simple Mouse System
Post by: Chrisolaf on December 24, 2008, 11:07:25 PM
Works Great :P Thanks for this great script
Title: Re: Simple Mouse System
Post by: Hamstt on December 25, 2008, 07:32:08 PM
If you walk past a touch event it totally avoids it. Can this be fixed?
Title: Re: Simple Mouse System
Post by: apoclaydon on May 24, 2010, 11:31:25 PM
sorry in advance for this thread necro but i cnt download the demo can it be hosted somere else like megaupload
Title: Re: Simple Mouse System
Post by: cozziekuns on May 24, 2010, 11:52:50 PM
You could always just grab it from his Christmas Giftbox (http://rmrk.net/index.php/topic,31518.0.html).
Title: Re: Simple Mouse System
Post by: rusty95ca on March 19, 2011, 05:51:49 PM
i think the links broken... :(
Title: Re: Simple Mouse System
Post by: pacdiggity on March 20, 2011, 12:51:28 AM
You could always just grab it from his Christmas Giftbox (http://rmrk.net/index.php/topic,31518.0.html).
Title: Re: Simple Mouse System
Post by: Lestat on November 18, 2011, 01:32:24 AM
I know I'm digging up a really old post, but I only recently tried this script.
I like it a lot!

I have some questions though:
As mentioned before, is there any way to make it so you don't by pass touch events?
Is there any way to combine this with dashing?