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.

Commenting isn't always ignored.

Well since this sub-forum's description mentions sharing thoughts, I thought I'd mention this.


I was playing around with an event system I made, and noticed that I had a show text command, and two choices after it. However, these choices were in another text box. I thought I made a silly novice mistake of some sort, like adding another line or something to that effect, but nothing fixed it. To solve this problem, I first wrote down some thoughts, such as "How do you get the choices in the same box" and "What are the limits?". Of course the answer is you need to have the choices directly after the text, which is what my event had.

Well, for the most part that is. I had a line of commenting in-between the two event commands! Cut it and pasted it to the top instead, and the event ran perfectly! This was quite interesting to me, considering that RMXP says something like this when you right click on "Show Comment" and select "What's This?": "...A text field to comment on your events in that is ignored by the compiler..."

Well apparently this isn't true. :specs: What do you guys think of this? Is it only me? :smoke:
 
It's quite useful for when you actually want there to be a wait between messages without using wait(x), but yes, it is rather counter-intuitive and against what they say. I'm not sure how it works myself.
 
Oh that's true, you could use it to your advantage. :smile:

On that note (comments), some scripts even use commenting for configuration nowadays I believe. There is a lighting script that does this...
 
It's because of how events process choices and number input. (Which you'll find does the same thing) When the Interpreter shows text, it will check the next event command. If the next event command is a choice or number input command, and the text being shown leaves enough lines for it, it will display and process them in the same window. If the next command is something else (like a comment), or if it would take more than four lines when combined with the text, then it displays the text alone. Actually, this gives me an idea for a short script I could do after I get home from work tonight.
 

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