MV SDJB_InlineMsgModes

PluginName: SDJB_InlineMsgModes
Author: ShadowDragon

While it require my base to work, and an extension of SDJB_LottoNumbers,
This can be used outside of it.

This Plugin MUST be placed above my SDJB_LottoNumbers if you want to
use it to fully replicate the Lotto mechanic used in MegaMan Battle Network.

Some Screenshots (without conditional setup)
Spoiler: Screenshots (in-game + setup)
ChoiceV set choices vertical.
inline1.png


Choice or choiceH set them horizontal after the first text inline.
inline2.png


Or set them at the bottom
inline3.png


the 1 after 70 %input8-70-1% is a boolean, 1 = true for OK, (default = true)
and can be left out, use 0 to disable the OK.

unlike choices, it can be placed on top, middle, bottom, depending where you add it.
inline4.png
Spoiler: How it works
Code:
 Original Made with combination of SDJB_LottoNumbers, while it replicate
 MegaMan Battle Network Lotto Numbers Input Mechanic.


 How it works
 ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
 More control how Choices or Number Input works and easy to swap
 between Event Command Choices and Event Command NumberInput.

 So how do you swap?
 Event Command Choices and Event Command NumberInput works as default.
 to use it inline, it require a little setup.


 Input Inline
 ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
 %input-70%  = input number = 8, saved in variable 70 with OK!
 %input4-70% = input number = 4, saved in variable 70 with OK!
 %input4-70-0% = input number = 4, saved in variable 70 without OK!

 To illustrate the above in different ways:

 Text line here
 %input-70%
 New text here

 output like this:
 Text line here
 0 0 0 0 0 0 0 0  OK
 New text here

 In case you do it first it goes on the first line.


 Choice Inline
 ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
 Choices works slightly different and require a conditional branch
 based on the settings by name!

 %choice.....%  or  %choiceH....%  put the choices horizontal (3 per row).
 %choiceV...% place them vertical.
 %choiceH-opt1,opt2,opt3:71% set 3 choices and save your select choice
 inside variable 71.

 example:

 What is your favorite color?
 %choiceH-Blue,Green,yellow, Red, Pink:71%

 output like this:
 What is your favorite color?
 Blue  Green  Yellow
 Red   Pink

 So if your select Green, than in the conditional branch:

 if: script: $gameVariables.value(71) === "Green"
   condition = true
 else
   condition = false
 end

=== TERMS OF USE ===
Free for Non-Commercial and Commercial use when credit is given.
credit one of the following:
ShadowDragon
ShadowDragonJB


=== WARNING ===
YOU ARE NOT ALLOWED TO:
* MODIFY without permission
* EXTEND without permission
* TAKE CODE without permission
* CLAIM AS YOU MADE IT
* REDISTRIBUTE but link back to the forum or itch.io
* SELL this product as standalone.
* DO NOT REMOVE THE HEADER.

Download on itch.io (as it require my SDJB_Base (mini or main))
Added some screenshot (+ Terms that I forgot to add).

pushed out a quick fix as well.
- for some reasons, the choices got squashed on horizontal,
which is fixed.

- OK check for number input when left out, couldn't process OK.
this is also fixed in the process.

Enjoy the feature of this powerful inline message modes.
if you use SDJB_LottoNumbers, you can now replicate the entire
MegaMan Battle Network lotto mechanic 🙂

leave feedback or suggestions.

Original thread: https://forums.rpgmakerweb.com/threads/sdjb_inlinemsgmodes.179676/