(SCRIPT REQUEST) - VARIABLE TEXT POPUP
Posts
Pages:
1
I'm working on an RPG Maker VX Ace project consisting of an action-based evented battle system that relies on variables for the most part. Ones that hold the number of damage dealt to an enemy.
I was wondering if there's a way to make a damage popup similar to the way it works in battle out of battle. Like a means of making a selected variable popup.
Such as when attacking an enemy to call a script that draws a selected/specific variable on-screen for a second and makes it fade away or something of the like.
Would be greatly appreciated as well as credited. I'm sure the idea of a variable popup would help others greatly as well for other things. Such as a player walking over a coin on the ground causing a variable pop-up showing current gold or something.
I was wondering if there's a way to make a damage popup similar to the way it works in battle out of battle. Like a means of making a selected variable popup.
Such as when attacking an enemy to call a script that draws a selected/specific variable on-screen for a second and makes it fade away or something of the like.
Would be greatly appreciated as well as credited. I'm sure the idea of a variable popup would help others greatly as well for other things. Such as a player walking over a coin on the ground causing a variable pop-up showing current gold or something.
You can use a message box for that, using the \V(n), with braces instead of parentheses, and where n is the variable's ID.
But I think this doesn't fit what you are asking for, so...
But I think this doesn't fit what you are asking for, so...
Here is something I wiped up really quick:
http://pastebin.com/rKiDnLwC
Here's an example of my event that called it
Ignore that comment, that's for a different script I made :P
just change the line
string = "test"
to
string = $game_variables
http://pastebin.com/rKiDnLwC
Here's an example of my event that called it

Ignore that comment, that's for a different script I made :P
just change the line
string = "test"
to
string = $game_variables
XAS = best action system out there period.
You could also use variables to keep track of the onscreen locations of each enemy. Then have something draw the HP to those locations (perhaps...) In other words it may be possible to do without scripting.
author=Quasi
Here is something I wiped up really quick:
http://pastebin.com/rKiDnLwC
Here's an example of my event that called it
Ignore that comment, that's for a different script I made :P
just change the line
string = "test"
to
string = $game_variables
It works perfectly. I have only one question. Is there a means of changing the font for the numbers and perhaps the color? If not that's fine. I just use a different font in general for my game that sort of makes the default font shown when drawing the numbers not fit in as well.
EDIT: Also I am unsure how to make it call a SPECIFIC Variable. WHen I set "String" at the snippit of Call Script command it just pops up a 97 not the number held in variable 97. Am I doing something wrong?
author=kory_toombs
XAS = best action system out there period.
You could also use variables to keep track of the onscreen locations of each enemy. Then have something draw the HP to those locations (perhaps...) In other words it may be possible to do without scripting.
Also I am considering XAS it just has far too much in it I actually need and is a bit too flashy and requiring of graphics to use. I'll probably cave and try it at some point but it feels too much and too fast and reflexive for what I am making.
Yeah some reason I was thinking I should add color, like heals be green and crits red. But I completely forgot lol
http://pastebin.com/rKiDnLwC
I updated it, just added color option to the end of the script call. Color is optional, if you leave it out it will use the default color which is white.
For color you have to set it as:
color = Color.new(red, green, blue, alpha)
values r 0-255, alpha isn't required.
To change the font go to line 64 and change it to w.e. font you want it to be.
As for showing the variable, (forgot brackets don't show on these forums ). you would do:
Example:
would show w.e. is in variable 2
http://pastebin.com/rKiDnLwC
I updated it, just added color option to the end of the script call. Color is optional, if you leave it out it will use the default color which is white.
For color you have to set it as:
color = Color.new(red, green, blue, alpha)
values r 0-255, alpha isn't required.
To change the font go to line 64 and change it to w.e. font you want it to be.
As for showing the variable, (forgot brackets don't show on these forums ). you would do:
string = $game_variables[VARIABLE # IN HERE]
Example:
string = $game_variables[2]
would show w.e. is in variable 2
author=Quasi
Yeah some reason I was thinking I should add color, like heals be green and crits red. But I completely forgot lol
http://pastebin.com/rKiDnLwC
I updated it, just added color option to the end of the script call. Color is optional, if you leave it out it will use the default color which is white.
For color you have to set it as:
color = Color.new(red, green, blue, alpha)
values r 0-255, alpha isn't required.
To change the font go to line 64 and change it to w.e. font you want it to be.
As for showing the variable, (forgot brackets don't show on these forums ). you would do:string = $game_variables[VARIABLE # IN HERE]
Example:string = $game_variables[2]
would show w.e. is in variable 2
Perfection. I just tested it and it works flawlessly. Mind if I record myself test-playing to show how it works? I'll be sure to credit you for it?
Pages:
1














