Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Delusian on October 26, 2010, 07:34:55 am

Title: Blizz mouse addon
Post by: Delusian on October 26, 2010, 07:34:55 am
I was wondering if you could add the
'$mouse.set_cursor('Arrow4')'
to a hover. So when the mouse goes over enemies I can have message appear saying the monsters level and/or show a quest maker logo or sword for monsters.
Title: Re: Blizz mouse addon
Post by: Blizzard on October 26, 2010, 07:59:52 am
Yes, that's possible. That was actually why I added the set_cursor method in the first place.
Title: Re: Blizz mouse addon
Post by: Delusian on October 26, 2010, 08:06:14 am
So how do I go about doing this?
Title: Re: Blizz mouse addon
Post by: stripe103 on October 26, 2010, 08:20:44 am
Quote from: Blizzard on October 26, 2010, 07:59:52 am
Yes, that's possible. That was actually why I added the set_cursor method in the first place.

No it wasn't. At least you didn't publish it until I asked you :D
Title: Re: Blizz mouse addon
Post by: Blizzard on October 26, 2010, 08:56:02 am
Yes, it was. But I didn't say it was my idea. xD

@Delusian: You need to match the coordinates of the mouse against the objects on the screen in an update method.
Title: Re: Blizz mouse addon
Post by: Delusian on October 26, 2010, 11:20:56 am
But if the monsters moving how would it work?
Title: Re: Blizz mouse addon
Post by: ForeverZer0 on October 26, 2010, 12:07:53 pm
Quote from: Delusian on October 26, 2010, 11:20:56 am
But if the monsters moving how would it work?


An update method is run every frame (40 times a second). Unless your enemies move around the screen like lightning, it should be able to keep up with them and their coodinates.  ;)
Title: Re: Blizz mouse addon
Post by: nathmatt on October 26, 2010, 01:34:25 pm
just look how its done in MCES you can change the mouse when over an event/enemy display text too tho i can not remember if i fixed it to allow spaces