- 好友
- 0
- 在线时间
- 69 小时
- 最后登录
- 2024-2-7
扈从
- UID
- 2998392
- 第纳尔
- 913
- 精华
- 0
- 互助
- 4
- 荣誉
- 1
- 贡献
- 0
- 魅力
- 1
- 注册时间
- 2018-4-28
鲜花( 71) 鸡蛋( 0)
|
发表于 2020-3-4 00:25:19
|
显示全部楼层
本帖最后由 slcat@3dm 于 2020-3-4 01:06 编辑
并不是亲卫次,只是有人喜欢快餐,有人喜欢慢热罢了。给别人选择的权力吧。对了,难的遇到宁静大大,我一直有问题想请教。
在mission_template里,village_raid下决定增援次数的代码中
(0, 0, ti_once,
[],
[
(assign, "$g_battle_won", 0),
(assign, "$defender_reinforcement_stage", 0),
(assign, "$attacker_reinforcement_stage", 0),
(call_script, "script_combat_music_set_situation_with_culture"),
(options_get_battle_size, ":var0"),
(val_min, ":var0", 1000),
(val_mul, ":var0", 120),
(val_div, ":var0", 1000),
(val_add, ":var0", 30),
(party_get_slot, ":var1", "$g_encountered_party", 146),
(assign, ":var2", 120),
(store_mul, ":var3", 30, ":var1"),
(val_add, ":var2", ":var3"),
(troop_set_slot, "trp_battle_ui_notes_keeper", 52, ":var2"),
(val_add, ":var2", 50),
(store_sub, ":var4", ":var2", ":var0"),
(val_div, ":var4", 25),
(assign, "$g_defender_reinforcement_limit", ":var4"),
(assign, "$g_attacker_reinforcement_limit", ":var4"),
]),
这里红字部分是为什么这么写? slot trp_battle_ui_notes_keeper 52我知道是存的战场规模。但是战场规模不是在部队相遇的时候在presentation 中simple_encounter下定义的吗?都已经进入战场了,这里的 (troop_set_slot, "trp_battle_ui_notes_keeper", 52, ":var2"),不就没有意义了吗。因为下次部队相遇还是会触发simple_encounter中的那句 (troop_set_slot, "trp_battle_ui_notes_keeper", 52, "var5"),等于又把之前那个覆盖了。
领主开局开宴会,是不是不加好感了。因为我对比原版代码和法亚的代码,
"I lift a {s5} to your health, {playername}! You are most gracious to host us on this occasion. Now, what is it?", "lord_talk",[
(call_script, "script_internal_politics_rate_feast_to_s9", "trp_household_possessions", 120, "$players_kingdom", 0),
(assign, ":quality_of_feast", reg0),
(try_begin),
(ge, ":quality_of_feast", 20),
(ge, "$g_time_since_last_talk", 24),
(call_script, "script_troop_change_relation_with_troop", "$g_talk_troop", "trp_player", 1),
(try_end),
发现法亚中少了红色的那句加关系代码。如果我加上去,那领主开局开宴会对话就会冒红字,提示说不可用的部队id。有办法修复吗?
最后我发现一个小小的问题。simple_triggers中有个关于领主开局私兵训练的变量写错了
(try_begin),
(val_sub, "$player_honor_can_use", ":var8"),
(call_script, "script_change_center_human_resources_num", ":var0", -1),
(str_store_troop_name, s1, ":var2"),
(display_message, "str_ui_hero_strengthen_string_87", 0x44CCCC),
(troop_remove_gold, "trp_player", ":var4"),
(troop_set_slot, ":var2", 153, 1),
这里临时变量写错了,如果用老将开局,让奈维娜训练复仇者就会显示“一名奈维娜正在训练中”,其实该是“一名复仇者正在训练中”。
|
|