Here's the code:Michadr said:I recently uploaded a testing version and a bunch of people have reported that prisoners just disappear... which is weird. Does anybody know what could be causing this? Oh it always seems to happen at midnight when troops get their daily xp.
# Check escape chances of hero prisoners.
(48,
[
(call_script, "script_randomly_make_prisoner_heroes_escape_from_party", "p_main_party", 50),
(try_for_range, ":center_no", walled_centers_begin, walled_centers_end),
## (party_slot_eq, ":center_no", slot_town_lord, "trp_player"),
(assign, ":chance", 30),
(try_begin),
(party_slot_eq, ":center_no", slot_center_has_prisoner_tower, 1),
(assign, ":chance", 5),
(try_end),
(call_script, "script_randomly_make_prisoner_heroes_escape_from_party", ":center_no", ":chance"),
(try_end),
]),
# Checking escape chances of prisoners that joined the party recently.
(6,
[(gt, "$g_prisoner_recruit_troop_id", 0),
(gt, "$g_prisoner_recruit_size", 0),
(gt, "$g_prisoner_recruit_last_time", 0),
(is_currently_night),
(try_begin),
(store_skill_level, ":leadership", "skl_leadership", "trp_player"),
(val_mul, ":leadership", 5),
(store_sub, ":chance", 66, ":leadership"),
(gt, ":chance", 0),
(assign, ":num_escaped", 0),
(try_for_range, ":unused", 0, "$g_prisoner_recruit_size"),
(store_random_in_range, ":random_no", 0, 100),
(lt, ":random_no", ":chance"),
(val_add, ":num_escaped", 1),
(try_end),
(party_remove_members, "p_main_party", "$g_prisoner_recruit_troop_id", ":num_escaped"),
(assign, ":num_escaped", reg0),
(gt, ":num_escaped", 0),
(try_begin),
(gt, ":num_escaped", 1),
(assign, reg2, 1),
(else_try),
(assign, reg2, 0),
(try_end),
(assign, reg1, ":num_escaped"),
(str_store_troop_name_by_count, s1, "$g_prisoner_recruit_troop_id", ":num_escaped"),
(display_log_message, "@{reg1} {s1} {reg2?have:has} escaped from your party during the night."),
(try_end),
(assign, "$g_prisoner_recruit_troop_id", 0),
(assign, "$g_prisoner_recruit_size", 0),
]),
Lav said:Here's the code:Michadr said:I recently uploaded a testing version and a bunch of people have reported that prisoners just disappear... which is weird. Does anybody know what could be causing this? Oh it always seems to happen at midnight when troops get their daily xp.
Code:# Check escape chances of hero prisoners. (48, [ (call_script, "script_randomly_make_prisoner_heroes_escape_from_party", "p_main_party", 50), (try_for_range, ":center_no", walled_centers_begin, walled_centers_end), ## (party_slot_eq, ":center_no", slot_town_lord, "trp_player"), (assign, ":chance", 30), (try_begin), (party_slot_eq, ":center_no", slot_center_has_prisoner_tower, 1), (assign, ":chance", 5), (try_end), (call_script, "script_randomly_make_prisoner_heroes_escape_from_party", ":center_no", ":chance"), (try_end), ]),
Code:# Checking escape chances of prisoners that joined the party recently. (6, [(gt, "$g_prisoner_recruit_troop_id", 0), (gt, "$g_prisoner_recruit_size", 0), (gt, "$g_prisoner_recruit_last_time", 0), (is_currently_night), (try_begin), (store_skill_level, ":leadership", "skl_leadership", "trp_player"), (val_mul, ":leadership", 5), (store_sub, ":chance", 66, ":leadership"), (gt, ":chance", 0), (assign, ":num_escaped", 0), (try_for_range, ":unused", 0, "$g_prisoner_recruit_size"), (store_random_in_range, ":random_no", 0, 100), (lt, ":random_no", ":chance"), (val_add, ":num_escaped", 1), (try_end), (party_remove_members, "p_main_party", "$g_prisoner_recruit_troop_id", ":num_escaped"), (assign, ":num_escaped", reg0), (gt, ":num_escaped", 0), (try_begin), (gt, ":num_escaped", 1), (assign, reg2, 1), (else_try), (assign, reg2, 0), (try_end), (assign, reg1, ":num_escaped"), (str_store_troop_name_by_count, s1, "$g_prisoner_recruit_troop_id", ":num_escaped"), (display_log_message, "@{reg1} {s1} {reg2?have:has} escaped from your party during the night."), (try_end), (assign, "$g_prisoner_recruit_troop_id", 0), (assign, "$g_prisoner_recruit_size", 0), ]),
To move the red border, simply right click and hold, then move. Did you mean something like this for the other part? (Dragging the red triangles). There might be other ways but another person would have to answer if they know howLord Wolfe said:how would i use thorgrim's map editor to change the size of the map? such as the movable area and the boundary that stops the camera from moving
You can edit it via the module.ini file - that is the way I have always done itLord Wolfe said:how would i use thorgrim's map editor to change the size of the map? such as the movable area and the boundary that stops the camera from moving
Lord Wolfe said:so by clicking and dragging and moving the red and yellow borders, it makes the map size larger and therefore the camera wont be stopped at the "normal" edge?
also a seperate question, how do i perfectly line up vertexes so that they are accessible in the map again? i accidently deleted some and cant make it so i can travel across it again
multiplayer_send_int_to_server
eq