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.

Help Plz. Padlock ?

Hi, im seeking some help. Ive got a event for a padlock on an item. But if you get the code wrong more than twice the input number window just loops over and over, even if you get it right (which isnt ment to happen)

Ive got the Variable code as 6927, the padlock code, and the conditional branches and choices to try again if you get it wrong ect.  Any idea's ?

Thanks in advanced
 
You have a "Break Loop", but no "Loop"

Code:
@>Text: Enter Combination
@>Loop
   @>Input Number: [0006: Combination], 4 digit(s)
   @>Conditional Branch: Variable [0006] == 6927
      @>Text: Yep, that's it!
      @>Break Loop
      @>
     : Else
      @>Text: Nope, try again
      @>
     : Branch End
   @>
  :  Repeat Above
@>Control Self Switch: A =ON

Then, create a New Event Page with the condition "Self Switch  A  is ON", otherwise your event will come back each time you re-enter the map.
 
Yep, I was typing while you were posting your screenshot... 

Just add the "Loop" command before "Input Number" (in your event),
then cut/paste the rest of the commands so they're between the "Loop" & "Repeat Above" lines.

That should get it

Be Well
 

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