|
楼主 |
发表于 2011-7-18 11:19:51
|
显示全部楼层
诡异了
CatalogFieldValueCount(c_gameCatalogAbil, "BarracksTrain", "InfoArray", c_playerAny) 会得到30
如果用 CatalogFieldValueGet (
        c_gameCatalogAbil,
        "BarracksTrain",
        "InfoArray[Train1].Unit",
        c_playerAny
    )
会出错误
更新 数组index用数字也不行
00:00:02.69 Trigger Error in 'AdvanceQueueAutoBalance': Catalog field 'InfoArray[0].Unit' could not be read (Core: a required object could not be found)
但是输出count却表示InfoArray确实有30个——这说明entry是没错的,xml里看到确实有
-<CAbilTrain id="BarracksTrain">
   <EditorCategories value="Race:Terran,AbilityorEffectType:Structures"/>
   -<InfoArray index="Train1" Time="25">
   <Button State="Restricted" DefaultButtonFace="Marine"/>
     <Unit value="Marine"/>
</InfoArray>
... |
|