Scripted EffectsNScripted Effectnanbokuchou_end_event_emperor_effectEffectsTarget emperorIfThis: JimyōinDaikakuji › Ruler existsRuler: Daikakuji › RulerThenWill annex DaikakujiIfThis: DaikakujiJimyōin › Ruler existsRuler: Jimyōin › RulerThenWill annex JimyōinWill Formable Country a YamatoIfCapital: NotKyōtoThenSet capital: Kyōtowork_of_art:kusanagi_no_tsurugiMoves to KyōtoSwitches to be owned by Target emperorwork_of_art:yata_no_kagamiMoves to KyōtoSwitches to be owned by Target emperorwork_of_art:yasakani_no_magatamaMoves to KyōtoSwitches to be owned by Target emperorKyōtoIfNone ofAny foreign buildings in locationIs a GoshoOwner: Target emperorThenChange building level in location: Building: Gosho · +1 · Owner: Target emperorExact scriptConnectionsRequires 3BuildingsGoshoLocation:kyotoCountriesJJimyōinScope:target emperorDaikakujiScope:target emperorGrants 2BuildingsGoshoLocation:kyotoFormable CountriesYamatoScope:target emperorReferences 2JJimyōinScope:target emperorDaikakujiScope:target emperorUsed by 1End of the Nanbokuchō JidaiOptionDefinitionin_game/events/situations/nanbokuchou.txt:134Show the whole script (60 lines)History