心灵终结3ini吧 关注:11,928贴子:211,424
  • 15回复贴,共1

时间停止代码求助

只看楼主收藏回复

新人最近在自学代码,想要搞一个时间停止绑在一个建筑上虐电。麻烦大佬们帮看下代码有啥问题,目前游戏能正常进入但是没有显示这个建筑的建造选项。


IP属地:四川1楼2024-08-24 00:41回复
    首先是我注册的这个建筑:
    [CATIME]
    UIName=NAME:CATIME02
    Name=Time Machine
    Image=CATIME01
    BuildCat=Combat
    Prerequisite=GACNST,NACNST,YACNST,FACNST
    TechLevel=1
    Owner=Europeans,UnitedStates,Pacific,USSR,Latin,Chinese,PsiCorps,Headquaters,ScorpionCell,Guild1,Guild2,Guild3
    Cost=0
    Adjacent=12
    EligibileForAllyBuilding=yes
    BuildLimit=1
    Insignificant=no
    ProduceCashAmount=200
    ProduceCashDelay=100
    ProduceCashDisplay=yes
    AIBuildThis=no
    Strength=2000
    Nominal=yes
    Sight=8
    Points=5
    Armor=steel_b
    Explosion=GBLDEXP1,GBLDEXP2,GBLDEXP3,GBLDEXP4,GBLDEXP5,GBLDEXP6,GBLDEXP7,GBLDEXP8,GBLDEXP9,GBLDEXP10
    BaseNormal=no
    Sight=6
    MaxDebris=0
    ClickRepairable=yes
    LeaveRubble=yes
    Chronoshift.Allow=no
    SuperWeapon=TimeFreezeSpecialXE
    Superweapon2=GearChangeSpecialXE
    Primary=TimeFreezeWeaponXE
    EMPulseCannon=yes
    VoiceSelect=ChronosphereSelectSound
    WorkingSound=ChronosphereSelectSound


    IP属地:四川2楼2024-08-24 00:43
    回复
      这个是超武属性:
      [TimeFreezeSpecialXE]
      UIName=NAME:TimeFreeze
      Name=Time Freeze
      IsPowered=true
      RechargeTime=1
      Type=EMPulse
      Action=Custom
      SidebarPCX=frezicon.pcx
      ShowTimer=no
      DisableableFromShell=no
      Range=1.4
      LineMultiplier=1
      SW.FireIntoShroud=no
      EVA.Ready=EVA_BattlePowerReady
      SW.AITargeting=Self
      EMPulse.TargetSelf=yes
      FlashSidebarTabFrames=0
      SW.AffectsHouse=owner
      Text.Ready=NAME:ACTIVATE
      SW.CreateRadarEvent=no
      SW.Sound=HarmonizerPowerUpSingle
      Message.Launch=MISSION:TimeFreeze
      Message.Ready=MISSION:FreezeReady
      Light.Blue=75
      Light.Red=45
      Light.Green=45
      Light.Ambient=100
      EMPulse.Cannons=CATIME
      SW.AuxBuildings=CATIME
      EMPulse.PulseDelay=120
      EMPulse.PulseBall=BOIDCHARGE
      SW.Sound=HarmonizerPowerUP
      SW.ActivationSound=HarmonizerPowerUp
      Message.Firercolor=yes
      Message.Launch=NAME :TimeFreeze


      IP属地:四川3楼2024-08-24 00:44
      回复
        武器属性:
        [TimeFreezeWeaponXE]
        Damage=0
        Range=0.5
        ROF=450
        Projectile=WOCP
        Speed=100
        Warhead=TimeFreezeWHXE
        AreaFire=yes
        Anim=THORING
        OmniFire=yes
        FireOnce=yes
        Report=HarmonizerPowerUpSingle
        DistributedWeaponFire=yes


        IP属地:四川4楼2024-08-24 00:45
        回复
          最后的伤害率之类的:
          [TimeFreezeWHXE]
          Verses=3%,3%,3%,3%,3%,3%,3%,3%,3%,3%,3%
          CellSpread=225
          EMP.Duration=1850
          EMP.Cap=1850
          PercentAtMax=1
          AffectsAllies=no
          Conventional=no
          AffectsEnemies=yes
          PreventScatter=yes
          Sonar.Duration=600
          DisableWeapons.Duration=600
          AttachEffect.Duration=1850
          AttachEffect.Animation=SPHERE
          AttachEffect.ForceDecloak=yes
          AttachEffect.SpeedMultiplier=0
          AttachEffect.FirepowerMultiplier=0
          AttachEffect,PenetratesIronCurtain=yes


          IP属地:四川5楼2024-08-24 00:46
          回复
            “Prerequisite=GACNST,NACNST,YACNST,FACNST”,这是四家建造场。


            IP属地:江苏来自Android客户端6楼2024-08-24 00:59
            收起回复
              建造前提的不同项之间是“与”的关系
              ,你这建筑的建造前提实际上是“需要同时拥有四国建造厂”


              IP属地:河北来自iPhone客户端7楼2024-08-24 04:52
              收起回复
                你试一试pererquisite后面啥也别写


                IP属地:内蒙古来自Android客户端8楼2024-08-24 15:25
                回复
                  PrerequisiteOverride=(写上你需要的建筑名,只要有其中一个就能建造)
                  如果不熟悉Prerequisite的用法,就无脑用over,前者是必须全部满足,后者是满足其一即可


                  IP属地:四川9楼2024-08-24 16:51
                  收起回复
                    注意,你的时停开道一半敌人会打你,而且有些人也会重新隐身,虽然是不会动伤害没有,建议都改成1800


                    IP属地:河北来自Android客户端11楼2024-12-13 10:57
                    回复