Hail
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!
def store_active
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
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 } }
title =
case @showactive[@active-1]
when @activef then "Active field:"
when @actives then "Active side:"
when @activep then "Active position:"
end
active.unshift(title)
def set_input
@active = 0 if @active > @showactive.size
@active = 0 if @active > 1
ret["Weather duration"] = @field.weatherDuration if @field.weatherDuration != 0
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).
if @field.weatherDuration != 0
if @field.weather == PBWeather::Rain
max = 5
elsif ....... (condition)
max = ......
end
ret["Weather duration"] = "#{@field.weatherDuration}/#{max}"
end
It seems to have some issues in 3v1 battle like Max Raid Battle.
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:
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.
def store_active
show.each { |k, v| active << "#{k}: #{v}" }
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)]
}