Project1

标题: 大家看看这段随机的战斗渐变脚本对吗 [打印本页]

作者: 残风£幻月    时间: 2008-9-30 04:04
提示: 作者被禁止或删除 内容自动屏蔽
作者: hitlerson    时间: 2008-9-30 04:11
开关10没打开的情况你没写啊{/gg}
if $game_switches[10]

else

end

不好意思,看错

检查你的第一个CASE的END在哪呢。。。
作者: dbshy    时间: 2008-9-30 04:13
  1. # 执行过渡
  2.    if $data_system.battle_transition == ""
  3.      Graphics.transition(20)
  4.    else
  5.      randtra = rand(5)
  6.    if $game_switches[10]          #当10号开关(BOSS战)打开时
  7.    
  8.      case randtra
  9.      when 0
  10.        Graphics.transition(40, "Graphics/Transitions/trans_9S_3.png" )
  11.      when 1
  12.        Graphics.transition(40, "Graphics/Transitions/transCorbaquejuin664.jpg" )
  13.      when 2
  14.        Graphics.transition(40, "Graphics/Transitions/transCorbaquejuin665.jpg" )
  15.      when 3
  16.        Graphics.transition(40, "Graphics/Transitions/transCorbaquejuin669.jpg" )
  17.      when 4
  18.        Graphics.transition(40, "Graphics/Transitions/9S_626-_by-Mark417_transi2.png" )
  19.      when 5
  20.        Graphics.transition(40, "Graphics/Transitions/transCorbaquejuin669.jpg" )
  21.       end
  22.      else
  23.    case randtra
  24.   when 0
  25.      Graphics.transition(40, "Graphics/Transitions/003-Blind03.png" )
  26.   when 1
  27.     Graphics.transition(40, "Graphics/Transitions/004-Blind04.png")
  28.   when 2
  29.     Graphics.transition(40, "Graphics/Transitions/014-Square02.png")
  30.   when 3
  31.     Graphics.transition(40, "Graphics/Transitions/016.jpg")
  32.   when 4
  33.     Graphics.transition(40, "Graphics/Transitions/014-Square02.png")
  34.   when 5
  35.     Graphics.transition(40, "Graphics/Transitions/trans_9S_6.png")
  36.   end

  37.   end
  38.   end
复制代码


试试看,发现我现在连基本的语法都不记得了 = = [LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: 残风£幻月    时间: 2008-9-30 04:27
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1