Project1

标题: 这段关于战斗物品使用的脚本应该添加到哪里呢? [打印本页]

作者: zing000    时间: 2007-8-28 00:20
标题: 这段关于战斗物品使用的脚本应该添加到哪里呢?
    if item_id <= (900)
     return true
   end
   if item_id >= (900) and state?(15)
     return true
   else
     return false
   end

我的本意是想只有在状态15的情况下,ID900以后的物品才能在战斗中使用,900以前的物品不分限制。

不知道脚本是否正确,如果正确,那么我应该把这段脚本放在哪里呢?谢谢!
作者: zing000    时间: 2007-8-28 00:20
标题: 这段关于战斗物品使用的脚本应该添加到哪里呢?
    if item_id <= (900)
     return true
   end
   if item_id >= (900) and state?(15)
     return true
   else
     return false
   end

我的本意是想只有在状态15的情况下,ID900以后的物品才能在战斗中使用,900以前的物品不分限制。

不知道脚本是否正确,如果正确,那么我应该把这段脚本放在哪里呢?谢谢!
作者: 柳佳淇    时间: 2007-8-28 00:24
if item_id <= (900)
    return true
  end
  if item_id >= (900) and state?(15)
    return true
  else
    return false
  end

900的物品到底可以不可以啊,怎么两个都是=??应该只有一个是=
作者: zing000    时间: 2007-8-28 00:35
这个。。。次要的。。。900的是“说明”,无所谓~
作者: 柳佳淇    时间: 2007-8-28 01:12
在Game_Battler 2新建立个 ●判断状态,如果是状态15,则全局变量1为真
在Game_Actor● 可以装备判定 里面 加上条件分歧,当在战斗的时候&&全局变量1为真时 可以使用900物品

不知道可不可行,没有建立工程实践
作者: zing000    时间: 2007-8-29 19:18
脚本苦手。。。能不能教我怎么写。。。谢谢




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