本帖最后由 三途亚梦 于 2015-6-27 12:53 编辑
class Spriteset_Battle def create_rtabcp_gauge @cpgauge_back = Sprite.new(@viewport3) @cpgauge_back.bitmap = Bitmap.new(400, 8) @cpgauge_back.bitmap.gradient_fill_rect(0, 0, 400, 16, Color.new(20, 20, 20), Color.new(50, 255, 50)) @cpgauge_back.x = 72 @cpgauge_back.y = 16 @icons = {} for iii in $game_party.members @icons[iii] = Sprite.new(@viewport3) #在System文件夹下按照角色名把小图标分别存为png格式 actoricon = "Graphics/System/" + iii.name + ".png" @icons[iii].bitmap = Bitmap.new(actoricon) @icons[iii].ox = 12 @icons[iii].oy = 12 @icons[iii].x = 16 @icons[iii].y = 20 end for iii in $game_troop.members @icons[iii] = Sprite.new(@viewport3) #敌人的图标同理 enemyicon = "Graphics/System/" + iii.original_name + ".png" @icons[iii].bitmap = Bitmap.new(enemyicon) @icons[iii].ox = 12 @icons[iii].oy = 12 @icons[iii].x = 16 @icons[iii].y = 20 end end end
class Spriteset_Battle
def create_rtabcp_gauge
@cpgauge_back = Sprite.new(@viewport3)
@cpgauge_back.bitmap = Bitmap.new(400, 8)
@cpgauge_back.bitmap.gradient_fill_rect(0, 0, 400, 16, Color.new(20, 20, 20), Color.new(50, 255, 50))
@cpgauge_back.x = 72
@cpgauge_back.y = 16
@icons = {}
for iii in $game_party.members
@icons[iii] = Sprite.new(@viewport3)
#在System文件夹下按照角色名把小图标分别存为png格式
actoricon = "Graphics/System/" + iii.name + ".png"
@icons[iii].bitmap = Bitmap.new(actoricon)
@icons[iii].ox = 12
@icons[iii].oy = 12
@icons[iii].x = 16
@icons[iii].y = 20
end
for iii in $game_troop.members
@icons[iii] = Sprite.new(@viewport3)
#敌人的图标同理
enemyicon = "Graphics/System/" + iii.original_name + ".png"
@icons[iii].bitmap = Bitmap.new(enemyicon)
@icons[iii].ox = 12
@icons[iii].oy = 12
@icons[iii].x = 16
@icons[iii].y = 20
end
end
end
伤害公式中写改变数值就可以减少目标固定量的行动条。 |