第二部分 extenders
extenders部分包含了单位的其他信息。该部分信息只能通过内部编号进行查找
下面继续以刚才的精灵英雄为例
{extenders 0x688//内部编号
{"ideath"
{is_alive 1}//是否死亡(看样子应该可以将刚死的英雄复活,未测试)
{phase 1}
{phase_timer -1}
}
{"unit"
{owner_building 0xd1f}//所属建筑(本例中即所隶属的公会)
{in_building 0}//是否在建筑物中
{can_interact 1}//是否可与玩家互动
{taxcashcard//所持税金
{cangetfromcard}
{satietybarrier 250}
{classes
"hero_elf"
}
{treasurekeeper
"money" 332.5}
}
{personalcashcard//所持个人财产
{cangetfromcard}
{satietybarrier 250}
{classes
"hero_elf"
}
{treasurekeeper
"money" 155.072 "id" 5}
}
}
{"actionmanager"
{actions//可用的攻击方式
{action
{name "elf_basic_attack"}
}
{action
{name "elf_roots"}
}
{action
{name "elf_roots_friendly_target"}
}
{action
{name "elf_imp_attack"}
}
{action
{name "elf_buff"}
}
{action
{name "elf_magic_arrow"}
}
}
{dt_waiting 0.074}
{target 0x688}
}
{"attacker"//战斗相关,待测
{status 0}
}
{"behaviour"
{is_start 1}
{is_force 0}
{is_attack_mode 0}
{is_safety_mode 0}
{is_lock_safety_mode 0}
{safety_timer
0}
{updatetimer
0.075}
{current_task//当前行动
{"GoSafetyBuildingTask"
{base
{active}
{status "working"}
}
{usebuildingtask
{base
{active}
{status "working"}
}
{walktask
{base
{active}
{status "working"}
}
{target -33.4833 -31.1262}//目标坐标
{distance -1}
{is_stopping 1}
{path_handle 0}
}
{buildingid 0xd1f}//目标内部编号
}
{is_order 0}
{gosafetybuildingmovement
{base
{visibility 1}
{changevisible 1}
}
{is_die 0}
{is_free 0}
{is_fear 0}
{is_order 0}
{is_complit 1}
}
}
}
{current_strategy "everyday"}
{party_id -1}
{party_rank -1}
}
{"m2inventory"//道具
{effectorcash//来自道具的属性加成
{dps "" 32 ""}
{defence 10 40 70}
}
{allitems
{"HealthPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 50}//生命药剂疗效,法力药剂同理,待测
}
{"HealthPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 50}
}
{"HealthPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 50}
}
{"HealthPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 50}
}
{"HealthPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 50}
}
{"HealthPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 50}
}
{"HealthPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 50}
}
{"HealthPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 50}
}
{"HealthPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 50}
}
{"HealthPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 50}
}
{"ManaPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 25}
}
{"ManaPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 25}
}
{"ManaPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 25}
}
{"ManaPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 25}
}
{"ManaPotion"
{bottle_base {inventory_base {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
}
{effect 25}
}
{"Armour"
{type "hero_elf" 2}//护甲类型及等级
{inventoryitem {owner 0x688}
{active 1}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
}
{"Enchant"
{base_inventory {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
{name "enchant_weapon_attack"}//法师塔武器附魔
{perk "perk_enchant_weapon_attack"}
{type "enchant_static"}
}
{"Weapon"
{w_base
{owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{weapon_name "hero_elf_bow_03"}//武器类型及等级
{enchant "perk_enchant_weapon_poison"}//是否已涂毒
}
{"Artefact"
{base_inventory {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
{name "artefact_of_protection"}//守护之戒
{perk "artefact_of_protection"}
}
{"Enchant"
{base_inventory {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
{name "enchant_weapon_poison"}//武器涂毒,估计为上面“是否已涂毒”参数的前提条件
{perk "perk_enchant_weapon_poison"}
{type "enchant_attack"}
}
{"Artefact"
{base_inventory {owner 0x688}
{active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname ""}
}
{cost}
{name "artefact_of_regeneration"}//恢复之叶
{perk "artefact_of_regeneration"}
}
}
}
}
再举一个extenders部分的建筑条目的例子
{extenders 0xd1f//对应entity "guild_elf" 0xd1f
{"entity_seller"//拥有的服务
{orderindex 22}
{productedcommodities "elf_buff" 4}
{productedcommodities "elf_imp_attack" 4}
{productedcommodities "elf_magic_arrow" 4}
{productedcommodities "magic_roots" 1}
{productedcommodities "rest_elf" 9}
}
{"home"
{visitor 0x688}
}
{"building"
{brownie
{mood {Value 100 UseMin 1 Min 0 UseMax 0 Max 100}
}
{factor 1}
}
{force_points
{level 1}
{bones 9}
{is_init 1}
{logic_point
{counter 0}
}
{logic_point
{counter 0}
}
{logic_point
{counter 0}
}
{logic_point
{counter 0}
}
{logic_point
{counter 0}
}
{logic_point
{counter 0}
}
{logic_point
{counter 0}
}
{logic_point
{counter 0}
}
{logic_point
{counter 0}
}
}
{lastupdatedhealthpercent 100}
{onepiecebuildhealthpercentprice 1e-007}
{stampset 1 0xd20}
{stamp "bg_guild_elf"}
{cashmachine
{base}
{accounts {tax "money" 0}
{personal "money" 0}
}
}
{guildentity 0x688}//下属成员
{guildentity 0x689}
{guildentity 0x68a}
{in_build 0}
{can_attack 1}
}
{"m2inventory"
{effectorcash
{dps "" "" ""}
{defence "" "" ""}
}
{allitems
}
}
{"laboratory"
{inventedinvention "elf_imp_attack"}//已研究的商品
{inventedinvention "elf_buff"}
{inventedinvention "elf_magic_arrow"}
{inventedinvention "magic_roots"}
}
{"orderflag"//是否为攻击/防御任务目标,也许下水道可以用这个来拆?
{attackorders
}
{protectorders
}
}
}