Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> + < XP Battle Result Window > +, * Show battle result window same as XP~
woratana
post Aug 5 2008, 06:18 AM
Post #1


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Battle Result Window
Version 1.0
by Woratana
Release Date: 05/08/2008


Introduction
I discussed about battle result window for VX with my friend for a while.
The problem is that there is no built-in battle result window in VX.
(The result will show in message box instead)

So I try to script this to see if it's possible to make one.
I put the same information as the battle result window in XP.

Enjoy~ laugh.gif


Screenshots



Script
Place it above main
Attached File  VX_BattleResult10.txt ( 1.74K ) Number of downloads: 617




Instruction
Just place script above main biggrin.gif


Author's Notes
Free for use in your work if credit is included.


Bug Report?
Please give me these informations:
QUOTE
- What is it says in error window?
- When is it get error? (Right after run game, when you choose something, etc.)
- Do you have any other scripts running in your game that may crash with this script?


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
shiriko1989
post Aug 7 2008, 05:48 AM
Post #2


Level 4
Group Icon

Group: Member
Posts: 45
Type: Artist
RM Skill: Undisclosed




This is even more interesting than the default! Can It show like some character learned new skill it will pop up like " xxx has learn xxx!" like that?

This post has been edited by shiriko1989: Aug 7 2008, 05:49 AM


__________________________
Go to the top of the page
 
+Quote Post
   
VileoSufora
post Aug 7 2008, 09:18 AM
Post #3


This is not Sparta! This is...What is this I don't even
Group Icon

Group: Revolutionary
Posts: 169
Type: Event Designer
RM Skill: Skilled




I agree with Shiriko, I think it would be awesome if it did this, but if you did it should probably have an option to turn the where it says "Fire was learned!" off.


__________________________
Formerly HotSpot6


Anime-Planet.com - anime | manga | reviews
~ ~ ~
Go to the top of the page
 
+Quote Post
   
lahandi
post Aug 9 2008, 08:40 AM
Post #4


Level 8
Group Icon

Group: Revolutionary
Posts: 111
Type: Artist
RM Skill: Skilled





I like this Wora. happy.gif

I havent try it yet, but from the screenshot I think it would be better if you could made the upper window wider, so it would have the same wide like the bottom window.



__________________________
Go to the top of the page
 
+Quote Post
   
cheahjc
post Aug 10 2008, 03:06 PM
Post #5


Got watermelons?
Group Icon

Group: Revolutionary
Posts: 186
Type: Event Designer
RM Skill: Skilled




This looks great but like lahandi said, you should make the window on the top go all the way to the other side, so it looks more normal ph34r.gif


__________________________

[Show/Hide] This is my signature, BEWARE


[Show/Hide] Click here to see how awesome I am






[Show/Hide] Funny T-Shirts






[Show/Hide] Can you read this?

Cna yuo raed tihs? Olny 55% of plepoe can.
I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.

[Show/Hide] They Found Nemo!



WARNING, The Following picture may be frightening to Nemo fans and sushi haters


[Show/Hide] Continue




[Show/Hide] Awesome Quotes


"Yesterday was history, tomorrow is a mystery, and today is a gift. Thats why they call it the present." - Kong Fu Panda

"What are you? Dumb?"
"Well you should have knwon I was dumb, so your the dumb one!" Max from Wizards of Waverly Place

"If everyone is thinking alike then sombody isn't thinking." - George Patton.

"Always bear in mind that your own resolution to succeed is more important than any one thing" - Abraham Lincoln

"Ask not what your country can do for you--ask what you can do for your country" - John F. Kennedy

"Leadership is not position. Leadership is action" - UNKNOWN

"You can't a home run unless you step up to the plate."
"You can't catch a fish unless you put your line in the water."
"You can't reach you goals if you don't try." - Kathy Seligman

"Shoot for the moon. Even if you miss, you will land among the stars" - Les Brown


Thanks Leper!

Cheahjc is too cool for school.
GO ASIANS!
Go to the top of the page
 
+Quote Post
   
Supergodjesus
post Aug 14 2008, 06:48 PM
Post #6


Level 9
Group Icon

Group: Revolutionary
Posts: 140
Type: Developer
RM Skill: Masterful




