Hey all,
Due to the type of project I am working on, the built-in text display function won't be either aesthetically or mechanically pleasing. It's taken some time, but eventually I did find the code to create text within a new window manually via script call:
This works swimmingly, and I probably would have gotten it to work sooner if I'd actually known what I was doing. But, as I am currently uneducated in the ways of JavaScript, I've been unable to figure out how to draw the name of X actor within the text, or draw any variables at all. Of course, codes used in the built-in message windows (such as \N[X] or \V[X]) will not work here, as they are not defined. But I am unsure of what my plan is here, I don't know how to define these commands to get the response I'm looking for.
If anyone can help me out, that would be awesome. I'm happy to provide more details if necessary, I realize I'm definitely missing something obvious.
Due to the type of project I am working on, the built-in text display function won't be either aesthetically or mechanically pleasing. It's taken some time, but eventually I did find the code to create text within a new window manually via script call:
Code:
var window = new Window_Base(x, y, width, height);
window.drawText("Hello World", x, y, maxWidth, lineHeight, alignment);
SceneManager._scene.addWindow(window);
This works swimmingly, and I probably would have gotten it to work sooner if I'd actually known what I was doing. But, as I am currently uneducated in the ways of JavaScript, I've been unable to figure out how to draw the name of X actor within the text, or draw any variables at all. Of course, codes used in the built-in message windows (such as \N[X] or \V[X]) will not work here, as they are not defined. But I am unsure of what my plan is here, I don't know how to define these commands to get the response I'm looking for.
If anyone can help me out, that would be awesome. I'm happy to provide more details if necessary, I realize I'm definitely missing something obvious.