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!About randoms

yonini

Member

i need help about random quietion.
i have event and the event Ask a random question.If the player wrong The event down Hp's player.

Thanks if you can hlep me!
 
new event >>
(1)event comand: control variables
select 'random'. if you have 5 questions, set it 1 ~5.
save it to some variable- say, var[001]: rand question.
(2)conditional branch >> variable >> var[001]: rand question
equal to >> 1
( show text- 1st question +show choices (answers). if wrong: 'change HP' comand)
(3)same thing, for question 2-5.
(4)finish: erase event/ whatever you want to happen next.
 

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