[hiddenAction_死亡] autoTriggerOnEvent:destroyed showMessageToAllPlayers:Lalaiye Storm mothership suffered an irreparable error, %{self.playerName} of Lalaye Storm mothership was destroyed ..... showMessageToAllPlayers_zh:拉莱耶-风暴战舰受到不可修复的错误,%{self.playerName}的拉莱耶-风暴母舰被摧毁..... [core] name: 拉莱耶风暴战舰 class: CustomUnitMetadata @memory #:number[] updateUnitMemory: #[0]= self.hp%10, #[1]= int((self.hp%100)/10), #[2]= int((self.hp%1000)/100),#[3]= int((self.hp%10000)/1000) updateUnitMemoryRate:0 displayText_zh:拉莱耶风暴战舰 displayDescription_zh:你与莱顿势力已经进行了足够多的洽谈会议,然而若想进一步让莱顿势力更加认可我们,势必还需要更多的实力让他们认可我们。 copyFrom:ROOT:/effect/extra/index.template #高级特效 displayText:Lalaiye Storm Battleship displayDescription:You have had enough negotiation meetings with the Leiden forces, yet if you want to further make the Leiden forces recognize us more, you will inevitably need more strength to make them recognize us. tags:拉莱耶 #overrideAndReplace:mechEngineer #price: 2 price: 5000 maxHp: 4280 mass: 100000 techLevel: 2 experimental: true buildSpeed: 35s #buildSpeed: 1 #availableInDemo: true radius: 120 displayRadius: 120 fogOfWarSightRange:15 transportSlotsNeeded: 3 isBio: false softCollisionOnAll: 3 #nanoFactorySpeed:2.5 canRepairBuildings: true nanoFactorySpeed:2 canRepairUnits : true autoRepair: true nanoRepairSpeed: 1.2 canReclaimResources: true generation_credits: 20 generation_delay: 40 nanoRange: 200 nanoBuildSpeed: 3 [attachment_K1] x: 80 y: 25 onCreateSpawnUnitOf: 纳米手臂 canBeAttackedAndDamaged:true [attachment_K2] x: -80 y: 27 onCreateSpawnUnitOf: 纳米手臂 canBeAttackedAndDamaged:true [attachment_K3] x: -80 y: -80 onCreateSpawnUnitOf: 纳米手臂 canBeAttackedAndDamaged:true [attachment_K4] x: 80 y: -80 onCreateSpawnUnitOf: 纳米手臂 canBeAttackedAndDamaged:true [canBuild_canReclaim] name: reclaim pos: -1 [canBuild_2] name: mechBunkerDeployed,LaserTurret forceNano: true #[canBuild_3] #name: mechFactory #forceNano: true [canBuild_4] name: airFactoryT2, seaFactoryT2 tech: 1 [canBuild_5] name: repairBay, turret, antiAirTurret, laserDefenceT2, extractorT2X, fabricatorT2X, landFactoryReworkedT2,TeslaTurret,CannonTurret,目视者, mechFactoryT2X [graphics] total_frames: 1 image:ROOT:/assets/oldsungodimg/lalaiye/middlelalaiyes.png image_turret: ROOT:/assets/oldsungodimg/lalaiye/buildarm.png image_shadow: AUTO #splastEffect: true #dustEffect: true icon_zoomed_out:ROOT:/assets/oldsungodimg/lalaiye/icon.png showHealthBar:false movementEffect:CUSTOM:尾焰,CUSTOM:trail,CUSTOM:trail2,CUSTOM:trai3,CUSTOM:trail4,CUSTOM:尾焰X,CUSTOM:尾焰XL,CUSTOM:尾焰LX movementEffectRate: 3 [effect_尾焰] image: ROOT:/assets/oldsungodimg/lalaiye/nofire.png life: 16 fadeOut: true attachedToUnit: false fadeInTime: 3 scaleFrom: 2.5 scaleTo: 1 alpha: 0.8 xSpeedRelativeRandom: 0.4 yOffsetRelative: -170 xOffsetRelative: -36 ySpeedRelative: 0.4 dirOffsetRandom: 0 drawUnderUnits:false atmospheric: true [effect_尾焰X] image: ROOT:/assets/oldsungodimg/lalaiye/nofire.png life: 16 fadeOut: true attachedToUnit: false fadeInTime: 3 scaleFrom: 2.5 scaleTo: 1 alpha: 0.8 xSpeedRelativeRandom: 0.4 yOffsetRelative: -170 xOffsetRelative: 34 ySpeedRelative: 0.4 dirOffsetRandom: 0 drawUnderUnits:false atmospheric: true [effect_尾焰XL] image: ROOT:/assets/oldsungodimg/lalaiye/nofire-xp.png life: 16 fadeOut: true attachedToUnit: false fadeInTime: 3 scaleFrom: 1 scaleTo: 1 alpha: 0.2 xSpeedRelativeRandom: 0.4 yOffsetRelative: -175 xOffsetRelative: 34 ySpeedRelative: 0.4 dirOffsetRandom: 0 drawUnderUnits:false atmospheric: true drawType:displacement [effect_尾焰LX] image: ROOT:/assets/oldsungodimg/lalaiye/nofire-xp.png life: 16 fadeOut: true attachedToUnit: false fadeInTime: 3 scaleFrom: 1 scaleTo: 1 alpha: 0.2 xSpeedRelativeRandom: 0.4 yOffsetRelative: -175 xOffsetRelative: -34 ySpeedRelative: 0.4 dirOffsetRandom: 0 drawUnderUnits:false atmospheric: true drawType:displacement [attack] turretRotateWithBody: true canAttack: true canAttackFlyingUnits: true canAttackLandUnits: true canAttackUnderwaterUnits: false turretSize: 4 turretTurnSpeed: 1.1 maxAttackRange: 400 shootDelay: 120 isFixedFiring: false #turretRotateWithBody: false [turret_nanoTurret] x: 0 y: 0 idleDir:0 idleDirReversing:0 invisible: true canShoot: false turnSpeed: 3 turnSpeedAcceleration: 0.2 isMainNanoTurret: true [ai] useAsBuilder: true [turret_as] #机炮 x: 27 y: 50 projectile: 机炮 turnSpeed: 2 turnSpeedAcceleration: 1.0 canAttackFlyingUnits: true canAttackLandUnits: true canAttackUnderwaterUnits: false image: ROOT:/assets/oldsungodimg/lalaiye/mainturret.png shoot_sound:ROOT:/sound/shooting.ogg shoot_sound_vol:0.4 shoot_flame:small shoot_light:#FFff925c delay: 0.85s canShoot: true #warmup:20 recoilOffset: -2 recoilOutTime: 3 recoilReturnTime: 10 [turret_ab] #机炮 x: 27 y: 35 copyFrom:as [turret_a3] #机炮 x: 27 y: 20 projectile: 机炮 copyFrom:as [turret_4a] #机炮 x: 27 y: 5 projectile: 机炮 copyFrom:as [turret_5a] #机炮 x: -28.5 y: 0 copyFrom:as [turret_6a] #机炮 x: -28.5 y: -15 copyFrom:as [turret_7a] #机炮 x: -28.5 y: -27 copyFrom:as recoilOffset: -2 recoilOutTime: 3 recoilReturnTime: 10 [projectile_机炮] #shot directDamage: 20 areaDamage:26 areaRadius:75 life: 60 drawType: 2 areaDamageNoFalloff:true frame: 5 speed:10 image:ROOT:/assets/oldsungodimg/lalaiye/turretping.png lightColor: #ffff925c lightSize: 0.3 explodeEffect:CUSTOM:金色爆破 [movement] movementType: AIR moveSpeed: 0.8 moveAccelerationSpeed: 0.01 moveDecelerationSpeed: 0.01 targetHeightDrift: 3 landOnGround: true reverseSpeedPercentage:0.4 maxTurnSpeed: 1.5 turnAcceleration: 0.03 moveSlidingMode :true moveIgnoringBody:true moveSlidingDir: 181 slowDeathFall: true #slowDeathFall: true [arm_1] x:46 y:18 image_end:ROOT:/assets/oldsungodimg/lalaiye/nxj.png #drawOverBody: true spinRate:35 [arm_2] x:-46 y:18 image_end:ROOT:/assets/oldsungodimg/lalaiye/nxj.png #drawOverBody: true spinRate:35 [arm_3] x:46 y:-74 image_end:ROOT:/assets/oldsungodimg/lalaiye/nxj.png #drawOverBody: true spinRate:35 [arm_4] x:-46 y:-74 image_end:ROOT:/assets/oldsungodimg/lalaiye/nxj.png #drawOverBody: true spinRate:35 [effect_trail] alsoEmitEffects:CUSTOM:trail2 createWhenZoomedOut: false priority:low xOffsetRelative:-86 yOffsetRelative:-1 image: ROOT:/assets/oldsungodimg/lalaiye/pit.png life: 40 fadeOut: true attachedToUnit: false fadeInTime:2 scaleFrom: 0.8 scaleTo: 1.2 alpha: 0.7 drawUnderUnits:true ySpeedRelative:-0.4 [effect_trail2] createWhenZoomedOut: false priority:low xOffsetRelative:86 yOffsetRelative:-1 image: ROOT:/assets/oldsungodimg/lalaiye/pit.png life: 40 fadeOut: true attachedToUnit: false fadeInTime:2 scaleFrom: 0.8 scaleTo: 1.2 alpha: 0.7 drawUnderUnits:true ySpeedRelative:-0.4 [effect_trai3] alsoEmitEffects:CUSTOM:trail2 createWhenZoomedOut: false priority:low xOffsetRelative:-86 yOffsetRelative:-80 image: ROOT:/assets/oldsungodimg/lalaiye/pit.png life: 40 fadeOut: true attachedToUnit: false fadeInTime:2 scaleFrom: 0.8 scaleTo: 1.2 alpha: 0.7 drawUnderUnits:true ySpeedRelative:-0.4 [effect_trail4] createWhenZoomedOut: false priority:low xOffsetRelative:86 yOffsetRelative:-80 image: ROOT:/assets/oldsungodimg/lalaiye/pit.png life: 40 fadeOut: true attachedToUnit: false fadeInTime:2 scaleFrom: 0.8 scaleTo: 1.2 alpha: 0.7 drawUnderUnits:true ySpeedRelative:-0.4 [effect_sparks] attachedToUnit: false life: 150 scaleFrom:1 scaleTo: 0.4 physics: true xSpeedRelativeRandom: 1 ySpeedRelativeRandom: 1 hSpeed: 1 image: ROOT:/assets/oldsungodimg/lalaiye/spark.png priority: low [effect_sparks2] attachedToUnit: false life: 150 scaleFrom:1.6 scaleTo: 0.3 physics: true xSpeedRelativeRandom: 2 ySpeedRelativeRandom: 2 hSpeed: 1 image: ROOT:/assets/oldsungodimg/lalaiye/spark.png priority: low #----血条------ [decal_血条] layer:afterBody image:ROOT:/assets/public/hpbar.png imageScaleX:(self.hp/self.maxHp)*77 alwaysStartDirAtZero:true dirOffset:0 color:#00ff00 yOffsetAbsolute:119.5 pivotOffset:0 #Thanks 杰厕灵 in Code xOffsetAbsolute: ((1-(self.hp / self.maxHp)) * (-${core.radius}/3.72)) #isVisible:if self.hp > self.maxHp*0.6 [decal_血条底板] image:ROOT:/assets/oldsungodimg/lalaiye/hp-barmain.png alwaysStartDirAtZero:true dirOffset:0 imageScaleX:1.3 yOffsetAbsolute:120 xOffsetAbsolute:10 pivotOffset:0 order:-1 layer:onTop teamColors:true #如果使用INT 个位需要进行血量满的判定 [decal_xis_个位] @define A:0 layer:onTop order:10.01 yOffsetAbsolute:120 image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png imageScale:0.7 frame: memory.#[${A}] frame_width:6 frame_height:8 #isVisible:if self.hp(full=true) alwayStartDirAtZero:true onlyWhileAlive:true onlyOnNonPreview:true xOffsetAbsolute: 5 [decal_xis_十位] @copyFromSection: decal_xis_个位 @define A:1 image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png isVisible:if memory.#[${A}] != 0 or memory.#[2] != 0 or memory.#[3] != 0 xOffsetAbsolute:0 [decal_xis_百位] @copyFromSection: decal_xis_个位 @define A:2 image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png isVisible:if memory.#[${A}] != 0 or memory.#[3] != 0 xOffsetAbsolute:-5 [decal_xis_千位] @copyFromSection: decal_xis_个位 @define A:3 image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png isVisible:if memory.#[${A}] != 0 xOffsetAbsolute:-10