On Action
on_battle_won
root = actor, scope:actor = winning "unit", scope:target = losing "unit" Supports the following float scopes: scope:killed_land_units -> how many soldiers killed during land battle scope:killed_navy_units -> how many ships destroyed during navy battle scope:lost_land_units -> how many soldiers lost during land battle scope:lost_navy_units -> how many ships lost during navy battle scope:war_score -> how much war score the winner gains from that battle
BulgariaCountryeffect
AustriaCountryeffect
SerbiaCountryeffect
TimuridCountryeffect
OttomansCountryeffectMongolCulture Groupeffect
Middle KingdomInternational Organizationeffect
Rise of TimurSituationeffectholy_league_crusadeVariableeffectDefinitionin_game/common/on_action/_hardcoded.txt:2790
2794effect = {
2795if = {
2796limit = {
2800scope:actor.owner ?= {
}
}
}
2811scope:actor = {
}
2816scope:target = {
}
2821if = {
2825scope:actor = {
}
2830if = {
2833type = battle
2834variable = scope:actor.owner.var:land_units_killed
}
}
2837if = {
2840type = battle
2841variable = scope:target.owner.var:land_units_killed
}
}
}
2845if = {
2846limit = {
}
2853scope:actor = {
2854unit_location = {
2854save_scope_as = target_location
}
2855owner = {
}
}
}
2861if = {
2862limit = {
}
2869scope:actor = {
2870unit_location = {
2870save_scope_as = target_location
}
2871owner = {
}
}
}
2877if = {
2878limit = {
}
}
2891if = {
2892limit = {
}
2898scope:actor = {
2899unit_location = {
2899save_scope_as = target_location
}
2900owner = {
2901set_local_variable = bul_won_against_ottomans
}
}
}
}