查看: 2124|回复: 6

[已经解决] XP好感度脚本在VA可以通用 请问如何回到大地图

[复制链接]
梦石
0
星屑
2457
在线时间
912 小时
注册时间
2014-10-14
回帖
1155

开拓者

发表于 2017-6-19 14:24:22 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 j296196585 于 2017-6-19 14:54 编辑

[pre lang="ruby"]1000经验求大触帮忙路过的大神帮帮[/pre]
[pre lang="ruby"]SceneManager.(Scene_FF)[/pre][pre lang="ruby"]class Scene_FF
    def main
      #加载窗口
     @bl = Window_Base.new(0, 0, 640, 480)
     @bl.contents = Bitmap.new(@bl.width - 32, @bl.height - 32)
     if $game_switches[202]==true
        @bl.contents.font.color = Color.new(0, 255, 0, 255)
         @bl.contents.draw_text(0, 0, 128, 32,"剑越卄" )
         case  $game_variables[52]
         when 0
         @bl.contents.draw_text(88, 0, 126, 32,"一面之缘" )
         when 10
         @bl.contents.draw_text(88, 0, 126, 32,"颇有好感" )
         when 20
          @bl.contents.draw_text(88, 0, 126, 32,"惺惺相惜" )
          when 30
          @bl.contents.draw_text(88, 0, 126, 32,"爱慕倾心" )
          when 40
          @bl.contents.draw_text(88, 0, 126, 32,"生死与共" )
          end
        end
         if $game_switches[203]==true
        @bl.contents.font.color = Color.new(0, 255, 0, 255)
         @bl.contents.draw_text(0, 32, 128, 32,"幻羽" )
         case  $game_variables[53]
         when -10
          @bl.contents.draw_text(88, 32, 126, 32,"不胜厌恶" )
         when 0
         @bl.contents.draw_text(88, 32, 126, 32,"一面之缘" )
         when 10
         @bl.contents.draw_text(88, 32, 126, 32,"颇有好感" )
         when 20
          @bl.contents.draw_text(88, 32, 126, 32,"惺惺相惜" )
          when 30
          @bl.contents.draw_text(88, 32, 126, 32,"爱慕倾心" )
          when 40
          @bl.contents.draw_text(88, 32, 126, 32,"生死与共" )
          end
        end
        if $game_switches[202]==false
          @bl.contents.draw_text(250, 200, 126, 32,"暂无人物关系" )
          end
     #四个子隔开Y+60
      # 执行过渡
    Graphics.transition
    # 主循环
    loop do
      # 刷新游戏画面
      Graphics.update
      # 刷新输入信息
      Input.update
      # 刷新画面
      update
      # 如果切换画面就中断循环
      if $scene != self
        break
      end
    end
    # 准备过渡
    Graphics.freeze
     #释放
       @bl.dispose
       end
      def update
        @bl.update






        #当B按下时
        if Input.trigger?(Input::B)
          $scene = Scene_Map.new
      end
  end
end

  [/pre]

能正常运行 就是不能回到游戏

能正常运行 就是不能回到游戏

点评

如何才能做到像XP那样显示 。。。。佣兵积分达到50~99时佣兵等级升级为E  发表于 2017-6-19 14:25
------落尽红樱君不见,轻绘梨花泪沾衣。~~~
梦石
0
星屑
6375
在线时间
1473 小时
注册时间
2015-7-25
回帖
609

极短25参与开拓者

发表于 2017-6-19 18:04:06 | 显示全部楼层
稍微改造了一下
SceneManager.call(Scene_FF)

[pre lang="ruby"]class Scene_FF < Scene_Base
  def start
    super
    c_ff
  end
  def c_ff
    @bl = W_FF.new
    @bl.set_handler(:cancel,    method(:return_scene))
  end
end
class W_FF < Window_Selectable
  def initialize
    super(0,0,544,416)
    refresh
    activate
  end
  def refresh
    contents.clear
    if $game_switches[202]==true
      contents.font.color = Color.new(0, 255, 0, 255)
      draw_text(0, 0, 128, 32,"剑越卄" )
             case  $game_variables[52]
             when 0
             draw_text(88, 0, 126, 32,"一面之缘" )
             when 10
             draw_text(88, 0, 126, 32,"颇有好感" )
             when 20
              draw_text(88, 0, 126, 32,"惺惺相惜" )
              when 30
             draw_text(88, 0, 126, 32,"爱慕倾心" )
              when 40
              draw_text(88, 0, 126, 32,"生死与共" )
              end
    end
    if $game_switches[203]==true
      contents.font.color = Color.new(0, 255, 0, 255)
      draw_text(0, 32, 128, 32,"幻羽" )
             case  $game_variables[53]
             when -10
              draw_text(88, 32, 126, 32,"不胜厌恶" )
             when 0
          draw_text(88, 32, 126, 32,"一面之缘" )
             when 10
             draw_text(88, 32, 126, 32,"颇有好感" )
             when 20
              draw_text(88, 32, 126, 32,"惺惺相惜" )
              when 30
            draw_text(88, 32, 126, 32,"爱慕倾心" )
              when 40
             draw_text(88, 32, 126, 32,"生死与共" )
              end
    end
    if $game_switches[202]==false
          draw_text(250, 200, 126, 32,"暂无人物关系" )
        end
      end
end[/pre]

点评

draw_face(face_name, face_index, x, y, enabled = true)  发表于 2017-6-20 09:55
draw_actor_face ("颇有好感" )难道这样设置。。。  发表于 2017-6-20 00:13
draw_actor_face  发表于 2017-6-19 22:30
问个小小的问题,如何在脚本显示图片 很小很小的图像 头像那种哒50x50格式的 谢谢  发表于 2017-6-19 21:10

评分

参与人数 2星屑 +240 收起 理由
VIPArcher + 200 认可答案
j296196585 + 40 加

查看全部评分

笨肉包的游戏讨论群932812135 (实时更新) 喜欢的话欢迎加入~
目前的坑
??? #像素风OC游戏 准备中 短篇-约5小时
花城梦之心 #像素风OC游戏 系统开发+素材绘制中
【不可思议的迷宫】幽灵契约外传:歌莉娅 v0.4 游戏文件已更新
同时更新中~ (沉迷摸鱼中~更新速度较慢请见谅w)
这是属于笨肉包一个人的旅行~(这只肉包又在摸鱼!
旅途的最终目标~ ???(保密~
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部