骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买CDKEY 小黑盒加速器
查看: 1607|回复: 6

[求助] 1如何修改城镇守军的工资倍率?感觉工资减半太...

[复制链接]

1

主题

5

回帖

2

积分

平民

Rank: 1

UID
3360164
第纳尔
23
精华
0
互助
0
荣誉
0
贡献
0
魅力
0
注册时间
2022-5-18
鲜花(0) 鸡蛋(0)
发表于 2022-5-20 14:25:57 | 显示全部楼层 |阅读模式
正在尝试修改一个mod,问几个问题!1如何修改城镇守军的工资倍率?感觉工资减半太低了
2ai领主的城镇的守军招募机制是在scripts里的吗,如果是那是那一段?能否修改ai城镇守军的补充速度并设置人数上限?

12

主题

1488

回帖

600

积分

雅尔[传媒小组]

吟游诗人

Rank: 4Rank: 4

UID
3200940
第纳尔
3955
精华
0
互助
18
荣誉
6
贡献
0
魅力
310
注册时间
2020-9-17

骑砍中文站APP会员勋章原版正版勋章战团正版勋章火与剑正版勋章拿破仑正版勋章维京征服正版勋章霸主正版勋章剧本设计大奖赛骑士美德之英勇勋章[杰出会员活跃勋章]

鲜花(47) 鸡蛋(0)
发表于 2022-5-20 19:41:02 来自手机 | 显示全部楼层
可以去参考一下内置修改器,来自: Android客户端

25

主题

183

回帖

187

积分

见习骑士

Rank: 3

UID
3225805
第纳尔
1442
精华
0
互助
25
荣誉
0
贡献
0
魅力
196
注册时间
2021-3-14
鲜花(46) 鸡蛋(0)
发表于 2022-5-21 10:28:17 | 显示全部楼层
本帖最后由 快乐风猫 于 2022-5-21 10:29 编辑

module_simple_triggers里搜   #Checking if the troops are resting at a half payment point和#Pay day.

评分

参与人数 1互助 +1 收起 理由
Aomine Daiki + 1 乐于助人!

查看全部评分

1

主题

5

回帖

2

积分

平民

Rank: 1

UID
3360164
第纳尔
23
精华
0
互助
0
荣誉
0
贡献
0
魅力
0
注册时间
2022-5-18
鲜花(0) 鸡蛋(0)
 楼主| 发表于 2022-5-23 09:29:20 | 显示全部楼层
快乐风猫 发表于 2022-5-21 10:28
module_simple_triggers里搜   #Checking if the troops are resting at a half payment point和#Pay day.

好的,谢谢!

1

主题

5

回帖

2

积分

平民

Rank: 1

UID
3360164
第纳尔
23
精华
0
互助
0
荣誉
0
贡献
0
魅力
0
注册时间
2022-5-18
鲜花(0) 鸡蛋(0)
 楼主| 发表于 2022-5-24 19:51:49 | 显示全部楼层
快乐风猫 发表于 2022-5-21 10:28
module_simple_triggers里搜   #Checking if the troops are resting at a half payment point和#Pay day.

是这一段吗
[(store_current_day, ":cur_day"),
    (try_begin),
      (neq, ":cur_day", "$g_last_half_payment_check_day"),
      (assign, "$g_last_half_payment_check_day", ":cur_day"),
      (try_begin),
        (eq, "$g_half_payment_checkpoint", 1),
        (val_add, "$g_cur_week_half_daily_wage_payments", 1), #half payment for yesterday
      (try_end),
      (assign, "$g_half_payment_checkpoint", 1),
    (try_end),
    (assign, ":resting_at_manor_or_walled_center", 0),
    (try_begin),
      (neg|map_free),
      (ge, "$g_last_rest_center", 0),
      (this_or_next|party_slot_eq, "$g_last_rest_center", slot_center_has_manor, 1),
      (is_between, "$g_last_rest_center", walled_centers_begin, walled_centers_end),
      (assign, ":resting_at_manor_or_walled_center", 1),
    (try_end),
    (eq, ":resting_at_manor_or_walled_center", 0),
    (assign, "$g_half_payment_checkpoint", 0),
    ]),
我把(assign, "$g_half_payment_checkpoint", 1),中的1改成了0,但是没有用,游戏内的驻军工资还是0.5倍,怎么改才能取消驻军工资减免

24

主题

338

回帖

149

积分

子爵[版主]

Rank: 7Rank: 7Rank: 7

UID
75439
第纳尔
6902
精华
0
互助
6
荣誉
1
贡献
190
魅力
32
注册时间
2008-5-3
鲜花(7) 鸡蛋(0)
发表于 2022-5-25 07:58:16 | 显示全部楼层
12514528 发表于 2022-5-24 19:51
是这一段吗
[(store_current_day, ":cur_day"),
    (try_begin),

找这个脚本,script_calculate_player_faction_wage,然后给多少 工资你随意

评分

参与人数 1互助 +1 收起 理由
Aomine Daiki + 1 乐于助人!

查看全部评分

1

主题

5

回帖

2

积分

平民

Rank: 1

UID
3360164
第纳尔
23
精华
0
互助
0
荣誉
0
贡献
0
魅力
0
注册时间
2022-5-18
鲜花(0) 鸡蛋(0)
 楼主| 发表于 2022-5-25 10:16:05 | 显示全部楼层
easewater 发表于 2022-5-25 07:58
找这个脚本,script_calculate_player_faction_wage,然后给多少 工资你随意

# script_calculate_player_faction_wage
  # Input: arg1 = party_no
  # Output: reg0 = weekly wage
  ("calculate_player_faction_wage",
    [(assign, ":nongarrison_wages", 0),
     (assign, ":garrison_wages", 0),
     (try_for_parties, ":party_no"),
       (assign, ":garrison_troop", 0),
       (try_begin),
         (this_or_next|party_slot_eq, ":party_no", slot_party_type, spt_town),
         (party_slot_eq, ":party_no", slot_party_type, spt_castle),
         (party_slot_eq, ":party_no", slot_town_lord, "trp_player"),
         (assign, ":garrison_troop", 1),
       (try_end),
       (this_or_next|eq, ":party_no", "p_main_party"),
       (eq, ":garrison_troop", 1),
       (party_get_num_companion_stacks, ":num_stacks",":party_no"),
       (try_for_range, ":i_stack", 0, ":num_stacks"),
         (party_stack_get_troop_id, ":stack_troop",":party_no",":i_stack"),
         (party_stack_get_size, ":stack_size",":party_no",":i_stack"),
         (call_script, "script_game_get_troop_wage", ":stack_troop", ":party_no"),
         (assign, ":cur_wage", reg0),
         (val_mul, ":cur_wage", ":stack_size"),
         (try_begin),
           (eq, ":garrison_troop", 1),
           (val_add, ":garrison_wages", ":cur_wage"),
         (else_try),
           (val_add, ":nongarrison_wages", ":cur_wage"),
         (try_end),
       (try_end),
     (try_end),
     (val_div, ":garrison_wages", 2),#Half payment for garrisons
     (store_sub, ":total_payment", 14, "$g_cur_week_half_daily_wage_payments"), #between 0 and 7
     (val_mul, ":nongarrison_wages", ":total_payment"),
     (val_div, ":nongarrison_wages", 14),
     (store_add, reg0, ":nongarrison_wages", ":garrison_wages"),
    ]),
这一段的 (val_div, ":garrison_wages", 2)中的2改成了1,但没用
您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2024-4-19 14:57 , Processed in 0.120742 second(s), 31 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表