|
|
楼主 |
发表于 2023-11-23 14:27:16
|
显示全部楼层
本帖最后由 mrclones 于 2023-11-23 14:29 编辑
搞不懂了,贴代码麻烦老大看下!需求是:10个单位列表里面随机选1个
- [T_SuperUnit];投放超武
- Type=UnitDelivery
- Action=PsychicReveal
- Cursor=Paradrop
- UIName=Name:T_SuperUnit
- IsPowered=false
- ShowTimer=no
- Range=1.4
- Money.Amount=0
- RechargeTime=0.1
- SidebarPCX=T_SuperUnit.pcx
- Deliver.Types=T_SuperUnitBox
- SW.InitialReady=yes
- SW.Shots=-1
- SW.AITargeting=None
- SW.AffectsTarget=land
- DisableableFromShell=no
- FlashsidebarTabFrames=1
- SW.Designators=T_EXCLAB
- SW.AnimationVisibility=all
- SW.Animation=CHRONOTG
- Sw.Sound=ChronosphereMove
- [T_SuperUnitBox] ;载具
- Image=TRUCKB
- UIName=Name:T_SuperUnitBox
- Name=Truck (loaded)
- Category=AFV
- Primary=none
- Secondary=none
- Strength=100
- Armor=light
- Turret=no
- TechLevel=-1
- Sight=5
- Speed=4
- Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
- AllowedToStartInMultiplayer=no
- Cost=0
- Soylent=100
- Points=40
- ROT=5
- ThreatPosed=0
- Size=6
- Insignificant=yes
- Trainable=no
- DestroySelf.Delay=0
- DestroySelf.Peaceful=no
- GiftBox.Types=E2,E1,TERROR,DESO,INIT,VIRUS,SREF,MGTK,BFRT,TNKD
- GiftBox.Nums=1
- GiftBox.Chances=1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0
- GiftBox.Delay=0
- GiftBox.RandomType=yes
- GiftBox.RandomWeights=50,50,50,50,50,50,50,50,50,50
- GiftBox.EliteTypes=E2,E1,TERROR,DESO,INIT,VIRUS,SREF,MGTK,BFRT,TNKD
- GiftBox.EliteNums=1
- GiftBox.EliteChances=1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0
- GiftBox.EliteRandomType=yes ;随机从列表中选取类型,并释放等于Nums列表中数值总和的礼物数量
- GiftBox.EliteRandomWeights=50,50,50,50,50,50,50,50,50,50;
- GiftBox.Remove=yes
- GiftBox.Explodes=no
- GiftBox.RandomRange=1
- GiftBox.RandomToEmptyCell=no
- GiftBox.OpenWhenDestoryed=yes
复制代码
然后下面是我分别投放6次的试验结果
测试1:
测试2:
多次测试都是一样的单位!不知道是我哪里写错了
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|