RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[VXA] Hover Alerts

0 Members and 2 Guests are viewing this topic.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Hover Alerts
Version: 1.0.3
Author: modern algebra
Date: 4 November 2012

Version History


  • <Version 1.0.3> 2012.11.04 - Fixed a bug where the SE would play all the time when a repeated effect is selected
  • <Version 1.0.2> 2012.10.28 - Fixed another bug with :disintegrate
  • <Version 1.0.1> 2012.10.17 - Fixed a bug with :disintegrate and added the proximity feature
  • <Version 1.0.0> 2012.10.16 - Original Release

Description


This script lets you display a graphic which hovers above any given event, player or follower. The primary virtue of the script is that it allows for a feature like in Diablo, where characters that have something important to say have an exclamation point or something above their heads. However, it is not limited to that: this script can show any picture, icon, text, or combination of icon & text above any character.

A secondary (and completely optional) feature is that you can set it up so that whenever gold, items, weapons, or armours are received through their respective event commands, a hover alert will float above the player's head with the icon, name, and amount of the item received before fading out. (This feature is OFF by default in the script itself, while it is tied to switch 5 in the demo. You can and should change that if you want this feature.)

Features

  • Can show a graphic above any character on the map.
  • Can show either pictures, icons, text, or a combination of icon & text.
  • Sets up very simply through comments.
  • You can set up to a dozen different features for each hover alert, including but not limited to relevant font options for text and a timer that will dispose the alert after a sufficient number of frames. You can also exclude any of those options from any given hover alert.
  • If showing a picture, you can set it to animate by including in its name %[n] and n animation frames in the graphic itself.
  • Can show a number of neat effects for the hover alerts, such as bouncing it, fading it out, or disintegrating it.
  • Can activate an option which will automatically show an alert above the player with the icon, name, and amount of any items or gold gained through events and have it fade out or disintegrate.

Screenshots



Instructions

Paste the script into its own slot in the Script Editor, above Main but below Materials.

For instructions on configuration and use, please read the header of the script quite thoroughly. I also recommend that you download the demo to see a number of sample hover alerts set up.

Script


Retrieve it from Pastebin or from the demo.

Credit


  • modern algebra

Thanks

  • Yin, for notifying me of the :disintegrate error, for suggesting the proximity feature, and for alerting me to a compatibility error with galv's Region Effects script

Support


Please post in this topic at RMRK.net if you have any questions, suggestions, error reports, or comments about this script. Please do not message me privately, as it is more efficient and useful to answer any concerns you have in the topic where others may benefit from our correspondence.

Known Compatibility Issues

Spoiler for galv's Region Effects:
There is an error with galv's Region Effects script, v. 1.7. If you walk through an event-generating region while a hover alert is showing, it will repeatedly restart, like a skipping CD.

To fix it, insert the following code into its own slot in the Script Editor, somewhere below galv's Region Effects script but still above Main.

Code: [Select]
#==============================================================================
#    Hover Alerts + galv's Region Effects
#    Compatibility Patch
#    Version: 1.0
#    Authors: modern algebra (rmrk.net) & galv
#    Date: 5 October 2013
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Description:
#
#    This patch fixes an error between my Hover Alerts script and galv's Region
#   Effects script. Without it, a hover alert will constantly refresh when
#   walking through an event-generating region.
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Instructions:
#
#    Insert this script into the Script Editor (F11) in a new slot, somewhere
#   below galv's Region Effects script but still above Main.
#==============================================================================

#==============================================================================
# ** Spriteset_Map
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    new method - gre_refresh_event
#==============================================================================

class Spriteset_Map
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Refresh Event
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def gre_refresh_event(id)
    # Find any existing event with the same ID
    esi = @character_sprites.find_index {|sprite| sprite &&
      sprite.is_a?(Sprite_Character) && sprite.character.is_a?(Game_Event) &&
      sprite.character.gre_event_id == id }
    if esi
      # Dispose Existing Event
      @character_sprites[esi].dispose if !@character_sprites[esi].disposed?
      @character_sprites.delete_at(esi)
    else
      esi = $game_map.events.values.size - 1
    end
    # Refresh new region event
    @character_sprites.insert(esi, Sprite_Character.new(@viewport1, $game_map.events[id]))
  end
end

#==============================================================================
# ** Game_Event
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    new method - gre_event_id
#==============================================================================

class Game_Event
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Event ID
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def gre_event_id
    @id # Get Event ID
  end
end

#==============================================================================
# ** Game_Map
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    overwritten method - region_effect
#==============================================================================

