Crestfall9

Procrastinator
Member
Joined
Mar 5, 2018
Messages
13
Reaction score
6
First Language
Indonesian
Primarily Uses
RMMV
I've been seeing this pretty much everywhere.

What is the purpose of:
Code:
var Imported = Imported || {};
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,457
First Language
French
Primarily Uses
RMMV
nothing
it's a convention between developers to easily manage plugins.
It only a simple global variable, you can add what you want in.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,720
Reaction score
8,503
First Language
German
Primarily Uses
RMMV
Basically it can be used to check which other plugins have already been loaded, to see if requirements of the current plugin are met.
 

Crestfall9

Procrastinator
Member
Joined
Mar 5, 2018
Messages
13
Reaction score
6
First Language
Indonesian
Primarily Uses
RMMV
What the hell I still don't get it.

Code:
var Imported = Imported || {};
Imported.InsertSomethingHere = true;

What is the meaning of this.

EDIT: You know what, I just googled the explanation quickly. Should've done this sooner. Always thought it's just RPGMaker thing.

Close this thread.
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

RivalRamen_Games wrote on jacobv1014's profile.
I really like your profile picture! Who is that in it? is she an OC?
Making his first game
This scene was suppose to be a test... but now, it's going in the game as official side/optional content. :kaosalute:


functionality(This is function demo not game demo)
1 The door of ABS map can open upon clearing all the monsters
2 Secret room/road arrow/lighting/whatever others can be shown upon clearing too
3 Boss HP bar and loot effect, loot jump and item name color as well as the pick-up animation effect
4 Back to town and "victory aftermath" screen for ABS maps/rooms

Forum statistics

Threads
115,330
Messages
1,089,030
Members
149,992
Latest member
Quant
Top