Hey Wora, just a quick question...
Is it possible to make it display the amount of xp needed to level instead of the total amount needed? Basically I want it to be consistent with what the status menu displays for the next level exp. Thanks!


__________________________



Sometimes you have to lose yourself before you can find yourself.
Go to the top of the page
 
+Quote Post
   
lahandi
post Aug 19 2008, 08:21 AM
Post #7


Level 8
Group Icon

Group: Revolutionary
Posts: 111
Type: Artist
RM Skill: Skilled





Wora, let me guess...

You are using Dargor Bonus Battle script too XD

Somehow it fit so well in my game...



__________________________
Go to the top of the page
 
+Quote Post
   
woratana
post Aug 20 2008, 03:42 AM
Post #8


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




I have no time to be on Windows yet. (I'm using Mac)
so I can't improve this script for a while.

@Lahandi
I'm glad the script works together perfectly *O*/


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
Leventhan
post Aug 20 2008, 05:00 AM
Post #9


<member title here>
Group Icon

Group: Revolutionary
Posts: 113
Type: None
RM Skill: Undisclosed




Looks mighty useful.


__________________________
Go to the top of the page
 
+Quote Post
   
Psiclone
post Aug 20 2008, 09:39 AM
Post #10


Level 2
Group Icon

Group: Member
Posts: 29
Type: None
RM Skill: Skilled




If Wora doesn't mind, I've gone ahead and fixed the script to fill the couple requests.

This little 'fix/edit' has both requests, the wider window AND the experience to next level, instead of total experience.

CODE
#===============================================================
# ● [VX] ◦ Battle Result Window ◦ □
#--------------------------------------------------------------
# ◦ by Woratana [woratana@hotmail.com]
# ◦ Thaiware RPG Maker Community
# ◦ Released on: 03/08/2008
# ◦ Version: 1.0
#--------------------------------------------------------------

class Window_Battle_Result < Window_Base
  def initialize(result_data)
    super(0, 0, 544, 32 + (WLH * ($game_party.members.size + 2)) )
    self.z = 10001
    contents.font.color = normal_color
    contents.draw_text(0, 0, contents.width, WLH, result_data[0])
    contents.draw_text(0, WLH, contents.width, WLH, result_data[1])
    $game_party.members.each_index do |i|
      actor = $game_party.members[i]
      ty = WLH * (i + 2)
      draw_actor_name(actor, 0, ty)
      draw_actor_hp(actor, 140, ty)
      contents.font.color = system_color
      text = sprintf(Vocab::ExpNext, Vocab::level)
      tw = contents.text_size(text).width
      contents.draw_text(292 + 40, ty, contents.width, WLH, text)
      contents.font.color = normal_color
      contents.draw_text(292 + tw + 50, ty, contents.width, WLH, actor.next_rest_exp_s)#actor.next_exp_s)
    end
  end
end

class Scene_Battle < Scene_Base
  alias wora_batreswin_scebat_batend battle_end
  alias wora_batreswin_scebat_disexpgold display_exp_and_gold
  
  def battle_end(result)
    @result_window.dispose if result == 0
    wora_batreswin_scebat_batend(result)
  end
  
  def display_exp_and_gold
    result_data = [sprintf(Vocab::ObtainExp, $game_troop.exp_total),
  sprintf(Vocab::ObtainGold, $game_troop.gold_total, Vocab::gold)]
    @result_window = Window_Battle_Result.new(result_data)
    wora_batreswin_scebat_disexpgold
  end
end


If Wora requests it, I'll remove the code, but I just wanted to help the others with those two easy fixes.

This post has been edited by Psiclone: Aug 20 2008, 09:42 AM
Go to the top of the page
 
+Quote Post
   
Sanctuary12
post Feb 25 2011, 03:34 PM
Post #11


Level 1
Group Icon

Group: Member
Posts: 7
Type: None
RM Skill: Undisclosed




It won't disappear after battle.
Reason for edit: Don't quote the above post. -Kread
Go to the top of the page
 
+Quote Post
   
abitsicamica
post Oct 8 2011, 10:42 PM
Post #12



Group Icon

Group: Member
Posts: 1
Type: Developer
RM Skill: Intermediate




I'm getting an error at line 37 which says:

Script 'Battle Results' line 37: NoMethodError occurred.

undefined method 'dispose' for nil:NilClass


Can someone help me? Thanks!
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 04:52 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker