Forms

EmbarassingMan

Villager
Member
Joined
Sep 5, 2018
Messages
13
Reaction score
2
First Language
italian
Primarily Uses
RMMV
Hello everyone,

I'm just starting scripting, so the question might seem pretty stupid...

How do you create a simple form in a window? I mean adding text-fields, buttons and all the stuff...

I'm playing around with rpg_windows, but can't find much about the above in the technical documentation.

Thank you so much!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,867
Reaction score
5,240
First Language
Dutch
Primarily Uses
RMXP

I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.

 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ
It's not htlm/css... it's javascript.

You need to code it.

To draw some text, there's a function that already exists:
Code:
drawText(text, x, y, width, align)

// by default align is set to "left".
//  you can set it to "center" to center your text, or "right" to draw the text from the right.
As for options, or commands, you use Window_Selectable, or Window_Command.
 

EmbarassingMan

Villager
Member
Joined
Sep 5, 2018
Messages
13
Reaction score
2
First Language
italian
Primarily Uses
RMMV
Sorry guys, I think I got misunderstood... it's not really a javascript question...

RMMV comes with a component library whose components are Scenes, Windows, Sprites and more. My question was more about the fact that the library has (or has not) components allowing you to build a form-like UI (or more simply: enabling a user to type a text).

I would say no, as even the name editor doesn't follow this pattern, but please correct me if I'm wrong.

Thanks
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
Correct, there is nothing in the RPG Maker MV core scripts which enables a player to type into the game using their keyboard.

If you want to code this yourself, you can study my Notepad plugin (link in signature) - this creates a new scene where players can type notes with their keyboard. This is all Javascript using the RPG Maker MV format of scenes/windows.

Another alternative to study is Biud's Keyboard Input Dialog which creates an <input> HTML element over the game screen.
 

EmbarassingMan

Villager
Member
Joined
Sep 5, 2018
Messages
13
Reaction score
2
First Language
italian
Primarily Uses
RMMV
Thank you so much Aloe, the Notepad plugin was really illuminating... I would not be able to make it without that...

Screen Shot 2018-09-07 at 22.55.59.png
 

EmbarassingMan

Villager
Member
Joined
Sep 5, 2018
Messages
13
Reaction score
2
First Language
italian
Primarily Uses
RMMV
This is really amazing... and has a lot more of what I was planning to do. Looks like we are all after online gaming :D
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top