设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1249|回复: 0
打印 上一主题 下一主题

[已经过期] ARPG关于ARPG列队操作转换横版列队脚本模式一样操作

[复制链接]

Lv4.逐梦者

梦石
0
星屑
6316
在线时间
1105 小时
注册时间
2015-8-15
帖子
659
跳转到指定楼层
1
发表于 2022-10-24 11:48:05 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
本帖最后由 金芒芒 于 2022-10-24 14:11 编辑

RUBY 代码复制
  1. class Game_Map
  2.   #--------------------------------------------------------
  3.   # 功能函数 :求两点间的距离  实用度:★★★★★
  4.   #--------------------------------------------------------
  5.   def juli(x1, y1, x2, y2)
  6.     return (x1 - x2).abs + (y1 - y2).abs
  7.   end
  8.   #--------------------------------------------------------
  9.   # 功能函数 :取得地图tile消耗移动力数  实用度:★★★★★
  10.   #--------------------------------------------------------
  11.   def get_cost(x,y,d)
  12.     if !if_empty?(x,y)
  13.       return 9999
  14.     else
  15.       # 战场以外的地方不能通行
  16.       if $scene.battlefield.include?([x,y])
  17.         if passable?(x,y,d)
  18.           return 1
  19.         else
  20.           return 9999
  21.         end
  22.       else
  23.         return 9999
  24.       end
  25.     end
  26.   end

我的矩形位置是   三国方正;6,15;18,31


RUBY 代码复制
  1. def scanMoveableArea(x,y,mv,need_return_value = false)#mv0
  2.     @temp_tile.clear
  3.     @can_pass_area.clear
  4.     #@can_pass_area.push([x,y])                                                              #mv1
  5.     scanMoveableArea_s1(x,y,mv)   
  6.     @temp_tile.clear
  7.     scanMoveableArea_s2(x,y,mv)                                                              #mv2
  8.     @temp_tile.clear
  9.     scanMoveableArea_s3(x,y,mv)                                                              #mv3
  10.     @temp_tile.clear
  11.     scanMoveableArea_s4(x,y,mv)                                                              #mv4
  12.     return @can_pass_area if need_return_value
  13.   end
  14.   def scanMoveableArea_s1(x,y,mv)
  15.     mv1 = mv - get_cost(x,y-1,8)
  16.     if mv1>=0   
  17.       unless @temp_tile.include?([x,y,mv])
  18.         @temp_tile.push([x,y,mv])
  19.       end
  20.       unless @can_pass_area.include?([x,y-1])
  21.         @can_pass_area.push([x,y-1])
  22.       end
  23.       unless @temp_tile.include?([x,y-1,mv1])
  24.         scanMoveableArea_s1(x,y-1,mv1)
  25.       end
  26.       #
  27.       unless @temp_tile.include?([x,y+1,mv1])
  28.         scanMoveableArea_s1(x,y+1,mv1)
  29.       end
  30.       #
  31.       unless @temp_tile.include?([x-1,y,mv1])
  32.         scanMoveableArea_s1(x-1,y,mv1)
  33.       end
  34.       unless @temp_tile.include?([x+1,y,mv1])
  35.         scanMoveableArea_s1(x+1,y,mv1)
  36.       end
  37.     end
  38.   end
  39.   def scanMoveableArea_s2(x,y,mv)
  40.     mv2 = mv - get_cost(x+1,y,6)
  41.     if mv2>=0   
  42.       unless @temp_tile.include?([x,y,mv])
  43.         @temp_tile.push([x,y,mv])
  44.       end
  45.       unless @can_pass_area.include?([x+1,y])
  46.         @can_pass_area.push([x+1,y])
  47.       end
  48.       unless @temp_tile.include?([x+1,y,mv2])
  49.         scanMoveableArea_s2(x+1,y,mv2)
  50.       end
  51.       #
  52.       unless @temp_tile.include?([x-1,y,mv2])
  53.         scanMoveableArea_s2(x-1,y,mv2)
  54.       end
  55.       #
  56.       unless @temp_tile.include?([x,y+1,mv2])
  57.         scanMoveableArea_s2(x,y+1,mv2)
  58.       end
  59.       unless @temp_tile.include?([x,y-1,mv2])
  60.         scanMoveableArea_s2(x,y-1,mv2)
  61.       end
  62.     end
  63.   end
  64.   def scanMoveableArea_s3(x,y,mv)
  65.     mv3 = mv - get_cost(x,y+1,2)
  66.     if mv3>=0   
  67.       unless @temp_tile.include?([x,y,mv])
  68.         @temp_tile.push([x,y,mv])
  69.       end  
  70.       unless @can_pass_area.include?([x,y+1])
  71.         @can_pass_area.push([x,y+1])
  72.       end
  73.       unless @temp_tile.include?([x,y+1,mv3])
  74.         scanMoveableArea_s3(x,y+1,mv3)
  75.       end
  76.       #
  77.       unless @temp_tile.include?([x,y-1,mv3])
  78.         scanMoveableArea_s3(x,y-1,mv3)
  79.       end
  80.       #
  81.       unless @temp_tile.include?([x+1,y,mv3])
  82.         scanMoveableArea_s3(x+1,y,mv3)
  83.       end
  84.       unless @temp_tile.include?([x-1,y,mv3])
  85.         scanMoveableArea_s3(x-1,y,mv3)
  86.       end
  87.     end
  88.   end
  89.   def scanMoveableArea_s4(x,y,mv)
  90.     mv4 = mv - get_cost(x-1,y,4)
  91.     if mv4>=0   
  92.       unless @temp_tile.include?([x,y,mv])
  93.         @temp_tile.push([x,y,mv])
  94.       end
  95.       unless @can_pass_area.include?([x-1,y])
  96.         @can_pass_area.push([x-1,y])
  97.       end
  98.       unless @temp_tile.include?([x-1,y,mv4])
  99.         scanMoveableArea_s4(x-1,y,mv4)
  100.       end
  101.       #
  102.       unless @temp_tile.include?([x+1,y,mv4])
  103.         scanMoveableArea_s4(x+1,y,mv4)
  104.       end
  105.       #
  106.       unless @temp_tile.include?([x,y-1,mv4])
  107.         scanMoveableArea_s4(x,y-1,mv4)
  108.       end
  109.       unless @temp_tile.include?([x,y+1,mv4])
  110.         scanMoveableArea_s4(x,y+1,mv4)
  111.       end
  112.     end
  113.   end


