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.

How does script conditional branch work?

I'm just wondering. What does it mean? What do I type in it? The help file doesnt seem to explain this.
And I am talking about the conditional branch in events, not in ruby.

Ive tried to enter the call script command into the condition branch line but that causes errors.
 
I'm trying to make a parallel process that does one thing, but also does another thing but only if a certain script is being processed.
Essentially find a work-around from a complete failure by Near Fantastica.
 
Northern49;248348 said:
ahhhh I see, so if [method] = true/false then do this
Not entirely, the 'if' isn't used in the script branch.

Let's say you want to check whether a switch is on or off, you only have to type:
Code:
$game_switches[1] == true
 
so what would I type into that line to indicate if 2 variables, which are not debug variables but script variables, are the same value

for instance, if $game_map.events[@event_num].x and $game_map.events[@event_num].y is equal to $game_player.x and $game_player.y then do this...
as my conditional branch.
 

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