脚本效果
chinese_expedition_set_expedition_to_return
Scripted effect for changing the route of the expedition back to China
定义in_game/events/DHE/flavor_chi_treasure_expedition.txt:170
171every_in_list = {
172variable = route_to_target_expedition_list
173if = {
}
}
182clear_variable_list = route_to_target_expedition_list
183find_route = {
184start = scope:expedition_initiator.var:chinese_treasure_fleet_location
185end = {
186this = scope:expedition_initiator.var:chinese_treasure_start_location
}
188limit = {
189is_land = no
}
191weight = {
192value = scope:distance
193if = {
194limit = {
195is_coastal = yes
}
197multiply = 0.75
}
199if = {
200limit = {
201any_neighbor_location = {
202scope:expedition_initiator = {
203is_target_in_variable_list = {
204name = list_of_discovered_locations
205target = PREV
}
}
}
}
210multiply = 2
}
}
213movement_cost = yes
214effect = {
218scope:expedition_initiator = {
219add_to_variable_list = {
220name = route_to_target_expedition_list
221target = PREV
}
}
}
}
236to = scope:expedition_initiator.var:chinese_treasure_fleet_location.var:chinese_treasure_next_location
}