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.

Conditional Branch event

Clad

Member

Hi,
  I am using mainly events for my project and after using many Conditional Branches, I've noticed that the words go to the right most part of the "List of Event Commands" box, making them difficult to read. Is there a way to make all the words fit in the event command box?

Many thanks for your time.
 
I don't think there's any way to do this.  To change the way the program works, you'd need to alter its programming, and that's generally looked down upon.  It can't be done with a script, and I don't think there are any options to change it.  Sorry, but I don't think there's any way to fix this problem.  Of course, someone might prove me wrong, but I'm pretty sure that there isn't anything you can do.
 

poccil

Sponsor

It might be better to just restructure the event.  This problem is related to the Event Command list in RPGXP (or VX) and can't be solved with a script. 

Here's a solution.  Move some of the blocks to the end of the event, and use the Label and Jump to Label event commands to refer to those blocks.  Here's how it could be used in an event:

Code:
@> Conditional Branch: Switch [0001] == ON
  @> Jump to Label: Codeblock
  @> Label: End Codeblock
 : Branch End
@> Exit Event Processing
@> Label: Codeblock
@> Text: This was called from a conditional branch.
@> Jump to Label: End Codeblock
The example above illustrates the event code block techniques.  Two labels are used: Codeblock and End Codeblock.  Within the conditional branch, you jump to the Codeblock label, located at the top of the event code block at the bottom.  After the event commands finish, you jump to the end of the conditional branch with the End Codeblock label.

Note that the Exit Event Processing event command was placed before the code block.  This is needed to prevent the block from running if the condition does not hold.

Also, be sure to use different labels for different code blocks if there are more than one within an event.

I hope this helps.
 

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