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.

Common Event and Variable Condiitonal Branch Problems

I'm currently in the process of constructing a game called Line Defense.  It will carry out the basic features of a Tower Defense Game except instead of the towers (characters) shooting at enemies, a battle initiates when there is a character in a certain spot and the enemy passes it.  This is being done with absolutely no scripts (except a side-view battle system), and it's actually coming out very good (even thought the conditional branches are HUGE), but I've hit a snag.  I'm trying to use the characters' levels to determine if they'll be eligible for upgrades.  I'll separate it into spoilers to reduce the size.

I couldn't find a conditional option based on what level a character is, so I decided to make a parallel common event that sets the variables based on the characters' levels.  The parallel event basically looks like this:

Code:
Control Variables:  [0004:Level 1] = [Fighter]'s Level
Repeated several times with different variables.
Wait: 1 frame(s)

Checked:
The switch needed is turned on.

Concerns:
The characters are removed after battle.  Perhaps the characters have to be in the party or the process won't work.  If this is the case, I will probably want to kill myself (I'll have to go through and edit like 5,000,000 conditional branches), but I'll have no other choice.  If you can think of a way to fix this (if it's the problem) without going through each conditional branch, please tell me.

This is pretty basic, I think.  It's included in a regular event.

Code:
Conditional Branch: Variable [0004:Level 1] >= 3
   Conditional Branch: Switch [0021: Upgrade 1] == OFF [color=yellow]#So you can't upgrade twice[/color]
      Upgrade stuff
      Control Switch: [0021: Upgrade 1] = ON
Repeated several times with different values.

Now the problem is that the upgrade process never starts, so I don't really think there is any problem with this

So, if someone can help, it'd be much appreciated.
 
Is the process being called?  If the event that carries the actual branches is not triggered or parallel that could be why.  It doesn't just execute cause the conditionals are fulfilled.  The event must be triggered somehow or run parallel. 
 
You're going to have to show us get a screenshot of the event page.  Are you sure it isn't happening?  Put in a show text command inside the upgrade section.  See if it pops up.
 
Ah, I figured out the problem - I forgot to include the script fix.  VX's variable script has errors in it and since I created a new game I forgot to include the script that fixes it.  Thanks for your help, though.
 

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