I've tried everything I could that's why I'm asking just in case. I know it's not correct but it was worth a try
Screen Variables
JS Plugin Releases (RMMV)Did you try it with the correct syntax? Randomly putting apostrophes instead of ticks is not worth a try, it's guaranteed to not work 😉
When you try it with the correct syntax, what happens? Again, more information is needed if you're going to get help.
Is there a way to add a window skin and change the font type? I've tried using this plugin on Window_Variable and nothing happens.
For font you can use any message plugin with that function, for example - Message Core (YEP), just don't forget to add extra backslash before command, example from YEP plugin - \\fn<x>
For window skin you can simply use picture with any look you want, just show it before script call.
Is it possible to increase or decrease the text size?
Same answer as above your question. You can use any message plugin with that function.
Update. I forgot that there is default text command for that. \\{ - for increase and \\} - for decrease will do the job, unless you want more precise text size then you need message plugin for that.
It was simple, I used \\FS[x] and it worked thanks
Is there any way to make the numbers always stay in the middle instead of always growing from left to right?
I hope that it's okay if I share my modification of the plugin here. If not, I'll take it down.
I really liked what this plugin could do, but I also wanted to have the text be able to fade in and out instead of instantly being created or deleted, so I added a new function that allows for the opacity of the text to be adjusted over time (the level of opacity and amount of time both being customizable).
The function for creating new texts (addVarHudText) has a new parameter for opacity with the standard value range of 0 to 255 (it should default to 255 so existing scripts should be okay if they don't have the additional parameter), and there's a new function this.textVarFade('Key', alpha, time) that sets the opacity of an existing text to the specified alpha value over the specified number of frames.
this.textVarFade('Key', 100, 60) will set the text with the ID of 'Key' to an opacity of 100 over 60 frames (1 second). The rest of the code will continue to execute even when the text is fading, so wait commands may be needed if several sequential text fades are desired.
Important: if you have YEP_MessageCore, you need to go to line 690 of that plugin and comment out this.contents.outlineColor = 'rgba(0, 0, 0, 0.5)'; as otherwise the text's outline will not fade away with the rest of the text. I haven't seen any adverse effects from removing this line from MessageCore, but that does not mean there aren't any.
Here's my '1.05' version of the plugin for MV (No plans for MZ, I don't have it): Google Drive Download
Please use at your own risk, I'm by no means a professional plugin scripter. This is purely my own modification of the plugin with no endorsement from the original developer. If you do not intend to use the opacity fade functionality, then I recommend sticking with the latest official version in the first post.
I really liked what this plugin could do, but I also wanted to have the text be able to fade in and out instead of instantly being created or deleted, so I added a new function that allows for the opacity of the text to be adjusted over time (the level of opacity and amount of time both being customizable).
The function for creating new texts (addVarHudText) has a new parameter for opacity with the standard value range of 0 to 255 (it should default to 255 so existing scripts should be okay if they don't have the additional parameter), and there's a new function this.textVarFade('Key', alpha, time) that sets the opacity of an existing text to the specified alpha value over the specified number of frames.
this.textVarFade('Key', 100, 60) will set the text with the ID of 'Key' to an opacity of 100 over 60 frames (1 second). The rest of the code will continue to execute even when the text is fading, so wait commands may be needed if several sequential text fades are desired.
Important: if you have YEP_MessageCore, you need to go to line 690 of that plugin and comment out this.contents.outlineColor = 'rgba(0, 0, 0, 0.5)'; as otherwise the text's outline will not fade away with the rest of the text. I haven't seen any adverse effects from removing this line from MessageCore, but that does not mean there aren't any.
Here's my '1.05' version of the plugin for MV (No plans for MZ, I don't have it): Google Drive Download
Please use at your own risk, I'm by no means a professional plugin scripter. This is purely my own modification of the plugin with no endorsement from the original developer. If you do not intend to use the opacity fade functionality, then I recommend sticking with the latest official version in the first post.
Original thread: https://forums.rpgmakerweb.com/threads/screen-variables.113484/