[RESOLVED][VXA] change LevelUp message

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 70
Captain of Ultima
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!
« Last Edit: April 01, 2012, 03:12:40 PM by Angius »
Sorry 'bout my bad english :/

*
Rep:
Level 97
2014 Best RPG Maker User - Engine2014 Most Unsung Member2013 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best RPG Maker User (Scripting)2011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best Use of Avatar and Signature Space2010 Favourite Staff Member2010 Most Mature Member
For which maker? XP, VX, or VX Ace?

**
Rep:
Level 70
Captain of Ultima
Oh, sorry, I forgot...
VX Ace.
Sorry 'bout my bad english :/

**
Rep:
Level 70
Captain of Ultima
Ok, time to @bump!
Sorry 'bout my bad english :/

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Zero to Hero2014 Best IRC Quote2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
No it isn't. Please wait 48 hours before bumping.

****
Rep:
Level 83
3...2...1...
I thought it was 24 hours before you should bump?

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Zero to Hero2014 Best IRC Quote2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
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.

**
Rep:
Level 70
Captain of Ultima
Doesn't matter... I,ve buped this topic a little bit too early, sorry bout that. But' that's not this topic issue.
Sorry 'bout my bad english :/

***
Rep:
Level 56
Noun. The act of illuminating.
Contestant - GIAW 9
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.

**
Rep:
Level 70
Captain of Ultima
Really? Oh men, I don't know how to thank you! Well... Except selling my house.
Sorry 'bout my bad english :/

**
Rep:
Level 70
Captain of Ultima
Ok, is it a right time to bump now?
Sorry 'bout my bad english :/

***
Rep:
Level 56
Noun. The act of illuminating.
Contestant - GIAW 9
Sorry for forgeting this over and over again.

Here it is though:

Code: [Select]
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

**
Rep:
Level 70
Captain of Ultima
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...
Sorry 'bout my bad english :/

***
Rep:
Level 56
Noun. The act of illuminating.
Contestant - GIAW 9
Check this, it is in the top of your script:

Code: [Select]
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:

Code: [Select]
module LAZY_LEVELUP_CONFIG
  GRAPHICS = "Graphics/Pictures/nicelogo.png"
  SWITCH = 1
end

And of course change nicelogo.png to the name of your image.

**
Rep:
Level 70
Captain of Ultima
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:

And if I try to load earlier save, I have an error in 29 line.

I think it's problem with Khas Awesome Light Effects.
Sorry 'bout my bad english :/

***
Rep:
Level 56
Noun. The act of illuminating.
Contestant - GIAW 9
Code: [Select]
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

**
Rep:
Level 70
Captain of Ultima
Still freezing. If I load, there's no error, but it is freezed from very beginning.
Sorry 'bout my bad english :/

***
Rep:
Level 56
Noun. The act of illuminating.
Contestant - GIAW 9
Do you have teamviewer? Could you let me slip into your screen and take a look?

**
Rep:
Level 70
Captain of Ultima
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.
« Last Edit: April 01, 2012, 04:47:59 PM by Angius »
Sorry 'bout my bad english :/

***
Rep:
Level 56
Noun. The act of illuminating.
Contestant - GIAW 9
I fixed the problem for him, thread can be closed. :)

**
Rep:
Level 70
Captain of Ultima
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:
« Last Edit: April 01, 2012, 06:12:06 PM by Angius »
Sorry 'bout my bad english :/

***
Rep:
Level 56
Noun. The act of illuminating.
Contestant - GIAW 9
change the line

display_level_up_is_lazy_as_pancakes to display_level_up_is_lazy_as_pancakes(new_skills)