mv0 mv1 mv2 mv3 mv4  主角在mv0里面
如图列队1
坐标=10个  地图坐标1=X1  Y13  地图坐标2=X1 Y5   地图坐标3=X5 Y1  地图坐标4=X5 Y9  地图坐标5=X5 Y17
                 地图坐标6=X9 Y5 地图坐标7= X9 Y13  地图坐标8=X13 Y1 地图坐标9=X13 Y9  地图坐标10=X13 Y17
已有全键盘脚本
RUBY 代码复制
  1. class Scene_Dlck
  2.   #--------------------------------------------------------------------------
  3.   # ● 主处理
  4.   #--------------------------------------------------------------------------
  5.   def main
  6.     @点下 = 0
  7.     bitmap = "Graphics/Battlebacks/队列"
  8.     @ditu = Sprite.new
  9.     @ditu.bitmap = Bitmap.new(bitmap)
  10.    if $game_party.actors.size == 1
  11.     bitmap = "Graphics/Battlers/#{$game_party.actors[1].battler_name}"
  12.     @角色一 = Sprite.new
  13.     @角色一.bitmap = Bitmap.new(bitmap)
  14.     @角色一.x = $角色一_x - 80     #人物的中心点图片宽除2
  15.     @角色一.y = $角色一_y - 180    #人物的脚底图片的高180-180
  16.   elsif $game_party.actors.size == 2
  17.     bitmap = "Graphics/Battlers/#{$game_party.actors[1].battler_name}"
  18.     @角色一 = Sprite.new
  19.     @角色一.bitmap = Bitmap.new(bitmap)
  20.     @角色一.x = $角色一_x - 80
  21.     @角色一.y = $角色一_y - 180
  22.  
  23.     bitmap = "Graphics/Battlers/#{$game_party.actors[2].battler_name}"
  24.     @角色二 = Sprite.new
  25.     @角色二.bitmap = Bitmap.new(bitmap)
  26.     @角色二.x = $角色二_x - 80
  27.     @角色二.y = $角色二_y - 180
  28.   elsif $game_party.actors.size == 3
  29.     bitmap = "Graphics/Battlers/#{$game_party.actors[1].battler_name}"
  30.     @角色一 = Sprite.new
  31.     @角色一.bitmap = Bitmap.new(bitmap)
  32.     @角色一.x = $角色一_x - 80
  33.     @角色一.y = $角色一_y - 180
  34.  
  35.     bitmap = "Graphics/Battlers/#{$game_party.actors[2].battler_name}"
  36.     @角色二 = Sprite.new
  37.     @角色二.bitmap = Bitmap.new(bitmap)
  38.     @角色二.x = $角色二_x - 80
  39.     @角色二.y = $角色二_y - 180
  40.  
  41.     bitmap = "Graphics/Battlers/#{$game_party.actors[1].battler_name}"
  42.     @角色三 = Sprite.new
  43.     @角色三.bitmap = Bitmap.new(bitmap)
  44.     @角色三.x = $角色三_x - 80
  45.     @角色三.y = $角色三_y - 180
  46.    elsif $game_party.actors.size == 4
  47.     bitmap = "Graphics/Battlers/#{$game_party.actors[1].battler_name}"
  48.     @角色一 = Sprite.new
  49.     @角色一.bitmap = Bitmap.new(bitmap)
  50.     @角色一.x = $角色一_x - 80
  51.     @角色一.y = $角色一_y - 180
  52.  
  53.     bitmap = "Graphics/Battlers/#{$game_party.actors[2].battler_name}"
  54.     @角色二 = Sprite.new
  55.     @角色二.bitmap = Bitmap.new(bitmap)
  56.     @角色二.x = $角色二_x - 80
  57.     @角色二.y = $角色二_y - 180
  58.  
  59.     bitmap = "Graphics/Battlers/#{$game_party.actors[1].battler_name}"
  60.     @角色三 = Sprite.new
  61.     @角色三.bitmap = Bitmap.new(bitmap)
  62.     @角色三.x = $角色三_x - 80
  63.     @角色三.y = $角色三_y - 180
  64.  
  65.     bitmap = "Graphics/Battlers/#{$game_party.actors[1].battler_name}"
  66.     @角色四 = Sprite.new
  67.     @角色四.bitmap = Bitmap.new(bitmap)
  68.     @角色四.x = $角色四_x - 80
  69.     @角色四.y = $角色四_y - 180
  70.   end
  71.     # 执行过渡
  72.     Graphics.transition
  73.     # 主循环
  74.     loop do
  75.       # 刷新游戏画面
  76.       Graphics.update
  77.       # 刷新输入信息
  78.       Input.update
  79.       # 刷新画面
  80.       update
  81.       # 如果切换画面就中断循环
  82.       if $scene != self
  83.         break
  84.       end
  85.     end
  86.     # 准备过渡
  87.     Graphics.freeze
  88.     # 释放窗口
  89.     @ditu.dispose
  90.     @角色一.dispose
  91.     @角色二.dispose
  92.     @角色三.dispose
  93.     @角色四.dispose
  94.   end
  95.   #--------------------------------------------------------------------------
  96.   # ● 刷新画面
  97.   #--------------------------------------------------------------------------
  98.   def update
  99.    mouse_x , mouse_y = Mouse.get_mouse_pos
  100.   if @点下 == 0
  101.     if Input.trigger?(Input::B)
  102.       $game_system.se_play($data_system.cancel_se)
  103.       $scene = Scene_Map.new
  104.     end
  105.   #####################点击区##############################
  106.   if $game_party.actors.size == 1
  107.   if mouse_x >= @角色一.x + 52 and  mouse_x <= @角色一.x + @角色一.bitmap.width - 55 and mouse_y >= @角色一.y + 82 and mouse_y <= @角色一.y + @角色一.bitmap.height - 23
  108.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  109.     @角色一x记录 = @角色一.x
  110.     @角色一y记录 = @角色一.y
  111.     @点下 = 1
  112.     end
  113.   end
  114.   elsif $game_party.actors.size == 2
  115.   if mouse_x >= @角色一.x + 52 and  mouse_x <= @角色一.x + @角色一.bitmap.width - 55 and mouse_y >= @角色一.y + 82 and mouse_y <= @角色一.y + @角色一.bitmap.height - 23
  116.      if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  117.     @角色一x记录 = @角色一.x
  118.     @角色一y记录 = @角色一.y
  119.     @点下 = 1
  120.     end
  121.   elsif mouse_x >= @角色二.x + 52 and  mouse_x <= @角色二.x + @角色二.bitmap.width - 55 and mouse_y >= @角色二.y + 82 and mouse_y <= @角色二.y + @角色二.bitmap.height - 23
  122.      if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  123.     @角色二x记录 = @角色二.x
  124.     @角色二y记录 = @角色二.y
  125.     @点下 = 2
  126.     end
  127.   end
  128.   elsif $game_party.actors.size == 3
  129.   if mouse_x >= @角色一.x + 52 and  mouse_x <= @角色一.x + @角色一.bitmap.width - 55 and mouse_y >= @角色一.y + 82 and mouse_y <= @角色一.y + @角色一.bitmap.height - 23
  130.      if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  131.     @角色一x记录 = @角色一.x
  132.     @角色一y记录 = @角色一.y
  133.     @点下 = 1
  134.     end
  135.   elsif mouse_x >= @角色二.x + 52 and  mouse_x <= @角色二.x + @角色二.bitmap.width - 55 and mouse_y >= @角色二.y + 82 and mouse_y <= @角色二.y + @角色二.bitmap.height - 23
  136.      if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  137.     @角色二x记录 = @角色二.x
  138.     @角色二y记录 = @角色二.y
  139.     @点下 = 2
  140.     end
  141.   elsif mouse_x >= @角色三.x + 52 and  mouse_x <= @角色三.x + @角色三.bitmap.width - 55 and mouse_y >= @角色三.y + 82 and mouse_y <= @角色三.y + @角色三.bitmap.height - 23
  142.      if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  143.     @角色三x记录 = @角色三.x
  144.     @角色三y记录 = @角色三.y
  145.     @点下 = 3
  146.     end
  147.   end
  148.   elsif $game_party.actors.size == 4
  149.   if mouse_x >= @角色一.x + 52 and  mouse_x <= @角色一.x + @角色一.bitmap.width - 55 and mouse_y >= @角色一.y + 82 and mouse_y <= @角色一.y + @角色一.bitmap.height - 23
  150.      if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  151.     @角色一x记录 = @角色一.x
  152.     @角色一y记录 = @角色一.y
  153.     @点下 = 1
  154.     end
  155.   elsif mouse_x >= @角色二.x + 52 and  mouse_x <= @角色二.x + @角色二.bitmap.width - 55 and mouse_y >= @角色二.y + 82 and mouse_y <= @角色二.y + @角色二.bitmap.height - 23
  156.      if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  157.     @角色二x记录 = @角色二.x
  158.     @角色二y记录 = @角色二.y
  159.     @点下 = 2
  160.     end
  161.   elsif mouse_x >= @角色三.x + 52 and  mouse_x <= @角色三.x + @角色三.bitmap.width - 55 and mouse_y >= @角色三.y + 82 and mouse_y <= @角色三.y + @角色三.bitmap.height - 23
  162.      if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  163.     @角色三x记录 = @角色三.x
  164.     @角色三y记录 = @角色三.y
  165.     @点下 = 3
  166.     end
  167.   elsif mouse_x >= @角色四.x + 52 and  mouse_x <= @角色四.x + @角色四.bitmap.width - 55 and mouse_y >= @角色四.y + 82 and mouse_y <= @角色四.y + @角色四.bitmap.height - 23
  168.      if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  169.     @角色四x记录 = @角色四.x
  170.     @角色四y记录 = @角色四.y
  171.     @点下 = 4
  172.     end
  173.   end
  174.   end
  175. end
  176. ##################移动区############################################
  177. if @点下 == 1
  178.   if mouse_x >= 244 and  mouse_x <= 244 + 86 and mouse_y >= 287 and mouse_y <= 287 + 35
  179.    if $角色一图块 == 1 or $角色二图块 == 1 or $角色三图块 == 1 or $角色四图块 == 1
  180.      else
  181.    @角色一.x = 275 - 68
  182.    @角色一.y = 235 - 83
  183.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  184.      @角色一.x = 275 - 68
  185.      @角色一.y = 235 - 83
  186.      $角色一_x = 275 - 68 + 80
  187.      $角色一_y = 275 - 68 + 180
  188.      $角色一图块 = 1
  189.      @点下 = 0
  190.     end
  191.   end
  192.   elsif mouse_x >= 303 and  mouse_x <= 303 + 86 and mouse_y >= 242 and mouse_y <= 242 + 35
  193.    if $角色一图块 == 2 or $角色二图块 == 2 or $角色三图块 == 2 or $角色四图块 == 2
  194.      else
  195.    @角色一.x = 329 - 68
  196.    @角色一.y = 193 - 83
  197.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  198.      @角色一.x = 329 - 68
  199.      @角色一.y = 193 - 83
  200.      $角色一_x = 329 - 68 + 80
  201.      $角色一_y = 193 - 68 + 180
  202.      $角色一图块 = 2
  203.      @点下 = 0
  204.     end
  205.   end
  206.  
  207.   elsif mouse_x >= 393 and  mouse_x <= 393 + 86 and mouse_y >= 222 and mouse_y <= 222 + 35
  208.    if $角色一图块 == 3 or $角色二图块 == 3 or $角色三图块 == 3 or $角色四图块 == 3
  209.      else
  210.    @角色一.x = 429 - 68
  211.    @角色一.y = 170 - 83
  212.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  213.      @角色一.x = 429 - 68
  214.      @角色一.y = 170 - 83
  215.      $角色一_x = 429 - 68 + 80
  216.      $角色一_y = 170 - 68 + 180
  217.      $角色一图块 = 3
  218.      @点下 = 0
  219.     end
  220.   end
  221.  
  222.   elsif mouse_x >= 254 and  mouse_x <= 254 + 86 and mouse_y >= 360 and mouse_y <= 360 + 35
  223.    if $角色一图块 == 4 or $角色二图块 == 4 or $角色三图块 == 4 or $角色四图块 == 4
  224.      else
  225.      @角色一.x = 300 - 80
  226.      @角色一.y = 410 - 180
  227.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  228.      @角色一.x = 300 - 80
  229.      @角色一.y = 410 - 180
  230.      $角色一_x = 300 - 80 + 80
  231.      $角色一_y = 410 - 180 + 180
  232.      $角色一图块 = 4
  233.      @点下 = 0
  234.     end
  235.   end
  236.  
  237.   elsif mouse_x >= 339 and  mouse_x <= 339 + 86 and mouse_y >= 323 and mouse_y <= 323 + 35
  238.    if $角色一图块 == 5 or $角色二图块 == 5 or $角色三图块 == 5 or $角色四图块 == 5
  239.      else
  240.    @角色一.x = 380 - 80
  241.    @角色一.y = 370 - 180
  242.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  243.      @角色一.x = 380 - 80
  244.      @角色一.y = 370 - 180
  245.      $角色一_x = 380 - 80 + 80
  246.      $角色一_y = 370 - 180 + 180
  247.      $角色一图块 = 5
  248.      @点下 = 0
  249.     end
  250.   end
  251.  
  252.   elsif mouse_x >= 417 and  mouse_x <= 417 + 86 and mouse_y >= 284 and mouse_y <= 284 + 35
  253.    if$角色一图块 == 6 or  $角色二图块 == 6 or $角色三图块 == 6 or $角色四图块 == 6
  254.      else
  255.    @角色一.x = 460 - 80
  256.    @角色一.y = 330 - 180
  257.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  258.      @角色一.x = 460 - 80
  259.      @角色一.y = 330 - 180
  260.      $角色一_x = 460 - 80 + 80
  261.      $角色一_y = 330 - 180 + 180
  262.      $角色一图块 = 6
  263.      @点下 = 0
  264.     end
  265.   end
  266.  
  267.   elsif mouse_x >= 494 and  mouse_x <= 494 + 86 and mouse_y >= 243 and mouse_y <= 243 + 35
  268.    if $角色一图块 == 7 or $角色二图块 == 7 or $角色三图块 == 7 or $角色四图块 == 7
  269.      else
  270.    @角色一.x = 540 - 80
  271.    @角色一.y = 290 - 180
  272.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  273.      @角色一.x = 540 - 80
  274.      @角色一.y = 290 - 180
  275.      $角色一_x = 540 - 80 + 80
  276.      $角色一_y = 290 - 180 + 180
  277.      $角色一图块 = 7
  278.      @点下 = 0
  279.     end
  280.   end
  281.  
  282.   elsif mouse_x >= 366 and  mouse_x <= 366 + 86 and mouse_y >= 395 and mouse_y <= 395 + 35
  283.    if $角色一图块 == 8 or $角色二图块 == 8 or $角色三图块 == 8 or $角色四图块 == 8
  284.      else
  285.    @角色一.x = 399 - 68
  286.    @角色一.y = 342 - 83
  287.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  288.      @角色一.x = 399 - 68
  289.      @角色一.y = 342 - 83
  290.      $角色一_x = 399 - 68 + 80
  291.      $角色一_y = 342 - 68 + 180
  292.      $角色一图块 = 8
  293.      @点下 = 0
  294.     end
  295.   end
  296.  
  297.   elsif mouse_x >= 477 and  mouse_x <= 477 + 86 and mouse_y >= 374 and mouse_y <= 374 + 35
  298.    if $角色一图块 == 9 or $角色二图块 == 9 or $角色三图块 == 9 or $角色四图块 == 9
  299.      else
  300.    @角色一.x = 512 - 68
  301.    @角色一.y = 322 - 83
  302.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  303.      @角色一.x = 512 - 68
  304.      @角色一.y = 322 - 83
  305.      $角色一_x = 512 - 68 + 80
  306.      $角色一_y = 322 - 68 + 180
  307.      $角色一图块 = 9
  308.      @点下 = 0
  309.     end
  310.   end
  311.  
  312.   elsif mouse_x >= 537 and  mouse_x <= 537 + 86 and mouse_y >= 315 and mouse_y <= 315 + 35
  313.    if $角色一图块 == 10 or $角色二图块 == 10 or $角色三图块 == 10 or $角色四图块 == 10
  314.      else
  315.    @角色一.x = 568 - 68
  316.    @角色一.y = 266 - 83
  317.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  318.      @角色一.x = 568 - 68
  319.      @角色一.y = 266 - 83
  320.      $角色一_x = 568 - 68 + 80
  321.      $角色一_y = 266 - 68 + 180
  322.      $角色一图块 = 10
  323.      @点下 = 0
  324.     end
  325.   end
  326. else
  327.    @角色一.x = @角色一x记录
  328.    @角色一.y = @角色一y记录
  329. end
  330. if Input.trigger?(Input::B)
  331.   @角色一.x = @角色一x记录
  332.   @角色一.y = @角色一y记录
  333.   @点下 = 0
  334. end
  335. end
  336. if @点下 == 2
  337.   if mouse_x >= 244 and  mouse_x <= 244 + 86 and mouse_y >= 287 and mouse_y <= 287 + 35
  338.    if $角色一图块 == 1 or $角色二图块 == 1 or $角色三图块 == 1 or $角色四图块 == 1
  339.      else
  340.    @角色二.x = 275 - 68
  341.    @角色二.y = 235 - 83
  342.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  343.      @角色二.x = 275 - 68
  344.      @角色二.y = 235 - 83
  345.      $角色二_x = 275 - 68 + 80
  346.      $角色二_y = 275 - 68 + 180
  347.      $角色二图块 = 1
  348.      @点下 = 0
  349.     end
  350.   end
  351.   elsif mouse_x >= 303 and  mouse_x <= 303 + 86 and mouse_y >= 242 and mouse_y <= 242 + 35
  352.    if $角色一图块 == 2 or $角色二图块 == 2 or $角色三图块 == 2 or $角色四图块 == 2
  353.      else
  354.    @角色二.x = 329 - 68
  355.    @角色二.y = 193 - 83
  356.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  357.      @角色二.x = 329 - 68
  358.      @角色二.y = 193 - 83
  359.      $角色二_x = 329 - 68 + 80
  360.      $角色二_y = 193 - 68 + 180
  361.      $角色二图块 = 2
  362.      @点下 = 0
  363.     end
  364.   end
  365.  
  366.   elsif mouse_x >= 393 and  mouse_x <= 393 + 86 and mouse_y >= 222 and mouse_y <= 222 + 35
  367.    if $角色一图块 == 3 or $角色二图块 == 3 or $角色三图块 == 3 or $角色四图块 == 3
  368.      else
  369.    @角色二.x = 429 - 68
  370.    @角色二.y = 170 - 83
  371.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  372.      @角色二.x = 429 - 68
  373.      @角色二.y = 170 - 83
  374.      $角色二_x = 429 - 68 + 80
  375.      $角色二_y = 170 - 68 + 180
  376.      $角色二图块 = 3
  377.      @点下 = 0
  378.     end
  379.   end
  380.  
  381.   elsif mouse_x >= 254 and  mouse_x <= 254 + 86 and mouse_y >= 360 and mouse_y <= 360 + 35
  382.    if $角色一图块 == 4 or $角色二图块 == 4 or $角色三图块 == 4 or $角色四图块 == 4
  383.      else
  384.      @角色二.x = 300 - 80
  385.      @角色二.y = 410 - 180
  386.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  387.      @角色二.x = 300 - 80
  388.      @角色二.y = 410 - 180
  389.      $角色二_x = 300 - 80 + 80
  390.      $角色二_y = 410 - 180 + 180
  391.      $角色二图块 = 4
  392.      @点下 = 0
  393.     end
  394.   end
  395.  
  396.   elsif mouse_x >= 339 and  mouse_x <= 339 + 86 and mouse_y >= 323 and mouse_y <= 323 + 35
  397.    if $角色一图块 == 5 or $角色二图块 == 5 or $角色三图块 == 5 or $角色四图块 == 5
  398.      else
  399.    @角色二.x = 380 - 80
  400.    @角色二.y = 370 - 180
  401.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  402.      @角色二.x = 380 - 80
  403.      @角色二.y = 370 - 180
  404.      $角色二_x = 380 - 80 + 80
  405.      $角色二_y = 370 - 180 + 180
  406.      $角色二图块 = 5
  407.      @点下 = 0
  408.     end
  409.   end
  410.  
  411.   elsif mouse_x >= 417 and  mouse_x <= 417 + 86 and mouse_y >= 284 and mouse_y <= 284 + 35
  412.    if$角色一图块 == 6 or  $角色二图块 == 6 or $角色三图块 == 6 or $角色四图块 == 6
  413.      else
  414.    @角色二.x = 460 - 80
  415.    @角色二.y = 330 - 180
  416.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  417.      @角色二.x = 460 - 80
  418.      @角色二.y = 330 - 180
  419.      $角色二_x = 460 - 80 + 80
  420.      $角色二_y = 330 - 180 + 180
  421.      $角色二图块 = 6
  422.      @点下 = 0
  423.     end
  424.   end
  425.  
  426.   elsif mouse_x >= 494 and  mouse_x <= 494 + 86 and mouse_y >= 243 and mouse_y <= 243 + 35
  427.    if $角色一图块 == 7 or $角色二图块 == 7 or $角色三图块 == 7 or $角色四图块 == 7
  428.      else
  429.    @角色二.x = 540 - 80
  430.    @角色二.y = 290 - 180
  431.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  432.      @角色二.x = 540 - 80
  433.      @角色二.y = 290 - 180
  434.      $角色二_x = 540 - 80 + 80
  435.      $角色二_y = 290 - 180 + 180
  436.      $角色二图块 = 7
  437.      @点下 = 0
  438.     end
  439.   end
  440.  
  441.   elsif mouse_x >= 366 and  mouse_x <= 366 + 86 and mouse_y >= 395 and mouse_y <= 395 + 35
  442.    if $角色一图块 == 8 or $角色二图块 == 8 or $角色三图块 == 8 or $角色四图块 == 8
  443.      else
  444.    @角色二.x = 399 - 68
  445.    @角色二.y = 342 - 83
  446.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  447.      @角色二.x = 399 - 68
  448.      @角色二.y = 342 - 83
  449.      $角色二_x = 399 - 68 + 80
  450.      $角色二_y = 342 - 68 + 180
  451.      $角色二图块 = 8
  452.      @点下 = 0
  453.     end
  454.   end
  455.  
  456.   elsif mouse_x >= 477 and  mouse_x <= 477 + 86 and mouse_y >= 374 and mouse_y <= 374 + 35
  457.    if $角色一图块 == 9 or $角色二图块 == 9 or $角色三图块 == 9 or $角色四图块 == 9
  458.      else
  459.     @角色二.x = 512 - 68
  460.     @角色二.y = 322 - 83
  461.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  462.      @角色二.x = 512 - 68
  463.      @角色二.y = 322 - 83
  464.      $角色二_x = 512 - 68 + 80
  465.      $角色二_y = 322 - 68 + 180
  466.      $角色二图块 = 9
  467.      @点下 = 0
  468.     end
  469.   end
  470.  
  471.   elsif mouse_x >= 537 and  mouse_x <= 537 + 86 and mouse_y >= 315 and mouse_y <= 315 + 35
  472.    if $角色一图块 == 10 or $角色二图块 == 10 or $角色三图块 == 10 or $角色四图块 == 10
  473.      else
  474.    @角色二.x = 568 - 68
  475.    @角色二.y = 266 - 83
  476.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  477.      @角色二.x = 568 - 68
  478.      @角色二.y = 266 - 83
  479.      $角色二_x = 568 - 68 + 80
  480.      $角色二_y = 266 - 68 + 180
  481.      $角色二图块 = 10
  482.      @点下 = 0
  483.     end
  484.   end
  485. else
  486.    @角色二.x = @角色二x记录
  487.    @角色二.y = @角色二y记录
  488. end
  489.     if Input.trigger?(Input::B)
  490.      @角色二.x = @角色二x记录
  491.      @角色二.y = @角色二y记录
  492.      @点下 = 0
  493.     end
  494. end
  495. if @点下 == 3
  496.   if mouse_x >= 244 and  mouse_x <= 244 + 86 and mouse_y >= 287 and mouse_y <= 287 + 35
  497.    if $角色一图块 == 1 or $角色二图块 == 1 or $角色三图块 == 1 or $角色四图块 == 1
  498.      else
  499.    @角色三.x = 275 - 68
  500.    @角色三.y = 235 - 83
  501.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  502.      @角色三.x = 275 - 68
  503.      @角色三.y = 235 - 83
  504.      $角色三_x = 275 - 68 + 80
  505.      $角色三_y = 275 - 68 + 180
  506.      $角色三图块 = 1
  507.      @点下 = 0
  508.     end
  509.   end
  510.   elsif mouse_x >= 303 and  mouse_x <= 303 + 86 and mouse_y >= 242 and mouse_y <= 242 + 35
  511.    if $角色一图块 == 2 or $角色二图块 == 2 or $角色三图块 == 2 or $角色四图块 == 2
  512.      else
  513.    @角色三.x = 329 - 68
  514.    @角色三.y = 193 - 83
  515.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  516.      @角色三.x = 329 - 68
  517.      @角色三.y = 193 - 83
  518.      $角色三_x = 329 - 68 + 80
  519.      $角色三_y = 193 - 68 + 180
  520.      $角色三图块 = 2
  521.      @点下 = 0
  522.     end
  523.   end
  524.  
  525.   elsif mouse_x >= 393 and  mouse_x <= 393 + 86 and mouse_y >= 222 and mouse_y <= 222 + 35
  526.    if $角色一图块 == 3 or $角色二图块 == 3 or $角色三图块 == 3 or $角色四图块 == 3
  527.      else
  528.    @角色三.x = 429 - 68
  529.    @角色三.y = 170 - 83
  530.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  531.      @角色三.x = 429 - 68
  532.      @角色三.y = 170 - 83
  533.      $角色三_x = 429 - 68 + 80
  534.      $角色三_y = 170 - 68 + 180
  535.      $角色三图块 = 3
  536.      @点下 = 0
  537.     end
  538.   end
  539.  
  540.   elsif mouse_x >= 254 and  mouse_x <= 254 + 86 and mouse_y >= 360 and mouse_y <= 360 + 35
  541.    if $角色一图块 == 4 or $角色二图块 == 4 or $角色三图块 == 4 or $角色四图块 == 4
  542.      else
  543.      @角色三.x = 300 - 80
  544.      @角色三.y = 410 - 180
  545.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  546.      @角色三.x = 300 - 80
  547.      @角色三.y = 410 - 180
  548.      $角色三_x = 300 - 80 + 80
  549.      $角色三_y = 410 - 180 + 180
  550.      $角色三图块 = 4
  551.      @点下 = 0
  552.     end
  553.   end
  554.  
  555.   elsif mouse_x >= 339 and  mouse_x <= 339 + 86 and mouse_y >= 323 and mouse_y <= 323 + 35
  556.    if $角色一图块 == 5 or $角色二图块 == 5 or $角色三图块 == 5 or $角色四图块 == 5
  557.      else
  558.    @角色三.x = 380 - 80
  559.    @角色三.y = 370 - 180
  560.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  561.      @角色三.x = 380 - 80
  562.      @角色三.y = 370 - 180
  563.      $角色三_x = 380 - 80 + 80
  564.      $角色三_y = 370 - 180 + 180
  565.      $角色三图块 = 5
  566.      @点下 = 0
  567.     end
  568.   end
  569.  
  570.   elsif mouse_x >= 417 and  mouse_x <= 417 + 86 and mouse_y >= 284 and mouse_y <= 284 + 35
  571.    if$角色一图块 == 6 or  $角色二图块 == 6 or $角色三图块 == 6 or $角色四图块 == 6
  572.      else
  573.    @角色三.x = 460 - 80
  574.    @角色三.y = 330 - 180
  575.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  576.      @角色三.x = 460 - 80
  577.      @角色三.y = 330 - 180
  578.      $角色三_x = 460 - 80 + 80
  579.      $角色三_y = 330 - 180 + 180
  580.      $角色三图块 = 6
  581.      @点下 = 0
  582.     end
  583.   end
  584.  
  585.   elsif mouse_x >= 494 and  mouse_x <= 494 + 86 and mouse_y >= 243 and mouse_y <= 243 + 35
  586.    if $角色一图块 == 7 or $角色二图块 == 7 or $角色三图块 == 7 or $角色四图块 == 7
  587.      else
  588.    @角色三.x = 540 - 80
  589.    @角色三.y = 290 - 180
  590.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  591.      @角色三.x = 540 - 80
  592.      @角色三.y = 290 - 180
  593.      $角色三_x = 540 - 80 + 80
  594.      $角色三_y = 290 - 180 + 180
  595.      $角色三图块 = 7
  596.      @点下 = 0
  597.     end
  598.   end
  599.  
  600.   elsif mouse_x >= 366 and  mouse_x <= 366 + 86 and mouse_y >= 395 and mouse_y <= 395 + 35
  601.    if $角色一图块 == 8 or $角色二图块 == 8 or $角色三图块 == 8 or $角色四图块 == 8
  602.      else
  603.    @角色三.x = 399 - 68
  604.    @角色三.y = 342 - 83
  605.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  606.      @角色三.x = 399 - 68
  607.      @角色三.y = 342 - 83
  608.      $角色三_x = 399 - 68 + 80
  609.      $角色三_y = 342 - 68 + 180
  610.      $角色三图块 = 8
  611.      @点下 = 0
  612.     end
  613.   end
  614.  
  615.   elsif mouse_x >= 477 and  mouse_x <= 477 + 86 and mouse_y >= 374 and mouse_y <= 374 + 35
  616.    if $角色一图块 == 9 or $角色二图块 == 9 or $角色三图块 == 9 or $角色四图块 == 9
  617.      else
  618.    @角色三.x = 512 - 68
  619.    @角色三.y = 322 - 83
  620.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  621.      @角色三.x = 512 - 68
  622.      @角色三.y = 322 - 83
  623.      $角色三_x = 512 - 68 + 80
  624.      $角色三_y = 322 - 68 + 180
  625.      $角色三图块 = 9
  626.      @点下 = 0
  627.     end
  628.   end
  629.  
  630.   elsif mouse_x >= 537 and  mouse_x <= 537 + 86 and mouse_y >= 315 and mouse_y <= 315 + 35
  631.    if $角色一图块 == 10 or $角色二图块 == 10 or $角色三图块 == 10 or $角色四图块 == 10
  632.      else
  633.    @角色三.x = 568 - 68
  634.    @角色三.y = 266 - 83
  635.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  636.      @角色三.x = 568 - 68
  637.      @角色三.y = 266 - 83
  638.      $角色三_x = 568 - 68 + 80
  639.      $角色三_y = 266 - 68 + 180
  640.      $角色三图块 = 10
  641.      @点下 = 0
  642.     end
  643.   end
  644. else
  645.    @角色三.x = @角色三x记录
  646.    @角色三.y = @角色三y记录
  647. end
  648.     if Input.trigger?(Input::B)
  649.      @角色三.x = @角色三x记录
  650.      @角色三.y = @角色三y记录
  651.      @点下 = 0
  652.     end
  653. end
  654. if @点下 == 4
  655.   if mouse_x >= 244 and  mouse_x <= 244 + 86 and mouse_y >= 287 and mouse_y <= 287 + 35
  656.    if $角色一图块 == 1 or $角色二图块 == 1 or $角色三图块 == 1 or $角色四图块 == 1
  657.      else
  658.    @角色四.x = 275 - 68
  659.    @角色四.y = 235 - 83
  660.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  661.      @角色四.x = 275 - 68
  662.      @角色四.y = 235 - 83
  663.      $角色四_x = 275 - 68 + 80
  664.      $角色四_y = 275 - 68 + 180
  665.      $角色四图块 = 1
  666.      @点下 = 0
  667.     end
  668.   end
  669.   elsif mouse_x >= 303 and  mouse_x <= 303 + 86 and mouse_y >= 242 and mouse_y <= 242 + 35
  670.    if $角色一图块 == 2 or $角色二图块 == 2 or $角色三图块 == 2 or $角色四图块 == 2
  671.      else
  672.    @角色四.x = 329 - 68
  673.    @角色四.y = 193 - 83
  674.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  675.      @角色四.x = 329 - 68
  676.      @角色四.y = 193 - 83
  677.      $角色四_x = 329 - 68 + 80
  678.      $角色四_y = 193 - 68 + 180
  679.      $角色四图块 = 2
  680.      @点下 = 0
  681.     end
  682.   end
  683.  
  684.   elsif mouse_x >= 393 and  mouse_x <= 393 + 86 and mouse_y >= 222 and mouse_y <= 222 + 35
  685.    if $角色一图块 == 3 or $角色二图块 == 3 or $角色三图块 == 3 or $角色四图块 == 3
  686.      else
  687.    @角色四.x = 429 - 68
  688.    @角色四.y = 170 - 83
  689.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  690.      @角色四.x = 429 - 68
  691.      @角色四.y = 170 - 83
  692.      $角色四_x = 429 - 68 + 80
  693.      $角色四_y = 170 - 68 + 180
  694.      $角色四图块 = 3
  695.      @点下 = 0
  696.     end
  697.   end
  698.  
  699.   elsif mouse_x >= 254 and  mouse_x <= 254 + 86 and mouse_y >= 360 and mouse_y <= 360 + 35
  700.    if $角色一图块 == 4 or $角色二图块 == 4 or $角色三图块 == 4 or $角色四图块 == 4
  701.      else
  702.      @角色四.x = 300 - 80
  703.      @角色四.y = 410 - 180
  704.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  705.      @角色四.x = 300 - 80
  706.      @角色四.y = 410 - 180
  707.      $角色四_x = 300 - 80 + 80
  708.      $角色四_y = 410 - 180 + 180
  709.      $角色四图块 = 4
  710.      @点下 = 0
  711.     end
  712.   end
  713.  
  714.   elsif mouse_x >= 339 and  mouse_x <= 339 + 86 and mouse_y >= 323 and mouse_y <= 323 + 35
  715.    if $角色一图块 == 5 or $角色二图块 == 5 or $角色三图块 == 5 or $角色四图块 == 5
  716.      else
  717.    @角色四.x = 380 - 80
  718.    @角色四.y = 370 - 180
  719.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  720.      @角色四.x = 380 - 80
  721.      @角色四.y = 370 - 180
  722.      $角色四_x = 380 - 80 + 80
  723.      $角色四_y = 370 - 180 + 180
  724.      $角色四图块 = 5
  725.      @点下 = 0
  726.     end
  727.   end
  728.  
  729.   elsif mouse_x >= 417 and  mouse_x <= 417 + 86 and mouse_y >= 284 and mouse_y <= 284 + 35
  730.    if$角色一图块 == 6 or  $角色二图块 == 6 or $角色三图块 == 6 or $角色四图块 == 6
  731.      else
  732.    @角色四.x = 460 - 80
  733.    @角色四.y = 330 - 180
  734.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  735.      @角色四.x = 460 - 80
  736.      @角色四.y = 330 - 180
  737.      $角色四_x = 460 - 80 + 80
  738.      $角色四_y = 330 - 180 + 180
  739.      $角色四图块 = 6
  740.      @点下 = 0
  741.     end
  742.   end
  743.  
  744.   elsif mouse_x >= 494 and  mouse_x <= 494 + 86 and mouse_y >= 243 and mouse_y <= 243 + 35
  745.    if $角色一图块 == 7 or $角色二图块 == 7 or $角色三图块 == 7 or $角色四图块 == 7
  746.      else
  747.    @角色四.x = 540 - 80
  748.    @角色四.y = 290 - 180
  749.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  750.      @角色四.x = 540 - 80
  751.      @角色四.y = 290 - 180
  752.      $角色四_x = 540 - 80 + 80
  753.      $角色四_y = 290 - 180 + 180
  754.      $角色四图块 = 7
  755.      @点下 = 0
  756.     end
  757.   end
  758.  
  759.   elsif mouse_x >= 366 and  mouse_x <= 366 + 86 and mouse_y >= 395 and mouse_y <= 395 + 35
  760.    if $角色一图块 == 8 or $角色二图块 == 8 or $角色三图块 == 8 or $角色四图块 == 8
  761.      else
  762.    @角色四.x = 399 - 68
  763.    @角色四.y = 342 - 83
  764.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  765.      @角色四.x = 399 - 68
  766.      @角色四.y = 342 - 83
  767.      $角色四_x = 399 - 68 + 80
  768.      $角色四_y = 342 - 68 + 180
  769.      $角色四图块 = 8
  770.      @点下 = 0
  771.     end
  772.   end
  773.  
  774.   elsif mouse_x >= 477 and  mouse_x <= 477 + 86 and mouse_y >= 374 and mouse_y <= 374 + 35
  775.    if $角色一图块 == 9 or $角色二图块 == 9 or $角色三图块 == 9 or $角色四图块 == 9
  776.      else
  777.    @角色四.x = 512 - 68
  778.    @角色四.y = 322 - 83
  779.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  780.      @角色四.x = 512 - 68
  781.      @角色四.y = 322 - 83
  782.      $角色四_x = 512 - 68 + 80
  783.      $角色四_y = 322 - 68 + 180
  784.      $角色四图块 = 9
  785.      @点下 = 0
  786.     end
  787.   end
  788.  
  789.   elsif mouse_x >= 537 and  mouse_x <= 537 + 86 and mouse_y >= 315 and mouse_y <= 315 + 35
  790.    if $角色一图块 == 10 or $角色二图块 == 10 or $角色三图块 == 10 or $角色四图块 == 10
  791.      else
  792.    @角色四.x = 568 - 68
  793.    @角色四.y = 266 - 83
  794.     if Mouse.trigger?(Mouse::LEFT) #当点击鼠标时
  795.      @角色四.x = 568 - 68
  796.      @角色四.y = 266 - 83
  797.      $角色四_x = 568 - 68 + 80
  798.      $角色四_y = 266 - 68 + 180
  799.      $角色四图块 = 10
  800.      @点下 = 0
  801.     end
  802.   end
  803. else
  804.    @角色四.x = @角色四x记录
  805.    @角色四.y = @角色四y记录
  806. end
  807.     if Input.trigger?(Input::B)
  808.      @角色四.x = @角色四x记录
  809.      @角色四.y = @角色四y记录
  810.      @点下 = 0
  811.     end
  812. end
  813. ##################移动区############################################
  814.   ##############效果区######################################
  815. if $game_party.actors.size == 1
  816. if @点下 == 1
  817.   @角色一.color = Color.new(255,255,255,rand(255))
  818. else
  819.   @角色一.color = Color.new(255,255,255,0)
  820. end
  821.  
  822. elsif $game_party.actors.size == 2
  823. if @点下 == 1
  824.   @角色一.color = Color.new(255,255,255,rand(255))
  825. else
  826.   @角色一.color = Color.new(255,255,255,0)
  827. end
  828.   if @点下 == 2
  829.   @角色二.color = Color.new(255,255,255,rand(255))
  830. else
  831.   @角色二.color = Color.new(255,255,255,0)
  832. end
  833.  
  834. elsif $game_party.actors.size == 3
  835. if @点下 == 1
  836.   @角色一.color = Color.new(255,255,255,rand(255))
  837. else
  838.   @角色一.color = Color.new(255,255,255,0)
  839. end
  840.   if @点下 == 2
  841.   @角色二.color = Color.new(255,255,255,rand(255))
  842. else
  843.   @角色二.color = Color.new(255,255,255,0)
  844. end
  845.   if @点下 == 3
  846.   @角色三.color = Color.new(255,255,255,rand(255))
  847. else
  848.   @角色三.color = Color.new(255,255,255,0)
  849. end
  850.  
  851. elsif $game_party.actors.size == 4
  852. if @点下 == 1
  853.   @角色一.color = Color.new(255,255,255,rand(255))
  854. else
  855.   @角色一.color = Color.new(255,255,255,0)
  856. end
  857.   if @点下 == 2
  858.   @角色二.color = Color.new(255,255,255,rand(255))
  859. else
  860.   @角色二.color = Color.new(255,255,255,0)
  861. end
  862.   if @点下 == 3
  863.   @角色三.color = Color.new(255,255,255,rand(255))
  864. else
  865.   @角色三.color = Color.new(255,255,255,0)
  866. end
  867.   if @点下 == 4
  868.   @角色四.color = Color.new(255,255,255,rand(255))
  869. else
  870.   @角色四.color = Color.new(255,255,255,0)
  871. end
  872. end
  873.   ##############效果区######################################
  874. end
  875. end

列队脚本图参考

地图设置.png (22.46 KB, 下载次数: 4)

地图设置.png

矩形位置.png (7.52 KB, 下载次数: 2)

矩形示意图

矩形示意图

列队1.png (20.63 KB, 下载次数: 0)

列队1矩形窗口图

列队1矩形窗口图

队列.png (153.88 KB, 下载次数: 6)

脚本样本

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-4 06:00

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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