- 好友
- 0
- 在线时间
- 9 小时
- 最后登录
- 2023-11-19
平民
- UID
- 2772090
- 第纳尔
- 101
- 精华
- 0
- 互助
- 1
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 0
- 注册时间
- 2016-10-1
鲜花( 0) 鸡蛋( 0)
|
发表于 2023-11-6 21:39:09
|
显示全部楼层
虽然后面看到你在制作区的提问被回答了,还是贴上吧,照猫画虎就行,这我改过的,把40级的转成堕落者幽灵
(25,
[
(try_for_parties, ":var0"),
(gt, ":var0", "p_spawn_points_end"),
(party_stack_get_troop_id, ":var1", ":var0", 0),
(try_begin),
(is_between, ":var1", "trp_knight_1_1", "trp_kingdom_1_pretender"),
(neg|troop_slot_eq, ":var1", 2, 2),
(troop_set_slot, ":var1", 2, 2),
(end_try),
(party_get_template_id, ":var2", ":var0"),
(eq, ":var2", "pt_eyegrim"),
(party_get_battle_opponent, ":var3", ":var0"),
(eq, ":var3", -1),
(try_begin),
(party_count_members_of_type, ":var4", ":var0", "trp_hero_eyegrim"),
(le, ":var4", 0),
(party_add_leader, ":var0", "trp_hero_eyegrim", 1),
(display_log_message, "@Eyegrim's horde has gathered enough souls to raise him once more.", 0xFF5050),
(end_try),
(assign, ":var5", 0),
(try_begin),
(party_get_num_companion_stacks, ":var6", ":var0"),
(gt, ":var6", 1),
(try_for_range_backwards, ":var7", 1, ":var6"),
(party_stack_get_troop_id, ":var8", ":var0", ":var7"),
(troop_get_type, ":var9", ":var8"),
(neq, ":var9", 3),
(neg|troop_is_hero, ":var8"),
(party_stack_get_size, ":var10", ":var0", ":var7"),
(assign, ":var11", ":var10"),
(party_remove_members, ":var0", ":var8", ":var10"),
(store_character_level, ":var12", ":var8"),
(try_begin),
(ge, ":var12", 40),
(assign, ":var13", "trp_fallen_revenant"),
(else_try),
(ge, ":var12", 31),
(assign, ":var13", "trp_fallen_warrior"),
(else_try),
(ge, ":var12", 26),
(assign, ":var13", "trp_fallen_veteran"),
(else_try),
(ge, ":var12", 15),
(assign, ":var13", "trp_fallen_footman"),
(else_try),
(assign, ":var13", "trp_fallen"),
(end_try),
(party_add_members, ":var0", ":var13", ":var11"),
(assign, ":var5", 1),
(end_try),
(end_try),
(try_begin),
(party_get_num_prisoner_stacks, ":var6", ":var0"),
(gt, ":var6", 0),
(try_for_range_backwards, ":var7", 0, ":var6"),
(party_prisoner_stack_get_troop_id, ":var8", ":var0", ":var7"),
(troop_get_type, ":var9", ":var8"),
(neq, ":var9", 3),
(neg|troop_is_hero, ":var8"),
(party_prisoner_stack_get_size, ":var10", ":var0", ":var7"),
(try_begin),
(ge, ":var10", 2),
(store_div, ":var11", ":var10", 2),
(else_try),
(assign, ":var11", 1),
(end_try),
(party_remove_prisoners, ":var0", ":var8", ":var11"),
(store_character_level, ":var12", ":var8"),
(try_begin),
(ge, ":var12", 40),
(assign, ":var13", "trp_fallen_revenant"),
(else_try),
(ge, ":var12", 31),
(assign, ":var13", "trp_fallen_warrior"),
(else_try),
(ge, ":var12", 26),
(assign, ":var13", "trp_fallen_veteran"),
(else_try),
(ge, ":var12", 15),
(assign, ":var13", "trp_fallen_footman"),
(else_try),
(assign, ":var13", "trp_fallen"),
(end_try),
(party_add_members, ":var0", ":var13", ":var11"),
(assign, ":var5", 1),
(end_try),
(end_try),
(try_begin),
(eq, ":var5", 1),
(store_random_in_range, ":var14", 0, 100),
(str_clear, s2),
(try_begin),
(lt, ":var14", 14),
(str_store_string, s2, "@Sources say Knights of the Eventide are avoiding Eyegrim at all costs. Reasons unknown."),
(else_try),
(lt, ":var14", 28),
(str_store_string, s2, "@Rumor has it that the demon king has gathered more Fallen from his prisoners!"),
(else_try),
(lt, ":var14", 42),
(str_store_string, s2, "@Echos of hundreds of souls being forfeited can be heard from miles away."),
(else_try),
(lt, ":var14", 56),
(str_store_string, s2, "@Villages report that Eyegrim is killing humans to create more Fallen!"),
(else_try),
(lt, ":var14", 70),
(str_store_string, s2, "@Full skin of human remains have been found by the hundreds in reported areas where a demonic horde lay waste."),
(else_try),
(lt, ":var14", 84),
(str_store_string, s2, "@Knights of the Dawn report that captured heretics say 'Eyegrim is creating Fallen in Pendor.'"),
(else_try),
(str_store_string, s2, "@Eyegrim has risen more Fallen from his prisoners!"),
(end_try),
(display_log_message, "@{s2}", 0xFF5050),
(end_try),
(end_try),
]), |
|