Status
Not open for further replies.

Freakazoid200

Villager
Member
Joined
Mar 3, 2014
Messages
5
Reaction score
0
First Language
German
Primarily Uses
Hello,

I am a Math-teacher and want to make a game for my class.

I myself worked with the RPGMaker when I was in school, so i am familiar with the programm.

Although scripting within the RPGmaker is new for me.

So my problem,...

I want to implement a Timeattack-mode where you have to answer 10 Summation questions within a timelimit.

The player has to give the right answer through Input Number and if he doesn't do it after 10 seconds i want the event to restart.

After 10 times(Questions) the event ends and stores the number of right answers in a variable.

I got the questions right and I tried the timelimit with a second event set on parallelprocess, but i can't figure out how i can affect(restart) the event with the math-question, at the moment the player makes the input.

I hope i could describe my problem.

I think i need to script this part someway, but i have no idea how.

Maybe it doesn't need scripting, ideas? Can anybody please help me with this?

Thanks

Greetings Lukas
 

Freakazoid200

Villager
Member
Joined
Mar 3, 2014
Messages
5
Reaction score
0
First Language
German
Primarily Uses
Hi, me again.

I tried it myself and wanted to give an update about my findings and maybe to be more precise about the script.

I looked at the inbuild script from the rpg maker about number input and figured...

Can't i just adapt it a little that it works my way?

The script calls an Input number Box. On Enter or after 10 Seconds the Box is closed and the input is stored in a variable.

Edit:

I will post my horrible first tries, tomorrow after i tried a little bit more, before I embarrass myself totally. ;)

Just separating the number input in a script is my problem. :/

class Game_Interpreter
   def ni_t (v,d,t)     # v... Variable ID, d... Digits, t... Time (10 sec)

...
   end
end

2nd Edit:

So,... after my failed attempts to write a script that does what i want,

I focused on the essence of my needs for my project to work...

The closing of the input number window.

After searching for it I stumbled over this script you may need for yourself someday. :)

Automatically close messages after set amount of time, works for input number too.

http://www.rpgrevolution.com/forums/index.php?showtopic=36633

lg Lukas
 
Last edited by a moderator:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,120
Reaction score
15,530
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

May I make a suggestion for what language we should use for plugins?

IMG_1177.JPG
Have you opened all the advent calendar's yet? Don't forget to leave @Starbird_Resources and @WaywardMartian some love!
1638376821276.png
LOOK AT EM GOOOOOOOOOO!
Sorry for the spam with this, I'm just real happy with how this has gone :D
Custom sleep sequence done! :kaopride:
fuY8hyg.gif
The other day I posted a merchant airship tileset and said it was overflow from my Advent Calendar. @Avery said something like "that's one way to flex!" Well, this morning I woke up and realized THAT I MISCOUNTED AND AM SHORT BY ONE DAY. My face and palm are now perfectly fused together.

Forum statistics

Threads
117,104
Messages
1,104,621
Members
153,127
Latest member
Lilica0506
Top