发布时间:2012-10-27 14:40 来源:互联网 作者:佚名
{concrete_bottle {bottle_base {inventory_base {active 0}
{effectorparams
{dps "" "" ""}
{defence "" "" ""}
}
{editorname "manapotion_1"}
}
{cost "money" 5 ;售价
"wood" 0
}
}
{effect 25} ;效力
}
}
2. resourcesettradingshops.set
定义了建筑与单位的基本属性
以市场为例
{"market"
{enabled}
{Cost
{money}
{"count money" 500} ;造价
}
{Entity market}
{"Max count" 1} ;建造数量上限
{"Max upgrade" 3} ;可升级次数
{Prerequesities ;建造的条件
{gold 0}
{"heroes count" 0}
}
{"Upgrades prerequsity" ;升级的条件
{"1"
{buildings castle_2}
}
{"2"
{buildings castle_3}
}
}
}
另以战士为例
{"guild_warrior"
{entity_id guild_warrior}
{units
{"hero_warrior"
{enabled}
{Cost
{money}
{"count money" 200} ;训练所需费用
}
{Entity hero_warrior}
{"Max count" 3} ;每个工会能训练的人数上限
{"Production time" 10} ;训练所需时间
}
}