Trying to add a conditional window on the map...

willasian

Warper
Member
Joined
Sep 5, 2014
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
I've tried looking for this on the site to no avail, so apologies if this is a topic or a similar topic has been covered.

Anyways, I'm trying to make a plugin where a window is displayed while on the field, but only under certain conditions (it's removed during cut scenes, whatever). I'll attach my current code here for you to look, I'm currently getting the "Cannot read property 'addChild' of undefined" error. I've tried using as similar code as that which is being created to other windows, so I really have no idea where I'm going wrong.

Also, this is the first plugin I've ever tried to create, and I started learning JavaScript less than a week ago. I just wanted to make the new project that I'm working on have my own plugin (even though it's super super basic) so I can start to try to understand how to make more complex stuff.

Also, I'm not actually planning on using any user parameters with this, I know it's in the source code, that's just for fun for me. I'll eventually have variable values in the window.
 

Attachments

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts


Todo:
Add fog of war
Add enemy indicators
Make window draggable
Optimise map drawing algorithm (5 seconds to load the map you see, so it's a... poo-poo algorithm)

Any suggestions? :kaoblush:
bleh studio hell job haha at least they like it didnt had time to do much laundry tho ;w;'....YES I DO AT LEAST TAKE A SHOWER everyday!
Ami
--- Food Ingredients ---

Hero: Since the Chef are in Hospital,we can't eat his Dish in 3 Days.
F.Mage: What we have to Eat?
M.Healer: Don't worry,we can Eat the Food Ingredients.
Hero & F.Mage
: Really?

(3 Days Later)

Chef: Hi,Guys. I'm Ba---
(Entire Party Collapse After Eat Raw Meat)
Chef: Wha...WHAT GOING ON HERE!!!!!!
So, I've been thinking about all the complaints about the chibi sprites. Is the problem that they're chibi or that they don't match the character art? If I did a series of chibi/SD character art, would people be interested?
Converting a timer plugin from MV to MZ. Now I really start to fell how awesome the new plugin commands are. This really helps create plugin easier than before!

Forum statistics

Threads
102,910
Messages
995,905
Members
134,359
Latest member
thammycatmi
Top