• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Check stats in battle


[PokeCommunity.com] Check stats in battle

I used Hail and it shows like this.
It works but I will change to show name.
Something in your project stopped it
 
Nice script! I've been using it and I would like to know if there is an option to show all field information in one single page and showing it like the official games (Weather Duration: 3/8), or something like that!
 
Nice script! I've been using it and I would like to know if there is an option to show all field information in one single page and showing it like the official games (Weather Duration: 3/8), or something like that!

Find in
Code:
def store_active
Change these lines
Code:
				show = 
				case @showactive[@active-1]
				when @activef then @showactive[@active-1]
				when @actives then @showactive[@active-1][@position%2]
				when @activep then @showactive[@active-1][@position]
				end
into
Code:
			show2 = []
			@showactive.each { |s|
				case s
				when @activef then show2 << s
				when @actives then show2 << s[@position%2]
				when @activep then show2 << s[@position]
				end
			}
			show = {}
			show2.flatten.each { |s| s.each { |k, v| show[k] = v } }

Then delete these lines
Code:
			title = 
				case @showactive[@active-1]
				when @activef then "Active field:"
				when @actives then "Active side:"
				when @activep then "Active position:"
				end
			active.unshift(title)

Find
Code:
def set_input
Change this line
Code:
					@active  = 0 if @active > @showactive.size
into
Code:
					@active  = 0 if @active > 1
If you want to add something like (Weather Duration: 3/8), find in file '4 - Battle.rb'.
You can see this line
Code:
ret["Weather duration"] = @field.weatherDuration if @field.weatherDuration != 0
Change this into
Code:
ret["Weather duration"] = "#{@field.weatherDuration}/8" if @field.weatherDuration != 0
 
Thanks! Now all the information is on one page, but what I meant by "3/8" was actually whether there would be any way to get in version 18 the maximum number of turns of the effect (An example for rain would be: 5 normally, 8 with the Damp Rock).
 
Thanks! Now all the information is on one page, but what I meant by "3/8" was actually whether there would be any way to get in version 18 the maximum number of turns of the effect (An example for rain would be: 5 normally, 8 with the Damp Rock).

Just add condition to change like
Code:
if @field.weatherDuration != 0
  if @field.weather == PBWeather::Rain
    max = 5
  elsif ....... (condition)
    max = ......
  end
  ret["Weather duration"] = "#{@field.weatherDuration}/#{max}"
end

Add condition when you want to change and set max equals value.
 
I've had those issues too in 3v1 battles if you press right and in 2v3 if you press left while showing stat changes. It gave me these two errors:

3v1:
[Pokémon Essentials version 18.1]
Exception: NoMethodError
Message: undefined method `size' for nil:NilClass

Backtrace:
1 - Set:52:in `set_active_size'
3 - Show:386:in `change_active'
3 - Show:288:in `set_input'
3 - Show:15:in `show'
3 - Show:7:in `loop'
3 - Show:16:in `show'
1 - Set:58:in `show'
5 - Scene battle:46:in `pbCommandMenuEx'
5 - Scene battle:9:in `loop'
5 - Scene battle:48:in `pbCommandMenuEx'

2v3
[Pokémon Essentials version 18.1]
Exception: NoMethodError
Message: undefined method `hp' for nil:NilClass

Backtrace:
3 - Show:81:in `draw_information'
3 - Show:13:in `show'
3 - Show:7:in `loop'
3 - Show:16:in `show'
1 - Set:58:in `show'
5 - Scene battle:46:in `pbCommandMenuEx'
5 - Scene battle:9:in `loop'
5 - Scene battle:48:in `pbCommandMenuEx'
Scene_Commands:15:in `pbCommandMenu'
Battle_Phase_Command:29:in `pbCommandMenu'
 
Last edited:
Glad to hear it! I am editing the interface and would like to know if there is a way to separate the field information into two columns, one for the name and one for the effect itself.
 
Glad to hear it! I am editing the interface and would like to know if there is a way to separate the field information into two columns, one for the name and one for the effect itself.

I set it like this because I want to split text if this line is too long. If you want to seperate, find
Code:
def store_active
And you can see this line
Code:
show.each { |k, v| active << "#{k}: #{v}" }
This is store name and effect in same line. Modify this def and find these lines in "def draw_information"
Code:
					active = store_active
					active.each_with_index { |atv, i|
						string = atv
						x = i == 0 ? 5 : 10
						y = 64 + 30 * i
						text << [string, x, y, 0, Color.new(0,0,0), Color.new(255,255,255)]
					}
These lines use function to draw information. Edit it.
 
Just realized, that this script "ignores" Illusion. If you fight a zorua it still displays as such wth the abbility illusion in your screen. Is there an easy fix for that?
 
Back
Top