quakequake 发表于 2011-6-24 23:17

perkDispatcher.script为啥我修改起来无效???(已解决)

本帖最后由 quakequake 于 2011-6-25 00:09 编辑

RT~~改船啊任务啊,技能啊什么的都有效,唯独这个文件改了之后没什么变化,比如其中影响最大速度的一段
function ModifyShipMaxSpeed(pilot, shipMaxSpeed)
      local modifiedShipMaxSpeed = shipMaxSpeed;

      local amplifier = 1;
--      PROLOG("ModifyShipMaxSpeed");
--      BEFORE(modifiedShipMaxSpeed);

      if pilot:HavePerk("Engine_Op")
      then
                amplifier = amplifier + .1;
      end;

      if pilot:HavePerk("Engine_Exp")
      then
                amplifier = amplifier + .15;
      end;

      if pilot:HavePerk("Systems_1")
      then
                amplifier = amplifier + .05;
      end;

      if pilot:HavePerk("Systems_2")
      then
                amplifier = amplifier + .05;
      end;

      if pilot:HavePerk("Systems_3")
      then
                amplifier = amplifier + .05;
      end;

      if pilot:HavePerk("Systems_4")
      then
                amplifier = amplifier + .1;
      end;


      modifiedShipMaxSpeed = modifiedShipMaxSpeed * amplifier;

--      AFTER(modifiedShipMaxSpeed);
--      EPILOG("ModifyShipMaxSpeed");

      return modifiedShipMaxSpeed;
end;
我先给人物加上上面的所有技能,然后删掉上面那段,结果发现飞船的最大速度那一项还是变了。。。。
















哼,都不回我贴,我才不告诉你们是要打开F:\Star.Wolves.3-Civil.War\Data\AI\AI.ini的useLUAPerkProcessor这一项呢~~~
页: [1]
查看完整版本: perkDispatcher.script为啥我修改起来无效???(已解决)