红警DIY论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 478|回复: 7

【求助】ARES2.0给新阵营加超级武器结果出了很多问题

[复制链接]
发表于 2018-12-28 01:23:03 | 显示全部楼层 |阅读模式
1.新阵营没法造那个超级武器的建筑,遭遇战开了超级武器也没用
2.把超武给核弹了之后,超武就绪了点完就会重置,没法正常释放
(顺便一提预计的效果是给自己或友军加隐形)
代码如下
***
鼠标注册
[MouseCursors]
WitherInvisibleShielding=404,9,4,63,5,Center,Middle
***
建筑
[WSWP]
Name=Wither Super Weapon
UIName=Name:WSWP
Image=GAROBO
BuildCat=Combat
Prerequisite=WCNST,WTECH
TechLevel=1
Strength=3000
Powered=true
Adjacent=2
Armor=concrete
Sight=5
Owner=Wither
AIBasePlanningSide=0
Cost=7500
Points=30
Power=-200
Crewed=yes
Capturable=false
RevealToAll=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
Nominal=yes
ThreatPosed=1
AIBuildThis=yes
Spyable=yes
;ChargedAnimTime=1
ProtectWithWall=yes
BuildLimit=1
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS3SM,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM
MaxDebris=14
MinDebris=7
SuperWeapon=InvisibleShielding
DamageSelf=yes
***
超武
[InvisibleShielding]
UIName=Name:InvisibleShielding
Name=Invisible Shielding
IsPowered=true
RechargeVoice=00-I156
ChargingVoice=
ImpatientVoice=
SuspendVoice=
SW.Range=6
SW.CreateRadarEvent=Yes
SW.AffectsHouse=team
SW.AffectsTarget==infantry,units,buildings
SW.ShowCameo=Yes
SW.RequiresTarget=enum land,water,empty,infantry,units,buildings
SW.AutoFire=no
SW.ManualFire=Yes
SW.RequiresHouse=team
SW.AITargeting=IronCurtain
SW.RangeMaximum=-1
SW.RangeMinimum=-1
SW.ChargeToDrainRatio=3
;SW.Animation=
SW.Sound=00-I156
SW.Damage=1
SW.Warhead=InvisibleShieldingWH
Cursor=AttackMove
NoCursor=NoCanDo
RechargeTime=3
Type=WitherInvisibleShielding
Action=WitherInvisibleShielding
SidebarImage=IRCRICON
ShowTimer=yes
DisableableFromShell=yes
;Range=1.4
LineMultiplier=3
***
超武弹头
[InvisibleShieldingWH]
Verses=100%,100%,100%,100%,100%,100%,100%,100%,100%,100%,100%
CellSpread=8
Wood=yes
Wall=yes
AttachEffect.SpeedMultiplier=1.25
AttachEffect.ROFMultiplier=1.25
AttachEffect.Cumulative=no
;AttachEffect.Duration=30
AttachEffect.Cloakable=Yes
(建筑和超武都在相应的列表里注册过)
发表于 2018-12-28 01:52:53 | 显示全部楼层
直接用
Cursor.Frame=191
Cursor.Interval=5
Cursor.Count=1
NoCursor.Frame=248
NoCursor.Count=1
NoCursor.Interval=5
Cursor.MiniFrame=-1
NoCursor.MiniFrame=-1
NoCursor.HotSpot=Center,Top
试试看,写进超武里面
发表于 2018-12-28 01:52:54 | 显示全部楼层
本帖最后由 双杀步枪 于 2018-12-28 01:55 编辑

WitherInvisibleShielding是什么超武,没见过

要隐形单位的话,丢个弹头就好了啊GenericWarhead
弹头需要注册
发表于 2018-12-28 02:18:00 | 显示全部楼层
本帖最后由 紫色放逐 于 2018-12-28 02:23 编辑

这写的什么鬼代码 错误百出一塌糊涂  超武Type自己乱编 Cursor写错根本没用上自己新增的鼠标 超武影响目标代码后面居然连着两个等号 其他多余的代码一大堆 AE持续时间居然注释掉了那你还上个啥AE?
太丢人了 建议回去重学基础 重学教程 重读ares说明书。
发表于 2018-12-28 06:21:54 | 显示全部楼层
窦竹居然还一行一行看了这乱七八糟的代码。
发表于 2018-12-28 16:10:31 | 显示全部楼层
[SuperWeaponTypes]
超武=超级隐身术

[Warheads]
隐身=超级隐身术弹头

[房子]
DamageSelf=yes
SuperWeapons=超级隐身术

[超级隐身术]
UIName=NOSTR:Single Hell
Name=超级隐身术
IsPowered=true ;是否需要供电
RechargeVoice=00-I154
ChargingVoice=
ImpatientVoice=
SuspendVoice=
RechargeTime=.15 ;准备时间,单位分钟
Type=GenericWarhead ;超武类型
Action=Nuke;超武鼠标指针
SidebarImage=NukeIcon;工具栏里的图标
ShowTimer=yes
DisableableFromShell=yes ;勾选超级武器
AIDefendAgainst=yes ;AI will use AISuperDefense system to decide to block this
Range=4
LineMultiplier=2

SW.Animation=NUKEANIM
SW.Damage=-99999
SW.Warhead=超级隐身术弹头


[超级隐身术弹头]
Verses=100%,100%,100%,100%,100%,100%,100%,100%,100%,100%,100%
Rocker=no
CellSpread=4
ProneDamage=100%
InfDeath=2
AffectsEnemies=no ;不伤害敌人
AllowZeroDamage=yes
DamageAirThreshold=-1 ;立体弹头
PreventScatter=yes ;防止受影响的目标散开
AttachEffect.Cloakable=yes
AttachEffect.Duration=-1

 楼主| 发表于 2018-12-28 16:48:06 | 显示全部楼层
kenosis 发表于 2018-12-28 01:52
直接用
Cursor.Frame=191
Cursor.Interval=5

谢谢各位大佬,问题解决了
发表于 2018-12-31 13:12:03 | 显示全部楼层
窦竹居然还一行一行看了这乱七八糟的代码。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|管理员邮箱|红警DIY官方论坛

GMT+8, 2019-6-26 01:47 , Processed in 0.079858 second(s), 14 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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