Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[RESOLVED] Show text from inside Game_Map

Hi guys,
I'm making an examining system, where you can right click on an enemy and view text about it, pretty much a description.

I have a hash set up in a class called Sambase (dont ask aha)
when you click the 'Examine' button, it runs:

Code:
     @enemy_description = Sambase::Enemy_Descriptions[@abscmd_id]

     $game_temp.message_text = 'No information available.'

     $game_temp.message_text = @enemy_description if @enemy_description != nil

     $game_system.map_interpreter.command_101

But for some reason, when i click examine, it does absolutely nothing at all. No error, nothing :\
What am I doing wrong?
 
Makers XP and VX do not have direct mouse support, you need a script for right-click to do anything. Are you using a Mouse/Keyboard script? There are quite a few by various authors; AnyKey, vgvgf, MACL team, DerVVulfman each have their own version, I believe even cybersam has one too. You should show us the call you're using to check the mouse button, with a link to the script you're using.

Only reason I say it might be the mouse script, or the call to check if the right click button might be wrong, is because I made a test event similar to your snippet, and it executed like it should. (Only problem I was having is figuring out how to end the message as it kept repeating, that should be the next problem you'll have to figure out.) Again, without you showing your input call, and without knowing who's mouse script you're using, there isn't much else to troubleshoot with.

Sorry I couldn't help you any further, but I'll try to make a point to stop in tomorrow and help you. Good luck!
 
It's alright - I forgot about a return I had put in above if conditions weren't met - conditions for another part of code.
I had initially thought I was doing something wrong with calling the $game_system.map_interpreter.command_101, but it was right.
I've fixed it now :)
Thanks anyway, Kain :D
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top