-
I need a script (Wow, seriously?) for VX Ace. I want something, that will disable standard displaying of LevelUp, but instead of that will display certain graphic in top-left corner of the screen and turn certain switch ON. If I turn this switch OFF, this graffic should disppear.
I believe, that's not a problem for any scripter ;)
Thanks in advance!
-
For which maker? XP, VX, or VX Ace?
-
Oh, sorry, I forgot...
VX Ace.
-
Ok, time to @bump!
-
No it isn't. Please wait 48 hours before bumping.
-
I thought it was 24 hours before you should bump?
-
Even if it is, let's not discuss it here. I think I saw 48 in a post Holk, and Holk's always right, so I just assumed it's 48.
-
Doesn't matter... I,ve buped this topic a little bit too early, sorry bout that. But' that's not this topic issue.
-
I presumed that someone had this case because of the constant new posts, I will do this tomorrow first thing after school. It will cost you though, sell yo house.
Nah, but seriously I will do it tomorrow.
-
Really? Oh men, I don't know how to thank you! Well... Except selling my house.
-
Ok, is it a right time to bump now?
-
Sorry for forgeting this over and over again.
Here it is though:
module LAZY_LEVELUP_CONFIG
GRAPHICS = "nicelogo.png"
SWITCH = 1
end
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# * Show Level Up Message
# new_skills : Array of newly learned skills
#--------------------------------------------------------------------------
def display_level_up(new_skills)
# Change a switch
$game_switches[1] = true
end
end
class Game_Map
alias old_lazy_init initialize
def initialize
old_lazy_init
@level_up_lazy_sprite = Sprite.new
@level_up_lazy_sprite.z = 99999
@level_up_lazy_sprite.visible = false
@level_up_lazy_sprite.bitmap = Bitmap.new(LAZY_LEVELUP_CONFIG::GRAPHICS)
end
alias old_lazy_update update
def update(main = false)
old_lazy_update(main = false)
@level_up_lazy_sprite.visible = $game_switches[LAZY_LEVELUP_CONFIG::SWITCH]
end
end
-
Thank you very, very much!
But one last (I hope) question: which folder is for graphic? I tried Pictures, System, Characters, even directly Graphic, and it always shows me message "Can't find file xyz.png...
-
Check this, it is in the top of your script:
module LAZY_LEVELUP_CONFIG
GRAPHICS = "nicelogo.png"
SWITCH = 1
end
Currently the path to the graphics is just nicelogo.png
That means the root folder of your game, where your graphics folder is, your audio folder is and where game.exe is. If you want to use for example the Pictures folder, you must change it to this:
module LAZY_LEVELUP_CONFIG
GRAPHICS = "Graphics/Pictures/nicelogo.png"
SWITCH = 1
end
And of course change nicelogo.png to the name of your image.
-
Ok, thanks. But now it's something wrong with events - I have one with self switch, and when I activate it, the game is freezing.
That's an event:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg23.imageshack.us%2Fimg23%2F8351%2Fprzechwytywanievr.png&hash=c921373530808783571ca9ff66e93a18020b02fb)
And if I try to load earlier save, I have an error in 29 line.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg210.imageshack.us%2Fimg210%2F5346%2Fprzechwytywanieeu.png&hash=51f9d39351c1dd90a38ce457271581323ae16e9a)
I think it's problem with Khas Awesome Light Effects.
-
module LAZY_LEVELUP_CONFIG
GRAPHICS = "nicelogo.png"
SWITCH = 1
end
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# * Show Level Up Message
# new_skills : Array of newly learned skills
#--------------------------------------------------------------------------
def display_level_up(new_skills)
# Change a switch
$game_switches[1] = true
end
end
class Game_Map
alias old_lazy_init initialize
def initialize
old_lazy_init
@level_up_lazy_sprite = Sprite.new
@level_up_lazy_sprite.z = 99999 if @level_up_lazy_sprite != nil
@level_up_lazy_sprite.visible = false if @level_up_lazy_sprite != nil
@level_up_lazy_sprite.bitmap = Bitmap.new(LAZY_LEVELUP_CONFIG::GRAPHICS) if @level_up_lazy_sprite != nil
end
alias old_lazy_update update
def update(main = false)
old_lazy_update(main = false)
@level_up_lazy_sprite.visible = $game_switches[LAZY_LEVELUP_CONFIG::SWITCH] if @level_up_lazy_sprite != nil
end
end
Try now
-
Still freezing. If I load, there's no error, but it is freezed from very beginning.
-
Do you have teamviewer? Could you let me slip into your screen and take a look?
-
No, I don't have teamviewer, but I can give you my project, I don't have much in it, just scripts in general.
Ok, I have Teamviewer now.
-
I fixed the problem for him, thread can be closed. :)
-
Yup, ready to close! Thank you one more time, Illumination! :)
Ok, not so fast... It looks like I have ANOTHER problem, with line 15, after successful battle:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg857.imageshack.us%2Fimg857%2F3145%2Fprzechwytywanieg.png&hash=294b3230b7c5670cf4677ae3a4b058721d090dd9)
-
change the line
display_level_up_is_lazy_as_pancakes to display_level_up_is_lazy_as_pancakes(new_skills)