class Game_Map
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Region Effect
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def region_event(dx, dy, event_id, map_id)
    # Retrieve event from the spawn map
    map_id = @map_id if map_id == 0
    event = generated_region_event($data_spawn_map, event_id)
    # Generate ID
    new_id = @effect_var.length < Region_Effects::MAX_EFFECTS ?
      (@events.keys.max.nil? ? 1 : @events.keys.max + 1) : @effect_var.shift
    @effect_var.push(new_id)
    # Create new Event
    @events[new_id] = Game_Event.new(@map_id, event)
    @events[new_id].moveto(dx, dy)
    SceneManager.scene.spriteset.gre_refresh_event(new_id) # Refresh Event
  end
end

Due to the nature of the error, that fix does, however, alter galv's script design, and it may cause errors down the line that I did not anticipate. I do not assign a high probability to that possibility, but I do not give any guarantees. If problems do occur, you can always just delete this patch, but you should also let me know.

I am currently unaware of any other compatibility problems, but please let me know if you encounter any.

Demo


See attached.

Terms of Use


I adopt RMRK's default Terms of Use.
« Last Edit: October 05, 2013, 01:27:05 PM by modern algebra »

pokeball YinOfflineFemale
**
Rep:
Level 86
Another nice script MA. Would this be able to be used with a proximity effect? Like if you are 2 tiles away then it will fade in and any further than that, it will fade back out? Or if you are one tile away, it will only show if you are facing the direction of the event?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
No, but you could do the proximity thing with a parallel process event. You would just need to calculate distance with variables and then use a conditional branch to show or remove the hover graphic. You would not, however, be able to fade it in gradually.

pokeball YinOfflineFemale
**
Rep:
Level 86
It would be a great addition, but if that's not in the plans, then I can always use a proximity script (I know there's one around). Especially since it goes by the interpreter, so I can put it in a conditional. (I don't like wasting variables if they are not needed :P)

Edit:
Got an error when using :disintegrate

---------------------------
Hover Alerts
---------------------------
Script 'Hover Alerts' line 672: ArgumentError occurred.

comparison of Symbol with 32 failed
---------------------------
OK   
---------------------------
« Last Edit: October 17, 2012, 04:25:38 AM by Yin »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Thanks for the error report! As a thank you, I added the proximity feature you requested. You can set it as you do any other option, with the line:
Code: [Select]
proximity = x
where x is the number of squares.

pokeball YinOfflineFemale
**
Rep:
Level 86
 :discosect: (I hope you can see that smiley, I'm using a weird set of them I think)

No, Thank YOU!

It's perfect now! It can be used for anything. I've seen a bunch of different stuff that is JUST for item gain, and others that are just for popups. This covers both as well as adds another feature that none have such as proximity. It's everything packed in one! Nailed it with this one!

**
Rep: +0/-0Level 55
RMRK Junior
Nice one! Haven't tested it yet, but could you also use it to display numbers above enemies? Like FF's Doom turn count, you know.. :)

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
No, the script cannot be used on battlers.

**
Rep: +0/-0Level 69
RMRK Junior
Hello

thank you for this great script

Is it possible to display the icons above the name of the NPC ?
World of Forestia project

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
No, but you could create a picture and make it like that manually if it's not common.

***
© 2012 chapman productions inc
Rep:
Level 55
=O
Nice, I'm going to plug it into my current project.

pokeball YinOfflineFemale
**
Rep:
Level 86
Think I found a bug. When you add a sound effect to the event, it plays the sound as soon as you enter the map as well as when you get close to the event (proximity event). It should only play when you get in range right? I have a demo as well if you need one.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
No, it was only intended to play when it first activates, not every time you approach it. Is that a feature you want added? I personally think it would be annoying if the SE went off everytime it was approached, but I could add that feature if you want it.

pokeball YinOfflineFemale
**
Rep:
Level 86
No, that's the problem I'm having, it keeps repeating the sound when I get near the event and it plays even as soon as i enter the map when I'm not near the event. I will wrap you up a demo and pm it to you.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
No need for the demo. Just tell me precisely when you want the SE to play.

pokeball YinOfflineFemale
**
Rep:
Level 86
Just only as soon as you get near the event.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Alright, I updated the script so that the SE will only be played when it first becomes visible and never again after that unless the graphic is refreshed.

pokeball YinOfflineFemale
**
Rep:
Level 86
Thank you, works like a charm!

PS, Just realized I had 1.01 and I think the current version was 1.02? But 1.03 works fine too!
« Last Edit: November 04, 2012, 08:52:36 PM by Yin »

pokeball YinOfflineFemale
**
Rep:
Level 86
:| I hate to bring up another something, but I think something broke in this latest update. I was using the rise and disintegrate autogain, it used to work, but now it does not update. My event gives a few items and some gold. It used to update and disintegrate each item, but now it just floats on top of the character and never goes away.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
I'm not receiving that error in the demo. Did you spell it correctly?
« Last Edit: November 05, 2012, 12:50:43 AM by modern algebra »

pokeball YinOfflineFemale
**
Rep:
Level 86
Weird, it happens in my test demo and your script is the only one in there. I'll try recopying the script from the pastebin.

Edit: Works now, I must have copied it wrong  ??? Sorry.
« Last Edit: November 05, 2012, 12:55:11 AM by Yin »

**
Rep:
Level 81
Yo!
This is a pretty awesome script, but I was wondering if there was a way to effect the volume of the sound effects when an item is gained and when near the item. The problem is that is quite jarring to suddenly hear a sound at 100% volume when the rest of the game is rather subdued, sound-wise.

I know it's not a big deal, but it would be nice. ^.^

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Yeah.

Quote from: Instructions
#      se - If you wish, you can set an SE to play when the hover alert first
#          appears. It must be an array in the form ["filename", volume, pitch]

So just put the volume after the filename in the array. Ie. the following text in the comment code should play Chime2 at 60 volume:

se = ["Chime2", 60]

You could also alter the pitch by putting another comma and a number.
« Last Edit: November 16, 2012, 02:57:56 AM by modern algebra »

****
Training Wheels
Rep:
Level 89
:)
Bug report - when receiving an item whilst moving, the icon appears repeatedly for every step until the player stops moving. Using a wait command doesn't fix the problem; perhaps the player has to take their hand off the arrow key to make it stop? But yeah. Quite important as I use this as a Zelda-like long grass coin finding thing.
« Last Edit: November 22, 2012, 01:25:14 AM by veltonvelton »
  • Web designer
  • Music producer/DJ
  • Graphic Designer
