if $game_party.actors[0] == nil
m = 0
else
m = $game_party.actors[0].maxsp.to_s
end
if $game_party.actors[1] == nil
n = 0
else
n = $game_party.actors[1].maxsp.to_s
end
if $game_party.actors[2] == nil
o = 0
else
o = $game_party.actors[2].maxsp.to_s
end
if $game_party.actors[3] == nil
q = 0
else
q = $game_party.actors[3].maxsp.to_s
end
if $game_party.actors[4] == nil
r = 0
else
r = $game_party.actors[4].maxsp.to_s
end
if $game_party.actors[5] == nil
r = 0
else
s = $game_party.actors[5].maxsp.to_s
end
if $game_party.actors[6] == nil
t = 0
else
t = $game_party.actors[3].maxsp.to_s
end
u = [m,n,o,q,r,s,t].max 作者: 陈大帅帅帅哥 时间: 2022-11-28 13:59
ary=[]
$game_party.actors.each{|actor| ary<<actor.maxsp}
u=ary.max作者: 灯笼菜刀王 时间: 2022-11-28 15:13 本帖最后由 灯笼菜刀王 于 2022-11-28 15:25 编辑