Hello guys, I got a request for a script and I hope you can help me.
I need a script that allows me to show a variable value on screen, I want to use to display damage values.
But I need the script to read game variables so I can call it using the command \v, and an option that allows me to display the value over an event, and the most important thing, being able to display as many windows as I wish.
So, a script that allows me to display "x"variable value over "x"event" with "x"font/size/color.
I tried using messages but I cannot display more than one at the same time...
Sorry if I'm not being very clear, english is not my main language :(
I looked all over the internet and forums and I found tutorials for RGSS3 but not for RGSS. Any kind of help will be really appreciated.
cheers guys!
Do you mean like pop-up damage to occur on the map? Like how Blizz-ABS and XAS and all those other ABSes do it?
Yep, but I need it to use certain items, like traps on map.
I tried to study these scripts but couldn't find the part that pops up the damage so I could use it for that purpose.
As in show the xVariable on xEvent.
I fail at scripting... :(
QuoteI need it to use certain items, like traps on map.
No idea what that has to do with your "windows" (are we still calling them that?). Care to explain your ideas with a mock-up screenshot?
I can write code for displaying damage pop (like how it's done in Scene_Battle) on the map easily.
Thank you for the answers KK20.
Yeah, I need to pop up damage on map, what I need is to target it to xEvent (Getting it's coordinates from the event itself), and to be able to show more than one damage at the same time.
I'm using ForeverZer0's multi message script, and use it to show my Damage Variable o the Target Event with a transperent system skin.
It shows good, but I can't since there is a parallel process for each enemy and ally the message system crashes. So I wanted to use a script based message that allows me to use the same features but with the plus of showing more than one.
Here's a screen on how the damage looks (Can't show more than one though).
(http://s24.postimg.org/j8cjz50gl/Battle1.png)
http://littledrago.blogspot.com/2014/07/rgss23-damage-pop-up.html
example:
event = -1 # $game_player
damage = $game_variables[1]
random = 10
color = [200,100,100]
$scene.damage(event, damage, random, color)
Hi and thank you drago.
The script download link is broken.
http://pastebin.com/raw.php?i=UhUGrznN (http://pastebin.com/raw.php?i=UhUGrznN)
But it looks awesome on the screen preview :D
try it again, the link work fine in my browser
It says that the webpage is not available e_e
Edit: Nevermind, switched to Mozilla and got it.
Thank you very much, I'll try it right away. :haha:
I get the following error:
"An error has occured during the script NoMethodError execution
undefined method ´damage'for#<Scene_Title:0x31f54d0>"
I'm using the follorwing script to call it.
$scene.damage(-1, $game_variables[1], 10, [200,100,100,100])
you can only use it in Scene_Map
Do I have to paste the script on the game Scene_Map script?
Sorry if I'm bothering you e_e
nope, you
paste the script below Scene_Debug and above Main
but you can only use it in map (not title screen / battle screen)
Quote from: manana12 on July 21, 2014, 03:45:56 am
"An error has occured during the script NoMethodError execution
undefined method ´damage'for#<Scene_Title:0x31f54d0>"
this means you somehow using the script in Scene_Title (the title screen)
You sir, are a glorius person, thank you very much.
Once the battle system is complete I will post the project on the forums, and give the proper credit to you for your kind help.
Just one last question, what I script do I use to change the font size through a Script Call.
Thanks agains for your patience to both of you guys! :haha:
LiTTleDRAgo::DMGFONTSIZE = ....(Integer values)