Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Delusian on September 19, 2010, 08:40:16 am

Title: Mouse over info
Post by: Delusian on September 19, 2010, 08:40:16 am
While I had the beta testers on we discovered something that can be a bit frustraiting.

They didn't have a clue what level anything was unless they read the manual. As i've already got the mouse script in is it possible for someone to make this:

If the mouse hovers over a NPC with information in the enemy database to have their name appear in green above them?

So all it would be doing is reading their names from the database when the mouse hovers over. It would be a nice way to have this information shown to the player.
Title: Re: Mouse over info
Post by: Valdred on September 19, 2010, 08:46:30 am
I could do this probably, but I would need your scripts for mouse and enemies
Title: Re: Mouse over info
Post by: Blizzard on September 19, 2010, 08:51:41 am
I suggest you check all character_sprites in Scene_map#spriteset and if the Sprite_Character#battler is an instance of Map_Enemy and the mouse cursor is inside the sprite's bitmap's size with regarding Sprite#src_rect's width and height, get Map_Enemy#battler_id and if it's greate than 0, just find the appropriate enemy in the database and display its name. You will need a sprite connected the mouse cursor for that.
Title: Re: Mouse over info
Post by: Delusian on September 19, 2010, 09:05:50 am
Quote from: Valdred on September 19, 2010, 08:46:30 am
I could do this probably, but I would need your scripts for mouse and enemies


Emailed them across :)
Title: Re: Mouse over info
Post by: Valdred on September 19, 2010, 10:08:52 am
I'm having a major problem. When quitting the debug the program keeps saying "now playtesting" which prevents me from doing shit. Also, I will need the script that deals with levels too, cause there is no level data in these two. :-*
Title: Re: Mouse over info
Post by: Wizered67 on September 19, 2010, 10:43:34 am
I think in nathmatt's mces he put in a feature like that for when you hover over events. For example, when hovering over an enemy, you can put something in its name so that it changes the cursor and puts the enemy name above it.
Title: Re: Mouse over info
Post by: Delusian on September 19, 2010, 10:49:54 am
I've not touched the level script from default  :uhm:
Title: Re: Mouse over info
Post by: Valdred on September 19, 2010, 11:40:48 am
But enemies don't have levels by default. Only the actors do