PluginName: SDJB_X
Author: ShadowDragon
(re-created ChipSet banner, Name Below is seperated).
This Plugin is more of a series of MMBN (MegaMan Battle Network).
I will release some functions that are used inside MMBN serie.
The first in this serie is:
SDJB_LottoNumbers:
Code:
How it works
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
MegaMan lottery is a mechanic to find lotto numbers, and gain
unique items or hard to find items.
The base can get 3 kinds: Items, Weapons, Armors.
to alter the text, you can use the shortcut for , %1 and %2.
%1 refer to the itemType (an Item, a Weapon, an Armor).
%2 refer to the item, weapon, armors name.
Sometimes, when the vowel can be tricky when to use "a" or "an",
use the aExceptions and anExceptions for those items (first word is checked).
While you can use it ingame, the only thing for now, to use this mechanic
is as follows:
$gameVariables.value(70) = 0 // reset to 0 before input
Input Number: Input Number, 8 digits // always 8 digits
checkLottoNumber($gameVariables.value(70)) //70 is the variable id.
Use the any variable ID you like (reset to 0 before hand.)
the scriptcall handle all message and rewards which is given once.
While each digit number 8 digits long, numbers like 90344 = 00090344.
In case your digit is 7 number long, the first number is 0 so you can
use that in the game as lotto number.
SDJB_NaviCustomizer
Code:
Introduction
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
The NaviCustomizer allows you to alter the base stats for either
the party leader or the entire party using the pieces you created
and placed on the field.
The grid starts with the default 4x4 layout, like in the MMBN series.
The command line is on the 3rd row and follows the original rules.
To open the NaviCustomizer scene, use the following script call:
SceneManager.push(Scene_NaviCustomizer)
Place the cursor.png inside "img/system/" folder.
Command Line Rules
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
Blocks with a plus in the center are "PlusPart" and CANNOT touch
the command line.
Non-PlusPart blocks MUST touch the command line!
Breaking either of these rules creates a bug effect.
Bug effects are currently applied to base stats.
Create NaviCust Pieces
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
NaviCust Pieces are made from armors that have the tag <NaviCust>
either at the beginning or end of their name.
These are recognized as NaviCust Pieces and added to the list in the scene.
To create the shape of a piece, use a special format.
Example: 111|001|000 outputs as:
[1,1,1]
[0,0,1]
[0,0,0]
Developers can create any shapes needed, along with predefined color options.
All <NaviCust> armor, <ExpMem> items, and <rotate color> items
are hidden from the player's inventory.
(Bug) Effect Rules
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
Effect rules are applied immediately when a piece is placed on the field.
If placement rules are broken, bug effects are applied afterward.
(Total = base + effect + bugs)
Effects must follow this JSON structure:
{"mhp":50,
"mmp":-20,
"atk":()=> $gameVariables.value(4),
"def":-5,
"mat":8,
"mdf":() => Math.random(1,5),
"agi":3,
"luk":-5}
All values are base stats that can be numeric or functions returning a number.
Incorrect placement results in a value of 0.
Bug effects follow the same rules but have slight differences:
Bug Rules (3 options):
→ On Command Line:
Use if param isPlusPart = true
→ Outside Command Line:
Use if param isPlusPart = false
→ On Color Touch:
Used when colors collide
Exception: items with the <nullifier> notetag ignore bug effects.
When placed, any bug effects that would normally apply to that piece are ignored.
It’s recommended to have only one <nullifier> item in the entire game,
though multiple are allowed if desired.
Items and Rotation
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
Items with the notetag <ExpMem> can extend the grid (max 2×):
→ First extension: horizontally (adds 1 column on the right side)
→ Second extension: vertically (adds 1 row at the bottom)
Further extensions are not possible (MMBN NaviCust limit).
To rotate a piece (PageUp or "Q"), create an item with the tag <rotate color>,
for example: Rotate Block <rotate green>.
The piece rotates clockwise only if the player has the corresponding item.
Navigation
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
The cursor moves from the list to the grid using the LEFT key.
If the grid is empty, the cursor remains in the list.
Press OK to pick up or place an item; press Cancel while dragging to return it to the list.
Duplicate items display a number showing how many remain.
The number decreases as items are placed, and disappears when only one remains.
If the player has a rotate item, pressing PageUp or "Q" rotates the piece accordingly.
Known Bugs
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
Picking up pieces may cause them to jump unexpectedly.
TODO List
Íž Íž Íž Íž Íž Íž Íž Íž Íž
Adding skills or states is not yet supported.
Window sizes, background, and foreground updates are planned for the next version.
Add main menu command as optional
while MZ are different, I aim for MV only at this point, but your free to help me for MZ combability
for it if you did like.
Which function do you want to see back and like in MMBN 1-6 serie?
If you want a function exist in MMBN, let me know and I see what I can do.
TODO List (made in any order when possible)
- NaviCust => First Release
- BBS Board => (T.B.A.)
- Request Board => (T.B.A.)
===
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))
=== TERMS OF USE === Free for Non-Commercial and Commercial use when credit is given. credit one of the following: ShadowDragon