- 好友
 - 1
  
- 在线时间
 - 0 小时
  
- 最后登录
 - 2025-11-3
  
 
 
 
 
扈从 
   
 
- UID
 - 3095951
  
- 第纳尔
 - 851 
  
- 精华
 - 0
  
- 互助
 - 0 
  
- 荣誉
 - 0 
  
- 贡献
 - 0 
  
- 魅力
 - 0 
  
- 注册时间
 - 2019-8-15
  
 
  鲜花( 0)   鸡蛋( 0)  
 | 
 
我们要注意的是找哪国的兵 
判断语句在这里: 
       (party_get_slot, ":center_culture", ":center_no", slot_center_culture), 
这里读取了村庄文化。当村庄阵营发生改变时。文化并没有发生改变。这里我们直接读取村庄阵营。 
把上句改为: 
      (store_faction_of_party, ":center_culture", ":center_no"), 
这里:center_culture是由(party_get_slot, ":center_culture", ":center_no", slot_center_culture),定义的变量。这句可以翻译为把 ":center_no"的slot_center_culture(属性名,可以理解为center的文化属性。center是指城镇、城堡,或村庄)读取到:center_culture里。 
在后面       (faction_get_slot, ":volunteer_troop", ":center_culture", slot_faction_tier_1_troop),里要将:center_culture的兵种模版slot_faction_tier_1_troop赋给村庄雇佣兵。 
所以如果要修改变量名:center_culture为:center_faction的话要两处都修改 
即 
      (store_faction_of_party, ":center_faction", ":center_no"), 
和 
      (faction_get_slot, ":volunteer_troop", ":center_faction", slot_faction_tier_1_troop), 
 
这样一改,当村庄刷新雇佣兵时就会刷新出村庄当前阵营的兵种 
 
 
我照他说的改了,但编译的时候出问题了, 报错ERROR: Usage of unassigned local variable: :center_culture 
 |   
 
 
 
 |