找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4405|回复: 7

使箱子能开出的不仅是核弹

[复制链接]
发表于 2023-2-16 10:03:37 | 显示全部楼层 |阅读模式
本帖最后由 ruanhuhu 于 2023-2-16 10:07 编辑

;需要phobos
;存在的问题 箱子可能一下开出多个超武来(4%几率) 当然也可能开到重复的超武(20%几率) 但是不会叠加次数;一般只能同时开出2个 几率大概0.04 同时开到三个的话几率应该是0.008
;数学不好 不知道算对没有;把yr的基因突变和心灵支配漏掉了 但是添加方法是一样的


;箱子提升规则
[Powerups]
Armor=0,ARMOR,yes,1.5              ; armor of nearby objects increased (armor multiplier);gs Think of max strength being multiplied by this (in reality, damage is divided by this since you can't change the max in Type)
Firepower=0,FIREPOWR,yes,2.0       ; firepower of nearby objects increased (firepower multiplier)
HealBase=0,HEALALL,yes              ; all buildings to full strength
Money=0,MONEY2,yes,2000             ; a chunk o' cash (maximum cash)
Reveal=0,SHROUDX,yes                 ; reveal entire radar map
Speed=0,SPEED,yes,1.2              ; speed of nearby objects increased (speed multiplier)
Veteran=0,VETERAN,yes,1             ; veteran upgrade (levels to upgrade)
Unit=0,<none>,no,100                  ; vehicle


Invulnerability=0,ARMOR,yes,1.0     ; invulnerability (duration in minutes)
IonStorm=0,<none>,yes               ; initiate ion storm
Gas=0,<none>,yes,100                ; tiberium gas (damage for each gas cloud)
Tiberium=0,<none>,no               ; tiberium patch
Pod=0,<none>,no                    ; drop pod special
Cloak=0,CLOAK,yes                   ; enable cloaking on nearby objects
Darkness=0,SHROUDX,yes              ; cloak entire radar map
Explosion=0,<none>,yes,500          ; high explosive baddie (damage per explosion)
ICBM=100,CHEMISLE,yes                 ; nuke missile one time shot
Napalm=0,<none>,no,600             ; fire explosion baddie (damage)
Squad=0,<none>,no                 ; squad of random infantry


[CrateRules]
CrateMaximum=255
CrateMinimum=200
CrateRadius=3.0
CrateRegen=3

;以上为测试用 将开出核弹箱子的几率改为100% 并且提高箱子数量

[WeaponTypes]
+=NukePayload2

[NukePayload2]
Damage=0
Range=30
Projectile=InvisibleLow
Speed=10
RadLevel=0
Warhead=DummyWarhead
Report=

[SuperWeaponTypes]
;0=ROLLICBM ;此处必须插入到rulesmd中第一条 分割出的rules也不行
解释:箱子中获取的核弹是按注册顺序 而不是注册ID的第一个拥有Message.FirerColor=yes以及Action=Nuke的超武

[ROLLICBM]
Message.FirerColor=yes
UIName=Name:Nuke
IsPowered=false
RechargeTime=0.1
Type=MultiMissile
Action=Nuke
SW.Warhead=DummyWarhead ;偷懒
Nuke.Payload=NukePayload2 ;新建一个无效的武器 要注册
ShowTimer=yes
AIDefendAgainst=no
Nuke.SiloLaunch=yes
Light.Enabled=no
CameoPriority=99
Nuke.TakeOff=None
SW.AITargeting=LightningRandom
SW.AutoFire=yes
ShowTimer=no
;以下超武及建筑应该新建 复制旧的修改参数 以不影响原来的建筑/超武
;如果内置到单独的作战模式或者地图的话 可以不新建 而是禁用旧的超武建筑(偷懒)
LimboDelivery.Types=NAIRON,NAMISL,GACSPH,GAWEAT,CAAIRP             ; List of BuildingTypes
LimboDelivery.IDs=15,16,17,18,19            ; List of numeric IDs. -1 cannot be used.
LimboDelivery.RollChances=.2,.2,.2,.2,.2     ; List of percentages.
LimboDelivery.RandomWeights0=1,0,0,0,0    ; List of integers.
LimboDelivery.RandomWeights1=0,1,0,0,0    ; List of integers.
LimboDelivery.RandomWeights2=0,0,1,0,0    ; List of integers.
LimboDelivery.RandomWeights3=0,0,0,1,0    ; List of integers.
LimboDelivery.RandomWeights4=0,0,0,0,1    ; List of integers.
;这个权重我没搞明白怎么写 勉强是生效了 但是可能一下子开出多个超武来

[NAIRON]
Power=1 ;不是必须语句 测试用
KeepAlive=no
AIBuildThis=no

[NAMISL]
Power=1
KeepAlive=no
AIBuildThis=no

[GACSPH]
Power=1
KeepAlive=no
AIBuildThis=no

[GAWEAT]
Power=1
KeepAlive=no
AIBuildThis=no

[CAAIRP]
Power=1
KeepAlive=no
AIBuildThis=no

[ParaDropSpecial]
DisableableFromShell=no
IsPowered=false ;遵循默认的箱子超武的设定
SW.VirtualCharge=yes ;遵循默认的箱子超武的设定
RechargeTime=0.01 ;遵循默认的箱子超武的设定
SW.InitialReady=yes ;遵循默认的箱子超武的设定
;以下为使用一次后移除 遵循默认的箱子超武的设定
LimboKill.Affects=self
LimboKill.IDs=19  ;要对应好投放的id

[LightningStormSpecial]
DisableableFromShell=no
IsPowered=false
SW.VirtualCharge=yes
RechargeTime=0.01
SW.InitialReady=yes
LimboKill.Affects=self          ; Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)
LimboKill.IDs=18                  ; List of numeric IDs.

