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.

Event help (tell your score)

Hi guys I need help about eventing and Im pretty sure someone can do it with events.Im thinking of a simple question and answers game which would calculate the right answers(input) based on the 10 questions given and be able to tell your score.

It will checked for the right answers and compute it thru the use of arrays so that you can tell the score. The answers will be temporarily stored in a data or note(or any possible ways) which can later be retrieved. I hope you got my idea , thanks alot.
 

Nachos

Sponsor

Its a pretty simple thing so I'll just hand you out a sample of the Q&A:

Code:
 

Just create the desired event and follow the sample in order to make it work.

It just shows you how to:

 

[b]-Add x to a variable:[/b]  [b]Control variables:[/b] [001-Score] + X

[b]-Check the score:[/b] [b]Conditional branch:[/b] if [001-Score] >= 7

[b]-Show it to the player:[/b] [b]Text: Your final score is \V[1] ![/b]

 

[i]The name and number of the variable are just EXAMPLES[/i]

 

[b]Text:[/b] Is TM 28 Gravedigger?

[b]Show options:[/b]

If Yes

 Nope! Wrong answer!

If No

 Correct! 

 Control variables: [001-Score] + 1

end

[b]Text:[/b] 12+5

[b]Show options:[/b]

If 14

 Nope! Wrong answer!

If 16

 Nope! Wrong answer!

If 17

 Correct! 

 Control variables: [001-Score] + 1

end

...ETC

[b]Text: Your final score is \V[1] ![/b]

 

[b]Conditional branch:[/b] if [001-Score] >= 7

[b]Text:[/b] You've passed!

else

 [b]Text:[/b] You've failed!

end

 
 
Hi nachos Ill definitely take a look and try it myself. I see that you use the variable to store the answers and its good.What I have in mind is using notes where the answers would be stored and from there answers will be computed, would it be possible?
 

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