RPG Maker MV

RPG Maker MV

BankReaper 2016 年 2 月 9 日 上午 2:30
How can I make math random question?
Hello guy,
I want to make math game but I still script for make random question.

Ex. my math question is " 150 (random1) +(random operation +,-,*,/) 50 (random2) = ?
and script has calculate correct answer for check with player answer (200)"
If player answer is true (ans == 200) will go to event 1.
If false (ans !=200) will go to event 2.

Thanks :)
< >
目前顯示第 1-2 則留言,共 2
gocki 2016 年 2 月 9 日 下午 1:26 
Hi,

if you want to make simple random questions, than you could also use events instead of scripts. You could make something like this:

Control Variables : #0001 RandomNumber1 = Random 1..200
Control Variables : #0002 RandomOperator = Random 1..3
Control Variables : #0003 RandomNumber2 = Random 1..200
Control Variables : #0004 Result = RandomNumber1
If : RandomOperator = 0
Control Variables : #0004 Result += RandomNumber2
Text : What is \v[1] + \v[3]
: End
If : RandomOperator = 1
Control Variables : #0004 Result -= RandomNumber2
Text : What is \v[1] - \v[3]
: End
If : RandomOperator = 2
Control Variables : #0004 Result *= RandomNumber2
Text : What is \v[1] * \v[3]
: End
If : RandomOperator = 3
Control Variables : #0004 Result /= RandomNumber2
Text : What is \v[1] / \v[3]
: End
Input Number : PlayerAnswer, 5 digits
If : Result = PlayerAnswer
Text : Correct! You are really smart!
: Else
Text : NO! The correct answer is \v[4]
: End
BankReaper 2016 年 2 月 10 日 上午 4:44 
Ok thank you so much :)
< >
目前顯示第 1-2 則留言,共 2
每頁顯示: 1530 50

張貼日期: 2016 年 2 月 9 日 上午 2:30
回覆: 2