Why am I 'training wheels'??

****
Training Wheels
Rep:
Level 89
:)
Also a feature suggestion: when you auto gain an item, you could also give an option to change the player graphic momentarily. This would work well with a wait for animation to finish option, to make the player look towards the camera with their hands up, like in other games (can't think of one now)
  • Web designer
  • Music producer/DJ
  • Graphic Designer
Why am I 'training wheels'??

**
Rep: +0/-0Level 78
RMRK Junior
Great script! This is just what I always wanted but never got around to asking for. Good job!  ;D

****
Training Wheels
Rep:
Level 89
:)
My game is literally at a standstill as this was sort of part of the main concept of it. Modern Algebra, need your help!
  • Web designer
  • Music producer/DJ
  • Graphic Designer
Why am I 'training wheels'??

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Sorry veltonvelton. I will try to get to it tonight or tomorrow.

And thanks outlandish! I am happy to hear that.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Bug report - when receiving an item whilst moving, the icon appears repeatedly for every step until the player stops moving. Using a wait command doesn't fix the problem; perhaps the player has to take their hand off the arrow key to make it stop? But yeah. Quite important as I use this as a Zelda-like long grass coin finding thing.

Hey. Sorry, I have been unable to recreate the error. Receiving an item while walking works fine in my demo, as far as I can tell.

Could you perhaps recreate the error in the demo and send me a copy so I can see what's going wrong?

**
Rep: +0/-0Level 74
RMRK Junior
I noticed a little problem with Victor's Control Codes and Text scripts.
When autogaining an item with some codes to change the color, for example, it shows the code and not the item's name color changed.
I don't know which of the two scripts causes the problem though, so I'll link both:

Control Codes: http://victorscripts.wordpress.com/rpg-maker-vx-ace/windows-scripts/control-codes/
Control Text: http://victorscripts.wordpress.com/rpg-maker-vx-ace/windows-scripts/control-text/

Thanks

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Well, unfortunately, that's not really a problem I'm willing to fix at the moment. In order to have the script interpret colour codes, I would either have to make the sprite an invisible window or else manually account for every possible code in every possible script. The former I do not want to do as windows will potentially cause more lag and it would foreclose the possibility of some effects, such as flash or showing animations on the hover alert. The latter I simply do not want to do because it's way too much work for very minor benefit.

However, if you want to just account for colour codes, you could add this code into its own slot somewhere below the Hover Alerts script but still above Main:

Code: [Select]
#==============================================================================
# ** Sprite_HoverAlert
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    overwritten method - maha_draw_text
#==============================================================================

