设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
返回列表
+ 发新帖
查看: 587|回复: 0

[转载发布] 蛐蛐儿的简约(渣)菜单计划(二)

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    3 天前
  • 签到天数: 221 天

    连续签到: 1 天

    [LV.7]常住居民III

    9100

    主题

    890

    回帖

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    64872
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    74892

    灌水之王

    发表于 2024-4-19 20:19:33 | 显示全部楼层 |阅读模式
    菜单计划一看这里:http://rpg.blue/thread-202640-1-1.html
    前言不再重复,外援脚本还是要用到的。
    全程未PS,效率各种渣


    效果截图:附加了一个简单的物品分类= =




    脚本正文:
    part1:part2:[code]class Scene_Item  def use_item    @item_use = @data[@c_index][@index]    unless @item_use.is_a?(RPG::Item)      $game_system.se_play($data_system.buzzer_se)      return    end    unless $game_party.item_can_use?(@item_use.id)      $game_system.se_play($data_system.buzzer_se)      return    end    $game_system.se_play($data_system.decision_se)    if @item_use.scope >= 3      if @item_use.scope == 4 || @item_use.scope == 6        @target_window.index = -1        if $game_party.item_number(@item_use.id) == 0          $game_system.se_play($data_system.buzzer_se)          return        end        used = false        for i in $game_party.actors          used |= i.item_effect(@item_use)          @person[@s_index].flash(Color.new(255,255,255,100),10)        end        if @item_use.consumable          $game_party.lose_item(@item_use.id, 1)          use_draw_item        end      else        @status = true      end    else      if @item_use.common_event_id > 0        $game_temp.common_event_id = @item_use.common_event_id        $game_system.se_play(@item_use.menu_se)        if @item_use.consumable          $game_party.lose_item(@item_use.id, 1)          use_draw_item        end        $scene = Scene_Map.new        return      end    end  end  def update_status    Input.update    change_s if Input.trigger?(Input::LEFT)    change_s(true) if Input.trigger?(Input::RIGHT)    if Input.trigger?(Input::B)      $game_system.se_play($data_system.cancel_se)      unless $game_party.item_can_use?(@item_use.id)      end      @status = false      return    end    if Input.trigger?(Input::C)      if $game_party.item_number(@item_use.id) == 0        $game_system.se_play($data_system.buzzer_se)        @status = false        return      end      if @s_index >= 0        target = $game_party.actors[@s_index]        used = target.item_effect(@item_use)      end      if used        $game_system.se_play(@item_use.menu_se)        if @item_use.consumable          $game_party.lose_item(@item_use.id, 1)          use_draw_item        end        refresh_status        if $game_party.all_dead?          $scene = Scene_Gameover.new          @status = false          return        end        if @item_use.common_event_id > 0          $game_temp.common_event_id = @item_use.common_event_id          if @item_use.consumable            $game_party.lose_item(@item_use.id, 1)            use_draw_item          end          $scene = Scene_Map.new          @status = false          return        end      end      unless used        $game_system.se_play($data_system.buzzer_se)      end      @status = false      return    end  end  def refresh_status    @person[@s_index].bitmap.clear    @person[@s_index].bitmap.blt(0,0,    Bitmap.new("Graphics/Menu/#{$game_party.actors[@s_index].name}"),    Rect.new(0,0,640,480))    @person[@s_index].bitmap.fill_rect(23, 360, 92, 3, Color.new(0,0,0))    @person[@s_index].bitmap.fill_rect(23, 370, 92, 3, Color.new(0,0,0))    @person[@s_index].bitmap.fill_rect(24, 361,     (90*$game_party.actors[@s_index].hp / $game_party.actors[@s_index].maxhp).to_i, 1, Color.new(200,0,0))    @person[@s_index].bitmap.fill_rect(24, 371,    (90*$game_party.actors[@s_index].sp / $game_party.actors[@s_index].maxsp).to_i, 1, Color.new(0,0,200))    @person[@s_index].bitmap.font.size = 11    @person[@s_index].bitmap.blur_draw_text(10, 350, 30, 20,    "HP",1,Color.new(0,0,0,10),2)    @person[@s_index].bitmap.blur_draw_text(40, 350, 70, 20,    "#{$game_party.actors[@s_index].hp}/#{$game_party.actors[@s_index].maxhp}",    1,Color.new(0,0,0,10),2)    @person[@s_index].bitmap.blur_draw_text(10, 360, 30, 20,    "SP",1,Color.new(0,0,0,10),2)    @person[@s_index].bitmap.blur_draw_text(40, 360, 70, 20,    "#{$game_party.actors[@s_index].sp}/#{$game_party.actors[@s_index].maxsp}",    1,Color.new(0,0,0,10),2)    b = $game_party.actors[@s_index].name.scan(/./)     b

    本帖子中包含更多资源

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

    x

    帖子地址: 

    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-10-20 04:06 , Processed in 0.130656 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表