Notice: fwrite(): Write of 483 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 59 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 1714 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 8192 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - Input selection

The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: DoctorTodd on September 19, 2012, 09:15:39 PM

Title: Input selection
Post by: DoctorTodd on September 19, 2012, 09:15:39 PM
I have a bit of code that could allow me to write a script to have an input selection. I have two questions do you think it is worth it and if I were to write it like my difficulty script do you think it would work?
Title: Re: Input selection
Post by: DoctorTodd on September 21, 2012, 09:35:52 PM
Does any one have an opinion?
Title: Re: Input selection
Post by: modern algebra on September 21, 2012, 10:11:35 PM
I don't know what you mean by a script that has an input selection. That is very vague.
Title: Re: Input selection
Post by: DoctorTodd on September 21, 2012, 10:46:29 PM
I mean a script that will give a game input selection, where you go into the options and modify the controls.
Title: Re: Input selection
Post by: D&P3 on September 22, 2012, 02:32:20 AM
So you mean modifying the input values so Input C equals something else besides ( "Z", "Space" and "Enter" )?
Title: Re: Input selection
Post by: DoctorTodd on September 22, 2012, 02:37:34 AM
What I mean is a scene that allows the player to change the controls, like this.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fminecraftblog.com%2Fwp-content%2Fuploads%2F2011%2F03%2Fminecraft-controls.png&hash=89691bd575035a283530e1c40df78d9d15b9ba5f)
Title: Re: Input selection
Post by: D&P3 on September 22, 2012, 02:42:54 AM
Yes it is worth it. Some default controls on some games are terrible, so having the option to map your own is definitely worth it.
I don't see why it wouldn't work if it was written the same way as your difficulty script.
It would just be an option though, so not something that necessarily must be forced to set prior to engagement like your difficulty script is. :)

Do it 8)
Title: Re: Input selection
Post by: DoctorTodd on September 22, 2012, 02:47:30 AM
Alright I guess I will then.  :)

Title: Re: Input selection
Post by: DoctorTodd on September 23, 2012, 07:21:49 PM
I started working on this today but before I go any further is there an initialize method that will only occur once? I swear I've seen it before but I can't remember what it is.
Title: Re: Input selection
Post by: D&P3 on September 23, 2012, 07:30:59 PM
Game_System I believe

It initialises before even hitting the title screen, then loads up when you load a save game... Is that it? I'm not sure :(
Title: Re: Input selection
Post by: DoctorTodd on September 23, 2012, 07:35:27 PM
No it was something like this
def first.initialize
It was a method that would be called once and then never be called again.