class Sprite_HoverAlert
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Draw Text
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def maha_draw_text
    # Else draw the word
    x = 0
    self.bitmap = Bitmap.new(24, 24)
    if @hover_alert.name && !@hover_alert.name.empty?
      maha_reset_font_settings
      # Retrieve actual string
      txt = @hover_alert.name.gsub(/\\[Cc]\[(\d+)\]/, "")
      ts = bitmap.text_size(txt)
      if @hover_alert.icon_index > 0
        x = 28
        ts.width += 28
        ts.height = 24 if ts.height < 24
      end
      # Resize
      bitmap.dispose
      self.bitmap = Bitmap.new(ts.width + 4, ts.height + 4)
      maha_reset_font_settings
      @hover_alert.colour = $1.to_i if @hover_alert.name[/\\[Cc]\[(\d+)\]/]
      bitmap.font.color = text_color(@hover_alert.colour)
      # Draw text
      bitmap.draw_text(x, 0, bitmap.width - x, bitmap.height, txt, 1)
    end
    # Draw Icon
    @hover_alert.icon_hue == 0 ? maha_draw_icon(@hover_alert.icon_index, 0, (height - 24) / 2) :
      maha_draw_icon_with_hue(@hover_alert.icon_index, @hover_alert.icon_hue, 0, (height - 24) / 2)
    @ap_time = -1
    @ap_width = bitmap.width
  end
end

Keep in mind that if this script is ever updated, retaining this code could interfere with other changes to the script.
« Last Edit: December 09, 2012, 03:31:10 PM by modern algebra »

****
Training Wheels
Rep:
Level 89
:)
I've had a problem with VX licenses (namely not having one) so I'm waiting to pay for it when I get paid. So yeah, I'll send you something then if you're still ok to help.
  • Web designer
  • Music producer/DJ
  • Graphic Designer
Why am I 'training wheels'??

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Sure. VXA is currently on sale for 2 for 1, so if you wanted to get someone a Christmas gift as well, it's a good time to do so. I think the sale goes to the end of December, but don't trust me on that, because that memory is entirely unsourced. My memory of that is about as strong as the time I remember kissing Anne Hathaway, so be alert!

