收起左侧

[求助] 关于稻田切换采集资源类型的问题

[复制链接]
ibopamesa发表于 2019-7-11 12:14:07
我想给稻田和种植园增添木材可采集,于是安照稻田的格式添加了
<CarryCapacity resourcetype ='Wood'>100.0000</CarryCapacity>
<InitialResource resourcetype ='Wood'>0.0000</InitialResource>
<Command page ='9' column ='2'>RicePaddyWood</Command>
<ProtoAction>
<Name>ModifyGatherWood</Name>
<Rate type ='Wood'>1.000000</Rate>
</ProtoAction>
tactics文件也添加了
<action>
<name stringid="43296">ModifyGatherWood</name>
<type>ModifyGather</type>
<active>1</active>
<persistent>1</persistent>
</action>
<tactic>
PaddyWood
<action>ModifyGatherWood</action>
<transition>
<tactic>PaddyFood</tactic>
<length>2</length>
<exit>1</exit>
</transition>
<transition>
<tactic>PaddyCoin</tactic>
<length>2</length>
<exit>1</exit>
</transition>
</tactic>

但进去游戏之后并没有变化,是我漏了那个文件没改吗?
こはね发表于 2019-7-11 13:42:43


此处作废
こはね发表于 2019-7-11 13:46:29


protocomands.xml的按钮无法自定义,你这里就是一个自定义按钮RicePaddyWood

按钮要在此处定义,如下图
000324b3o4f6y5f4c144f1.jpg
ibopamesa发表于 2019-7-11 15:31:05

明白了,在protounitcommands.xml找一个按钮修改,再到tactics里定义
静中先生发表于 2021-8-20 23:11:46
<?xml version="1.0" encoding="utf-8"?>

<tactics>
<action>
<name stringid="43294">ModifyGatherCoin</name>
<type>ModifyGather</type>
<active>1</active>
<persistent>1</persistent>
</action>
<action>
<name stringid="43295">ModifyGatherFood</name>
<type>ModifyGather</type>
<active>1</active>
<persistent>1</persistent>
</action>
<action>
<name stringid="43296">ModifyGatherWood</name>
<type>ModifyGather</type>
<active>1</active>
<persistent>1</persistent>
</action>
<tactic>
PaddyFood
<action>ModifyGatherFood</action>
<transition>
<tactic>PaddyCoin</tactic>
<length>2</length>
<exit>1</exit>
</transition>
</tactic>
<tactic>
PaddyCoin
<action>ModifyGatherCoin</action>
<transition>
<tactic>PaddyFood</tactic>
<length>2</length>
<exit>1</exit>
</transition>
</tactic>
<tactic>
PaddyWood
<name>RicePaddyWood</name>
<icon>art\ui\command\tactic_rice_paddy_food_off</icon>
<activeicon>art\ui\command\tactic_rice_paddy_wood_on</activeicon>
<disabledicon>art\ui\command\tactic_rice_paddy_wood_off</disabledicon>
<rollovertextid>66055</rollovertextid>
<activerollovertextid>66056</activerollovertextid>
<command>unitSetTactic("PaddyWood")</command>
<tactic>PaddyFood</tactic>
<length>2</length>
<exit>1</exit>
</tactic>
</tactics>
是这个意思吗
こはね发表于 2021-8-21 21:50:04
具体修改方案请看https://www.aoebbs.net/thread-885-1-1.html第5楼
跳转到