Icelord888

Veteran
Veteran
Joined
Apr 13, 2018
Messages
48
Reaction score
24
First Language
Romanian
Primarily Uses
RMMV
So getting straight to the point:
I have:
Code:
 * @param Background Image
 * @desc The background image that is to be scrolled
 * @type file
 * @dir img/titles1
 * @default Book
 
var impactMVars = impactMVars || {};

impactMVars.parameters = PluginManager.parameters('Ice_ImpactMenu');
impactMVars.background = impactMVars.parameters['Background Image'];

My question is, how do I use that parameter, what is it actually parsed there? (is it a path, it is a bite array, something else!?)
The F8 console won't tell me if I place a watch on impactMVars.background.

Do I just
this._back_img = ImageManager.loadTitle1(impactMVars.background); //or
this._back_img = impactMVars.background; //or something else?


To give you some context on what I am trying to do, is to manipulate the title background image through my plugin, but until now I only managed to remove the old one...
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,387
Reaction score
1,672
First Language
Dutch
Primarily Uses
RMMV
if you have the background image, you use the first one

this._back_img = ImageManager.loadTitle1(impactMVars.background);

which goes back to your parameter to read.
if the function is compleet in the way you want to set it.
if the function is not completed, it wont work either :)
 

Icelord888

Veteran
Veteran
Joined
Apr 13, 2018
Messages
48
Reaction score
24
First Language
Romanian
Primarily Uses
RMMV
if you have the background image, you use the first one

this._back_img = ImageManager.loadTitle1(impactMVars.background);

which goes back to your parameter to read.
if the function is complete in the way you want to set it.
if the function is not completed, it wont work either :)
So I parse the parameter correctly right?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,387
Reaction score
1,672
First Language
Dutch
Primarily Uses
RMMV
yes, but parsing is not required unless you want it too or a different
reason you need to parse it.

than you do mostly something like this:
impactMVars.background = parse(impactMVars.parameters['Background Image']);

but that is entirely what you want to do exactly, static image can be chosen
by default in teh editor -> system part.

dynamically to choose one when you progress require a different approach.
while there are 2 nice one.

YEP_DynamicTitles and MrTs_ProgressTitle are 2 nice plugin to change
the title screen.

MrTs plugin only change it UPWARDS, but not downwards!
Yep one can change it through plugin command.

but it really depends how your plugin works on the title screen,
and or per save file.

single savefile works perfectly with YEP's one, multiple one probably not so much,
while it remember the latest save file.

so it really depends how your works and when to know when to parse it.
but some advance coding is something I still learn. but there are some sites
and alot of information how, when, where to parse it nicely :)
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,743
Reaction score
2,095
First Language
EN
Primarily Uses
RMMZ
By default plugin parameters are retrieved in string format, so like ShadowDragon says, you shouldn't need to do any parsing here.

Note that you can type impactMVars.background, or any other references you want to check, directly into the console at run-time and press Enter to evaluate it. Press F8 during test (F12 if it crashes on launch) to show dev tools, then make sure the Console tab is selected.
 

Latest Threads

Latest Posts

Latest Profile Posts

I couldn't help myself, so I edited the tiles a bit and made a birdhouse :LZSsmile: I hope I will finish the town today!Screenshot 2021-09-17 134349.png
How do I find the threads I have watched? It's been so long I've forgotten :kaoswt:
So far, this is how the wall tileset its looking in-editor. :kaoswt2:
1631863283853.png
Still thinking on details to add.
Added a plugin to RMMV Plugin Releases with all relevant info but it looks like the topic wasn't approved for whatever reason. Cool.
Working in the IT industry:
- "How long does it take?".
- "It takes 1 month".
- "What if we add more people to the project?".
- "It would take 2 months".

Forum statistics

Threads
115,128
Messages
1,087,437
Members
149,624
Latest member
dehyoune
Top