**
Rep: +0/-0Level 81
Rpg Maker VX Master
Epic script Modern Algebra!
I have a suggestion for a thing I need for my project...
I noticed that if the graphic of the event is set to none, the icon is shown in place of the event [1]
If there's graphic, the icon is shown over the event. [2]
Is there a way to be able to show the icon ON the event even if set the graphic? (like in [1], but this time there's graphic exactly below it)
Thanks in advance
Visit my official website for resources, games, and informations.
Download for free my (great) videogames and resources.
Link:
http://thefrontera.knossus.net

Watch also my great videos !
Link: Awesome videos here

The VX Project I'm working on: (Click to see the Description)


ALL MY AWESOME COMPLETED GAMES [OPEN THE SPOILER!!!]
Spoiler for:
My Completed VX Games:
The Frontera Legends (Click to Download)


My Completed XP Games:
The Frontera 2 (Click to Download)


The Frontera 1
Unfortunatly I can't have more than three pictures in my signature...
However, download it HERE (without the cool image)

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
For how many graphics do you need to show both a graphic and an icon? If it is a small number, then you could just edit the graphics themselves and paste the icon where you want it to go.

**
Rep: +0/-0Level 81
Rpg Maker VX Master
Yeah, you are right, that's an option.
But, for example, if I want to show the icon with the flash or fade effect...
In my project I need to show that icon on items that can be destroyed by bombs, and it would be cool if it was flashing.
Visit my official website for resources, games, and informations.
Download for free my (great) videogames and resources.
Link:
http://thefrontera.knossus.net

Watch also my great videos !
Link: Awesome videos here

The VX Project I'm working on: (Click to see the Description)


ALL MY AWESOME COMPLETED GAMES [OPEN THE SPOILER!!!]
Spoiler for:
My Completed VX Games:
The Frontera Legends (Click to Download)


My Completed XP Games:
The Frontera 2 (Click to Download)


The Frontera 1
Unfortunatly I can't have more than three pictures in my signature...
However, download it HERE (without the cool image)

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
I'm sorry. I had initially misunderstood your request. There is currently no way to adjust the position of the hover alert manually.

I am not opposed to adding that feature, but I suspect it will be some time before I can get around to it.

**
Rep: +0/-0Level 81
Rpg Maker VX Master
Thank you!
I'll be waiting fot that feature :)
Visit my official website for resources, games, and informations.
Download for free my (great) videogames and resources.
Link:
http://thefrontera.knossus.net

Watch also my great videos !
Link: Awesome videos here

The VX Project I'm working on: (Click to see the Description)


ALL MY AWESOME COMPLETED GAMES [OPEN THE SPOILER!!!]
Spoiler for:
My Completed VX Games:
The Frontera Legends (Click to Download)


My Completed XP Games:
The Frontera 2 (Click to Download)


The Frontera 1
Unfortunatly I can't have more than three pictures in my signature...
However, download it HERE (without the cool image)

**
Rep:
Level 50
RMRK Junior
When I set AUTOGAIN_HOVERALERTS_SWITCH at line 182 = 0, the item gain alerts still pop up.  I think the problem is at line 390, you have if "MA_HoverAlert::AUTOGAIN_HOVERALERTS_SWITCH >= 0".  It should be > 0, not >= 0, right?

Changing it to just > worked for me.

Also, thanks for the script!!!!  ;D

P.S. I just registered, and wanted to mention that the CAPTCHA type verification is impossible to read.  And I hate pop-ups (req. for listening), so this part of registration and posting is difficult and annoying.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Yes, you're correct about the error. The CAPTCHA stuff is annoying but is necessary to protect against spam bots. Once you've made a few posts, you no longer have to verify your humanity.

*
Rep: +0/-0Level 48
RMRK Junior
Is there a way to change the text color of the auto popup text in game? For example I want the color to be red when I lose items and the color to be green? when I gain items? Thanks

***
Rep:
Level 86
Om Nom Nom
How can I remove the icon when a player gains an item?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
You can go to line 446 in the script, which should look like this:

Code: [Select]
      icon_hue = $imported[:MAIcon_Hue] ? item.icon_hue : 0
      $game_player.show_hover_alert(text, item.icon_index, icon_hue,

Replace both lines with:

Code: [Select]
      $game_player.show_hover_alert(text, 0, 0,

pokeball YinOfflineFemale
**
Rep:
Level 86
Is there an option to show a windowskin, ( any image that can scale with the text inside ) behind the text? It gets kind of hard to read on certain backgrounds.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
No, not currently.

*
Rep: +0/-0Level 40
RMRK Junior
First off, you make amazing things happen Modern Algebra! I love your scripts when I can figure them out. =) I'm new to scripting and I still can't get Hover Alerts to work. Can you or someone post screenshots or a sample game so I can see the correct implementation of the script?

Thanks

*
RMRK's dad-in-training
Rep:
Level 72
Busy Husband, Dad, and Youth Minister
GIAW 14: 2nd Place (Easy Mode)2014 Best WriterBronze - GIAW 11 (Normal)Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.2012 Best NewbieContestant - GIAW 9
Hey Nev,

There's a sample game to download that really helped me when it comes to understanding how to use this script. Check it out in the main post!

*
Rep: +0/-0Level 40
RMRK Junior
Hey Nev,

There's a sample game to download that really helped me when it comes to understanding how to use this script. Check it out in the main post!

The link to the demo didn't work a few days ago when I tried it and now it does. Maybe an error on my part I don't know. Thanks Bluntsword!

****
Rep:
Level 43
Somewhat got a project? (\ô/)
GIAW 14: ParticipantParticipant - GIAW 11
That is a really cool script, I was looking for something like this for my GIAW, but it's kinda to late. :(
But anyway, I will use this in the next demo I will release after the GIAW, if you don't mind. ;)
I surely will give you credits for this great work, there is no question about it... :D

pokeball YinOfflineFemale
**
Rep:
Level 86
Suggestion:
Auto Alerts for stuff in the actor section (gain or lose Exp, HP, MP, Level, skills, etc) through an event command.

**
Rep: +0/-0Level 89
I ran into an error when trying to create a hover alert during a common event when drawing a variable in the 'name'

This is what I wrote in the comment:
\hover_alert[-1] { name = "+ #{$game_variables[18]}QP";
icon = 8673; effect = :rise_and_fade; }

This is the error I'm getting:

Script 'MAHoverAlers' line 286: SyntaxError occurred.

unexpected $end, expecting '}'
name = "+ #{$game_variables[18]

pokeball YinOfflineFemale
**
Rep:
Level 86
If you do compatibility fixes, I seem to have found one when using galv's region effects. When you have a hover alert over the player and walk over a region effected by the script, the hover alert constantly update for every tile walked on until you get off of a region effect tile.

My specific error is: I get an item (Auto gain hover alert) and as I'm walking away and enter a region effect tile, the alert keeps displaying over and over again until I stop walking or until I get off of the region effect terrain.

**
Rep: +0/-0Level 55
Waiting ...
found an issue - or maybe I am doing it wrong. I set up a parallel event to make sure that the hove appears over event 2, it appears over its self instead. see demo

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Sorry for the delay in responding. I've been away. If any of you still need help:

@Mewgull - It's because of the "#{$game_variables[18]}". The } is messing it up. I should have predicted that and fixed it, but you can do the same thing with:

name = "+ " + $game_variables[18].to_s + "QP";

@Yin - Can you recreate the error in a demo and share it with me?

@Kalacious - You can only set it to another event by that means with an interpreted code, not an automatic one at the top of the page.

pokeball YinOfflineFemale
**
Rep:
Level 86
Sure, here you go:
http://www.sendspace.com/file/ddblgc

Just get the glowy object and walk on the regions. The alert will keep repeating itself until you stop walking and let it finish. (Those are also MY default settings. I have not tried it with the default settings of the script.)

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Everytime you walk on an event-generating region, galv's script disposes every character sprite and recreates it. This causes the error you detected since the hover sprite is dependent on the existence of the character to whom it is attached; when the character is disposed, so is the hover sprite.

To fix it, I needed to change that mass disposal feature of galv's script and replace it with one that only recreates the character in issue, but I am not entirely sure how that will interact with other scripts or whether it might cause problems down the line. On the plus side, however, it is less resource-intensive and will probably cause less lag in maps with many events.

Anyway, here is the patch:

Code: [Select]
#==============================================================================
#    Hover Alerts + galv's Region Effects
#    Compatibility Patch
#    Version: 1.0
#    Authors: modern algebra (rmrk.net) & galv
#    Date: 5 October 2013
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Description:
#
#    This patch fixes an error between my Hover Alerts script and galv's Region
#   Effects script. Without it, a hover alert will constantly refresh when
#   walking through an event-generating region.
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Instructions:
#
#    Insert this script into the Script Editor (F11) in a new slot, somewhere
#   below galv's Region Effects script but still above Main.
#==============================================================================

#==============================================================================
# ** Spriteset_Map
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    new method - gre_refresh_event
#==============================================================================

class Spriteset_Map
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Refresh Event
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def gre_refresh_event(id)
    # Find any existing event with the same ID
    esi = @character_sprites.find_index {|sprite| sprite &&
      sprite.is_a?(Sprite_Character) && sprite.character.is_a?(Game_Event) &&
      sprite.character.gre_event_id == id }
    if esi
      # Dispose Existing Event
      @character_sprites[esi].dispose if !@character_sprites[esi].disposed?
      @character_sprites.delete_at(esi)
    else
      esi = $game_map.events.values.size - 1
    end
    # Refresh new region event
    @character_sprites.insert(esi, Sprite_Character.new(@viewport1, $game_map.events[id]))
  end
end

#==============================================================================
# ** Game_Event
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    new method - gre_event_id
#==============================================================================

class Game_Event
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Event ID
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def gre_event_id
    @id # Get Event ID
  end
end

#==============================================================================
# ** Game_Map
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    overwritten method - region_effect
#==============================================================================

class Game_Map
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Region Effect
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def region_event(dx, dy, event_id, map_id)
    # Retrieve event from the spawn map
    map_id = @map_id if map_id == 0
    event = generated_region_event($data_spawn_map, event_id)
    # Generate ID
    new_id = @effect_var.length < Region_Effects::MAX_EFFECTS ?
      (@events.keys.max.nil? ? 1 : @events.keys.max + 1) : @effect_var.shift
    @effect_var.push(new_id)
    # Create new Event
    @events[new_id] = Game_Event.new(@map_id, event)
    @events[new_id].moveto(dx, dy)
    SceneManager.scene.spriteset.gre_refresh_event(new_id) # Refresh Event
  end
end

Place it below galv's script but still above Main.

pokeball YinOfflineFemale
**
Rep:
Level 86
Everytime you walk on an event-generating region, galv's script disposes every character sprite and recreates it. This causes the error you detected since the hover sprite is dependent on the existence of the character to whom it is attached; when the character is disposed, so is the hover sprite.

To fix it, I needed to change that mass disposal feature of galv's script and replace it with one that only recreates the character in issue, but I am not entirely sure how that will interact with other scripts or whether it might cause problems down the line. On the plus side, however, it is less resource-intensive and will probably cause less lag in maps with many events.

Anyway, here is the patch:

Code: [Select]
#==============================================================================
#    Hover Alerts + galv's Region Effects
#    Compatibility Patch
#    Version: 1.0
#    Authors: modern algebra (rmrk.net) & galv
#    Date: 5 October 2013
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Description:
#
#    This patch fixes an error between my Hover Alerts script and galv's Region
#   Effects script. Without it, a hover alert will constantly refresh when
#   walking through an event-generating region.
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Instructions:
#
#    Insert this script into the Script Editor (F11) in a new slot, somewhere
#   below galv's Region Effects script but still above Main.
#==============================================================================

#==============================================================================
# ** Spriteset_Map
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    new method - gre_refresh_event
#==============================================================================

class Spriteset_Map
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Refresh Event
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def gre_refresh_event(id)
    # Find any existing event with the same ID
    esi = @character_sprites.find_index {|sprite| sprite &&
      sprite.is_a?(Sprite_Character) && sprite.character.is_a?(Game_Event) &&
      sprite.character.gre_event_id == id }
    if esi
      # Dispose Existing Event
      @character_sprites[esi].dispose if !@character_sprites[esi].disposed?
      @character_sprites.delete_at(esi)
    else
      esi = $game_map.events.values.size - 1
    end
    # Refresh new region event
    @character_sprites.insert(esi, Sprite_Character.new(@viewport1, $game_map.events[id]))
  end
end

#==============================================================================
# ** Game_Event
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    new method - gre_event_id
#==============================================================================

class Game_Event
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Event ID
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def gre_event_id
    @id # Get Event ID
  end
end

#==============================================================================
# ** Game_Map
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    overwritten method - region_effect
#==============================================================================

class Game_Map
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Region Effect
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def region_event(dx, dy, event_id, map_id)
    # Retrieve event from the spawn map
    map_id = @map_id if map_id == 0
    event = generated_region_event($data_spawn_map, event_id)
    # Generate ID
    new_id = @effect_var.length < Region_Effects::MAX_EFFECTS ?
      (@events.keys.max.nil? ? 1 : @events.keys.max + 1) : @effect_var.shift
    @effect_var.push(new_id)
    # Create new Event
    @events[new_id] = Game_Event.new(@map_id, event)
    @events[new_id].moveto(dx, dy)
    SceneManager.scene.spriteset.gre_refresh_event(new_id) # Refresh Event
  end
end

Place it below galv's script but still above Main.

Thanks MA, your patch fixed 2 of my problems that I was having with the region effects script! Including the one effecting hover alerts.  :ghost: :dino: :discosect:

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
You're welcome! What was the other problem you were having?

pokeball YinOfflineFemale
**
Rep:
Level 86
I was using a smooth scrolling script but it would also jump the screen when walking on a region effect, just like with hover alerts. I removed it because it destroyed my eyes to see my game jumping like that lol, but decided to retry it again with the patch and now it works fine!

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member

*
Rep: +0/-0Level 39
RMRK Junior
When the hover is on auto (first comment on page), there is no way to show the picture above other event? (or the char on my case).

I'd like to use this scrip to show an exclamation over the char evertime he passes near a chest, box with an item or to show a picture to press A when he passes near a button. That was the only scrip I found that is close to this.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
I received the following private message:

Quote from: REDACTED date=1399252209
Hello, I am using your code for Hover Alerts, and at one point in my game, the player has to talk to a guard before he can pass through a gate. The guard charges him 500 gold to unlock the gate.  Once that happens, the "-500 gold" comes over the players head as an alert then the game crashes.  The error is:  Script 'Hover Alerts' line 265: NoMethodError occurred. undefined method 'empty?' for nil:NilClass

I tried turning off this kind of hover alert, but when i set the auto gain value to 0, it doesn't get turned off.
If you can solve my predicament, then you will have my thanks!

I responded:

Quote from: modern algebra date=1399258812
In the future, please report errors in the script topic itself. That way, other people could potentially step in when I'm away or too busy to help. As well, it is helpful for other users of the script, since the chances are good that you aren't the only person who has received this error.

Anyway, it's likely an incompatibility of some sort, in the sense that another script has changed the order in which certain methods could be predicted to run. It might be fixable simply by changing the position of this script in the editor.

However, it could also probably be fixed by replacing line 265, which should currently be this:

Code: [Select]
      @hover_alert = @hover_alert_queue.empty? ? nil : @hover_alert_queue.shift

with this:

Code: [Select]
      @hover_alert = (@hover_alert_queue.nil? || @hover_alert_queue.empty?) ? nil : @hover_alert_queue.shift

*
Rep: +0/-0Level 38
RMRK Junior
Hey, I pasted the script into the script editor and made sure everything is right, the only problem is I dont know how to use the script, is there a button for the hover alerts or do I insert emotions like [:)] ???
Unfortunately it doesn't say on this thread so... any help would be good.  :pacman:

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Hi hen1, I am not great at explaining how to use my script, but I put the instructions for it in the header of the script from lines 21-142. There are also instructions relating to configuration from lines 158-196.

If you have any specific questions after reading that, then I can try to clarify. However, I am not sure I could do much better a job simply trying to explain it in general than I did in the script itself.

**
Rep: +0/-0Level 38
RMRK Junior
Code: [Select]
Script 'Hover Alerts' line 751: NoMethodError occurred.
undefined method 'hover_alert' for #<Game_Enemy:0x8d1a760>

There is no chance to get this compatible with GTBS, is it?

pokeball YinOfflineFemale
**
Rep:
Level 86
Hi again MA. I was wondering if there was a way to add code into the Hover alert comment call (or if there is a way to call an alert to auto display through script call, that would be even better). I tried to add a conditional for a popup that automatically shows. But it conflicts with the "has to be the first command" rule. Instead of having 2 different pages that do the exact same thing except for the initial hover display, I was wondering it I could add some code to check if something is true or not.
Maybe an eval or condition argument that can change the "name" argument?


I just activated it from a different event. That works out fine.
« Last Edit: September 01, 2014, 06:09:27 PM by Yin »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Glad to hear it. Sorry that I didn't respond right away. I moved a couple weeks ago and only got my internet today.

**
Rep: +0/-0Level 35
RMRK Junior
I could be wrong but I think the :fade_bounce function is not working properly. Right now, it is working exactly like the :fade function.

Code: [Select]
      when :bounce then @effect_y += (@effect_time > 16 ? -0.5 : 0.5)
      when :fade_bounce then self.opacity += (@effect_time > 16 ? -8 : 8)   
      # Temporary Effects
      when :fade then self.opacity = 16*@effect_time if @effect_time < 16
      when :rise_and_fade

The original script doesn't seem to be telling the script to run the bouncing function. I added the bouncing function manually and it seems to be working now.

Code: [Select]
      when :bounce then @effect_y += (@effect_time > 16 ? -0.5 : 0.5)
      when :fade_bounce then self.opacity += (@effect_time > 16 ? -8 : 8)
        @effect_y += (@effect_time > 16 ? -0.5 : 0.5)
     
      # Temporary Effects
      when :fade then self.opacity = 16*@effect_time if @effect_time < 16
      when :rise_and_fade

With that being said, I have 0 experience in coding and I don't really know if it was some other things interfering with the script. Sorry if I am wrong  ;)

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Sorry, I can see how that would be confusing. By :fade_bounce, I didn't mean that it would fade and bounce, just that it would start fully transparent, fade in then fade out. Whereas :fade starts out at fully opaque and just fades out. But certainly, if you're looking for it to fade and bounce then your code seems like it would work.

**
Rep: +0/-0Level 35
RMRK Junior
Ohhh, okay. Sorry, my mistake.  :( I always seem to jump the gun like that...


*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Not at all. I'm glad you raised it with me and took the initiative to try and find a solution.

**
Rep:
Level 57
RMRK Junior
Another nice script MA. Would this be able to be used with a proximity effect? Like if you are 2 tiles away then it will fade in and any further than that, it will fade back out? Or if you are one tile away, it will only show if you are facing the direction of the event?

That's too bad, I was looking for an option like this with this script.
Anyway, good jon on this script.

 8)

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Another nice script MA. Would this be able to be used with a proximity effect? Like if you are 2 tiles away then it will fade in and any further than that, it will fade back out? Or if you are one tile away, it will only show if you are facing the direction of the event?

That's too bad, I was looking for an option like this with this script.
Anyway, good jon on this script.

 8)

