I'm having problems trying to create a hunnic foederati building.
This what it looks like in the script.
script
;======================================================
; Declare Counters
;======================================================
declare_counter settlementowner_Ravenna
declare_counter settlementowner_Verona
declare_counter settlementowner_Sirmium
declare_counter settlementowner_Carthage
declare_counter Foederati_Hunnic_Treaty
;======================================================
; Recruitment of Hunnic Foederati after 380AD
;======================================================
monitor_event FactionTurnStart FactionType empire_east
set_counter Foederati_Hunnic_Treaty 1
end_monitor
monitor_event FactionTurnStart FactionType empire_east
and I_CompareCounter Foederati_Hunnic_Treaty = 0
and I_TurnNumber > 2
and I_SettlementOwner Sirmium = empire_east
and not SettlementBuildingExists = foederati_treaties1
and not I_SettlementOwner Sirmium = alemanni
and not I_SettlementOwner Sirmium = franks
and not I_SettlementOwner Sirmium = saxons
and not I_SettlementOwner Sirmium = celts
and not I_SettlementOwner Sirmium = berbers
and not I_SettlementOwner Sirmium = slavs
and not I_SettlementOwner Sirmium = lombardi
and not I_SettlementOwner Sirmium = goths
and not I_SettlementOwner Sirmium = ostrogoths
and not I_SettlementOwner Sirmium = huns
and not I_SettlementOwner Sirmium = sassanids
and not I_SettlementOwner Sirmium = sarmatians
and not I_SettlementOwner Sirmium = moors
and not I_SettlementOwner Sirmium = romano_british
and not I_SettlementOwner Sirmium = roxolani
and not I_SettlementOwner Sirmium = slave
console_command create_building Sirmium "foederati_treaties1"
end_monitor
And in the export_descr_buildings.txt file, this is what I put.
building hinterland_foederati_treaties1
{
levels foederati_treaties1
{
foederati_treaties1 requires factions { roman, } and hidden_resource not_here
{
capability
{
}
construction 1
cost 400
settlement_min city
upgrades
{
}
}
}
plugins
{
}
}
building foederati_recruitment_huns
{
levels foederati_camp_huns foederati_settlement_huns foederati_tribe_huns
{
foederati_camp_huns requires factions { roman, } and building_present_min_level hinterland_foederati_treaties1 foederati_treaties1
{
capability
{
recruit "hunnic foederati" 0 requires factions { roman, }
}
construction 1
cost 2000
settlement_min town
upgrades
{
foederati_settlement_huns
}
}
foederati_settlement_huns requires factions { roman, } and hidden_resource foederati
{
capability
{
recruit "hunnic foederati" 0 requires factions { roman, }
recruit "foederati hunnic lancers" 0 requires factions { roman, }
}
construction 2
cost 3000
settlement_min large_town
upgrades
{
foederati_tribe_huns
}
}
foederati_tribe_huns requires factions { roman, } and hidden_resource foederati
{
capability
{
recruit "hunnic foederati" 1 requires factions { roman, }
recruit "foederati hunnic lancers" 1 requires factions { roman, }
}
construction 3
cost 5000
settlement_min city
upgrades
{
}
}
}
plugins
{
}
}
Now, it works it I remove the and hidden_resource not_here, but I get the building in the construction list for a ll roman buildings, but when it is included, the script doesn't construct the building in the construction list.
Any ideas.
Thanks






Reply With Quote









