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 1 Guest are viewing this topic.

**
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.