Is there a way to automatically print something on a connected printer with RPG VXA?
It would be cool to have this function for various reasons. I wouldn't be surprised is there's no way to do so.
I’m using Quest Journal from Modern Algebra (VX, version 2.1c). I don’t really get this one (I blame the language barrier): can the script give the rewards automatically after completing the quest or I have to event it? On the demo example, there is a mission for a Long sword, and it appears to be done automatically (no change weapon: Long Sword +1). But for other examples, is done manually. So, I got confused by that.
It's a dumb questio but... hell, I asked a lot of dumb questions so hopefully noone will mind one more lol
what's the "opposite" script call to Graphics.freeze ?
basically I wanted the screen to freeze, do some stuff in background then unfreeze so that the player sees the change instantly.
I know that I can use Graphics.transition but I was wondering if there is an actual "instant" transition (without the fading effect you normally see on transition).
thanks, that actually worked 😀
How do you go about modifying Window_Help so that you can center help text?
Window_help uses draw_text_ex, which does not seem to have the option for alignment.
draw_text does.
So perhaps try changing the refresh from draw_text_ex(4, 0, @text)
to draw_text(x, y, width, fitting_height(line_number), @text, 1)
Have no idea if that will work.
It should work, but message codes will not be recognized that way.
Message codes are the reason why that method got no alignment option in the first place, I guess.
It is possible to make the text centered even with the draw_text_ex method, but it requires additional calculations after the text has been fully processed to get the width of the displayed text correctly.
RIght, the text codes need to be removed first and every time you use \I[n], you add the text width by 24 (draw icon), as well as if you're using \N[x], for draw actor name. Possible, but not simple.
It's much more elegant to just track the X position of the text than to process the whole text again for message codes, not to mention that there are tons of other message codes (mostly custom made from other scripts) that may alter the text position in different ways.
The text position is already tracked in draw_text_ex, so you just need to use that to calculate the final position of the centered text. It's actually fairly simple if you approach it this way. I use this method in my custom scripts made for commissions to provide every possible options for my customers with their text settings, even with message codes.
If you want to save some processing time, you can also make a flag that will make the method skip the real drawing and will only calculate the necessary variables for text positioning, than disable that flag, store the variables, and run the method again now with the corrected X/Y positions.
Or you can use a dummy window that will draw the text, get the necessary data from there. You can use that data to position the text and you can also copy the contents of that dummy window too instead of going through draw_text_ex again for drawing the text. This is what I saw many people do in some of their scripts on older engines.
For the sake of what I'm looking to achieve, Roninator2's solution works for me, but thank you for the detailed info/explanations, TheoAllen & Sixth. (It was near impossible to get info on why alignment didn't work for the help window.)
How would you check if a whole number value is an odd or even number?