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,384
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,384
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,739
Reaction score
2,094
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 Profile Posts

Will be focusing on map making today and adding locked chests :LZSsmile:Screenshot 2021-09-16 095316.png
It's hard to stay consistent for at least a week
new enemies for the game I'm working on...
Fricken hell! I dropped a bowl with mac and spam on my brothers floor, and was going to put leftover mac with whatever was still safe in there. It was only after I added the leftover mac that my brother told me he put floor noodles in there, now I wasted my planned dinner for tomorrow!
How to make a cool character 101: Create a messy plot, make the character said "all according to the plan", then somehow the problem is solved.

Forum statistics

Threads
115,104
Messages
1,087,241
Members
149,568
Latest member
Schwarzohr
Top