[ChronoSphereSpecial]  ;注意:超时空应在释放第二段后移除 而不是第一段
DisableableFromShell=no
IsPowered=false
SW.VirtualCharge=yes
RechargeTime=0.01
SW.InitialReady=yes

[ChronoWarpSpecial];超时空二
DisableableFromShell=no
IsPowered=false
SW.VirtualCharge=yes
;SW.InitialReady=yes
LimboKill.Affects=self          ; Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)
LimboKill.IDs=17                  ; List of numeric IDs.

[MultiSpecial]
DisableableFromShell=no
IsPowered=false
SW.VirtualCharge=yes
RechargeTime=0.01
SW.InitialReady=yes
Nuke.SiloLaunch=no ;必须语句 虚拟投放的核弹没有实际存在的发射井
LimboKill.Affects=self ;Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)
LimboKill.IDs=16  
;为了防止别的问题 核弹参数重新指定一下 以下为游戏默认值
;也许是不需要的
;需要指定的包括原来的核弹以及新建的核弹
;注:地图触发的核弹应该无法正常工作
Type=MultiMissile
SW.Damage=600             ; List of numeric IDs.
SW.Warhead=NUKE
SW.ActivationSound=NukeSiren
Light.Enabled=yes
Light.Ambient=200
Light.Red=175
Light.Green=150
Light.Blue=125
Nuke.Payload=NukePayload

[IronCurtainSpecial]
DisableableFromShell=no
IsPowered=false
SW.VirtualCharge=yes
RechargeTime=0.01
SW.InitialReady=yes
LimboKill.Affects=self          ; Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)
LimboKill.IDs=15                  ; List of numeric IDs.




发表于 2023-2-16 10:52:47 | 显示全部楼层
已经搞清楚了?但看你实际写出代码后,发现这种办法也是很麻烦,但应该没有非常简单的办法了。
回复

使用道具 举报

 楼主| 发表于 2023-2-16 12:49:40 来自手机 | 显示全部楼层
jgaxmey 发表于 2023-2-16 10:52
已经搞清楚了?但看你实际写出代码后,发现这种办法也是很麻烦,但应该没有非常简单的办法了。 ...

或者箱子开不可见的坦克 坦克挂建筑替身 关联超武 但是还是需要写超武使用cd和使用一次后移除 而且几率是算在车辆里的 相当于模拟了一个开超武 还是不太好用 等大佬们开发平台吧 或许以后会有新功能
回复

使用道具 举报

发表于 2023-2-16 13:31:42 | 显示全部楼层
一次移除?酒馆里都做过了,变成个1x1无形可踩建筑,用超武释放动画把自己炸掉就完事了
回复

使用道具 举报

 楼主| 发表于 2023-2-16 13:45:32 来自手机 | 显示全部楼层
kenosis 发表于 2023-2-16 13:31
一次移除?酒馆里都做过了,变成个1x1无形可踩建筑,用超武释放动画把自己炸掉就完事了 ...

大佬 用释放动画自杀也是个好主意 我用的是虚拟投放 然后虚拟移除 是没有真正存在的
回复

使用道具 举报

发表于 2023-2-16 18:10:21 | 显示全部楼层
那样也太麻烦了,一大堆超武
回复

使用道具 举报

 楼主| 发表于 2023-2-16 18:17:28 来自手机 | 显示全部楼层
kenosis 发表于 2023-2-16 18:10
那样也太麻烦了,一大堆超武

确实是 我自己也发现了
回复

使用道具 举报

发表于 2023-2-17 20:07:26 | 显示全部楼层
很長(
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|管理员邮箱|红警DIY论坛 |网站地图

GMT+8, 2026-7-19 01:37 , Processed in 0.068131 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表