Why is that too bad? That feature was added to this script shortly after Yin requested it.

*
Rep: +0/-0Level 36
RMRK Junior
Epic script Modern Algebra!
I have a suggestion for a thing I need for my project...
I noticed that if the graphic of the event is set to none, the icon is shown in place of the event [1]
If there's graphic, the icon is shown over the event. [2]
Is there a way to be able to show the icon ON the event even if set the graphic? (like in [1], but this time there's graphic exactly below it)
Thanks in advance

I've been thoroughly enjoying this script, but I second a need for this feature if at all possible!  Any way you could implement it?

**
Rep: +0/-0Level 37
RMRK Junior
Very useful script :D!

I have a little problem: I tried changing the z value of the hover graphic in the line 472,
Code: [Select]
self.z = 500
but for some reason it won't go up from 200 (contrary to the Fix Pictures script). Is there a way to go over that, to let's say 500?
Also, is it possible to align to left a hover text?

Not critical problems but I'd love to know :3 Thanks!

やれやれだぜ。

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
What are you trying to get it to appear over? The problem could be that it is in a different viewport.

**
Rep: +0/-0Level 37
RMRK Junior
A fixed picture I use as a fog layer with Z value of 320.

Viewport o.o?
« Last Edit: October 12, 2014, 07:27:18 PM by Kyuukon »

やれやれだぜ。

*
Rep: +0/-0Level 34
RMRK Junior
I installed thi script to my game.
I would like to disable autogain and use it only on certain items. How to do it if it's possible? :)

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Around line 182, you should see this:

Code: [Select]
  AUTOGAIN_HOVERALERTS_SWITCH = 5 #  The ID of the switch used to turn the
                                  # autogain feature on and off. If you never
                                  # want to use it, set this to 0.

So, if you never want to use it, set it to 0. If you want to use it sometimes, set it to any integer. Then you can control it by turning the in-game switch with that ID on or off.

There is currently no way to have it on all the time but only display for some items and not others.