Posted 23 December 2014 - 04:59 PM
I created this API so I could easily create a quiz game!
to download this api type: pastebin get PFMNxctA gameapi
into your computercraft computer and press info
To use this enter this code to the top of your quiz game:
os.loadAPI("myapi")
And to add a level type this:
gameapi.quest(qq, q1, q2, a)
replace qq with the question
replace q1 with the first possible answer
replace q2 with the second possible answer
and finally replace a with the correct answer
to download this api type: pastebin get PFMNxctA gameapi
into your computercraft computer and press info
To use this enter this code to the top of your quiz game:
os.loadAPI("myapi")
And to add a level type this:
gameapi.quest(qq, q1, q2, a)
replace qq with the question
replace q1 with the first possible answer
replace q2 with the second possible answer
and finally replace a with the correct answer