查看: 1839|回复: 1

[已经过期] 【已解决】Notification.post("51号开关已经打开") 直接显示一...

[复制链接]
梦石
0
星屑
7296
在线时间
1244 小时
注册时间
2015-8-15
回帖
473
发表于 2023-6-2 16:06:03 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 金芒芒 于 2023-6-5 12:59 编辑

Notification.post("51号开关已经打开")改成 直接显示一张图片

$game_screen.pictures[number].show(name, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
当按下Tab键图片就消失(if Kboard.keyboard($R_Key_TAB) )
$game_screen.pictures[1].erase


[pre lang="ruby"]  def display_battle_end_message#显示战斗结束消息
    if @efs_after_battle_level == 10
    $game_switches[51] = true #true  
    Notification.post("51号开关已经打开")
    end  
    if @efs_after_battle_level == 9
    $game_switches[52] = true
    Notification.post("52号开关已经打开")
    end   
    if @efs_after_battle_level == 8
    $game_switches[53] = true  
    Notification.post("53号开关已经打开")
    end
    if @efs_after_battle_level == 7
    $game_switches[54] = true  
    Notification.post("54号开关已经打开")
    end
    if @efs_after_battle_level == 6
    $game_switches[55] = true  
    Notification.post("55号开关已经打开")
    end
      if @efs_after_battle_level == 5
    $game_switches[56] = true  
    Notification.post("56号开关已经打开")
    end
      if @efs_after_battle_level == 4
    $game_switches[57] = true  
    Notification.post("57号开关已经打开")
    end
      if @efs_after_battle_level == 3
    $game_switches[58] = true  
    Notification.post("58号开关已经打开")
    end  
     if @efs_after_battle_level == 2
    $game_switches[59] = true  
    Notification.post("59号开关已经打开")
    end
    if @efs_after_battle_level == 1
    $game_switches[60] = true  
    Notification.post("60号开关已经打开")
    end
    if @efs_after_battle_level == 0
    $game_switches[61] = true  
    Notification.post("61号开关已经打开")
    end
           
    if @efs_victory
      Notification.post("战斗胜利... 按下Tab键返回")
      #$game_system.me_play($game_system.battle_end_me)
    elsif @efs_all_dead
      Notification.post("战斗失败... 按下Tab键返回")
      #$game_system.me_play($data_system.gameover_me)
    else
      Notification.post("全军撤退... 按下Tab键返回")
       #$game_system.se_play($game_system.escape_se)
    end  
  end[/pre]
梦石
0
星屑
7296
在线时间
1244 小时
注册时间
2015-8-15
回帖
473
 楼主| 发表于 2023-6-5 12:57:32 | 显示全部楼层
    if @efs_after_battle_level == 8
    $game_switches[53] = true  
    Notification.post("53号开关已经打开")
    $game_screen.pictures[1].show("ot", 0, -320, 160, 100, 100, 255, 0)
    end
    $game_screen.pictures[1].move(60, 0, 320, 160, 100, 100, 255, 0)
    for i in 1..60
      Graphics.update
      $game_screen.update
      update_event
    end
    if Kboard.keyboard($R_Key_TAB)
    $game_screen.pictures[1].erase
  end
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部