Originally Posted by
MIKE GOLF
The campaign script is v1.25, the only things I added to were the provinces for the central admin script, changed a province requirement for the high elves reforging event and changed the province ID numbers for Aragorns RPG. If there is something in particular that I missed please let me know.
\
Thank you for your quick reply.
Er..I do not know how to describe the missing paragraphs ,and it is weried that the missing paragraphs is the changes from 1.24.They should be there if the campaign script is v1.25.
Let me paste them here:
Code:
1.
;########################## Welcome text #############################
2.
monitor_event FactionTurnStart FactionIsLocal
;show info at campaign start
historic_event tdp_info
terminate_monitor
end_monitor
3.
;#################### Total Diplomacy : Osgiliath Ferry ##################
set_event_counter tdp_ferry_on 1
set_event_counter tdp_ferry_this_faction_id 0
;activation...
monitor_event ShortcutTriggered ShortcutTriggered strat_ui tdp_ferry
if I_EventCounter tdp_ferry_on == 1
;show "is on" message
set_event_counter tdp_ferry_activate_on_accepted 0
set_event_counter tdp_ferry_activate_on_declined 0
historic_event tdp_ferry_activate_on true
end_if
if I_EventCounter tdp_ferry_on == 0
;show "is off" message
set_event_counter tdp_ferry_activate_off_accepted 0
set_event_counter tdp_ferry_activate_off_declined 0
historic_event tdp_ferry_activate_off true
end_if
end_monitor
monitor_event EventCounter EventCounterType tdp_ferry_activate_on_accepted
and EventCounter == 1
set_event_counter tdp_ferry_on 1
end_monitor
monitor_event EventCounter EventCounterType tdp_ferry_activate_off_accepted
and EventCounter == 1
set_event_counter tdp_ferry_on 1
end_monitor
monitor_event EventCounter EventCounterType tdp_ferry_activate_on_declined
and EventCounter == 1
set_event_counter tdp_ferry_on 0
end_monitor
monitor_event EventCounter EventCounterType tdp_ferry_activate_off_declined
and EventCounter == 1
set_event_counter tdp_ferry_on 0
end_monitor
;whose turn is it...?
monitor_event PreFactionTurnStart FactionType sicily
set_event_counter tdp_ferry_this_faction_id 1
end_monitor
monitor_event PreFactionTurnStart FactionType venice
set_event_counter tdp_ferry_this_faction_id 2
end_monitor
monitor_event PreFactionTurnStart FactionType milan
set_event_counter tdp_ferry_this_faction_id 3
end_monitor
monitor_event PreFactionTurnStart FactionType france
set_event_counter tdp_ferry_this_faction_id 4
end_monitor
monitor_event PreFactionTurnStart FactionType england
set_event_counter tdp_ferry_this_faction_id 5
end_monitor
monitor_event PreFactionTurnStart FactionType egypt
set_event_counter tdp_ferry_this_faction_id 6
end_monitor
monitor_event PreFactionTurnStart FactionType hre
set_event_counter tdp_ferry_this_faction_id 7
end_monitor
monitor_event PreFactionTurnStart FactionType scotland
set_event_counter tdp_ferry_this_faction_id 8
end_monitor
monitor_event PreFactionTurnStart FactionType mongols
set_event_counter tdp_ferry_this_faction_id 9
end_monitor
monitor_event PreFactionTurnStart FactionType turks
set_event_counter tdp_ferry_this_faction_id 10
end_monitor
monitor_event PreFactionTurnStart FactionType portugal
set_event_counter tdp_ferry_this_faction_id 11
end_monitor
monitor_event PreFactionTurnStart FactionType spain
set_event_counter tdp_ferry_this_faction_id 12
end_monitor
monitor_event PreFactionTurnStart FactionType moors
set_event_counter tdp_ferry_this_faction_id 13
end_monitor
monitor_event PreFactionTurnStart FactionType dunland
set_event_counter tdp_ferry_this_faction_id 14
end_monitor
monitor_event PreFactionTurnStart FactionType saxons
set_event_counter tdp_ferry_this_faction_id 15
end_monitor
;allied to whom...?
monitor_event PreFactionTurnStart TrueCondition
set_event_counter tdp_ferry_allied_sicily 0
set_event_counter tdp_ferry_allied_venice 0
set_event_counter tdp_ferry_allied_milan 0
set_event_counter tdp_ferry_allied_france 0
set_event_counter tdp_ferry_allied_england 0
set_event_counter tdp_ferry_allied_egypt 0
set_event_counter tdp_ferry_allied_hre 0
set_event_counter tdp_ferry_allied_scotland 0
set_event_counter tdp_ferry_allied_mongols 0
set_event_counter tdp_ferry_allied_turks 0
set_event_counter tdp_ferry_allied_portugal 0
set_event_counter tdp_ferry_allied_spain 0
set_event_counter tdp_ferry_allied_moors 0
set_event_counter tdp_ferry_allied_dunland 0
set_event_counter tdp_ferry_allied_saxons 0
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction sicily = Allied
set_event_counter tdp_ferry_allied_sicily 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction venice = Allied
set_event_counter tdp_ferry_allied_venice 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction milan = Allied
set_event_counter tdp_ferry_allied_milan 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction france = Allied
set_event_counter tdp_ferry_allied_france 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction england = Allied
set_event_counter tdp_ferry_allied_england 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction egypt = Allied
set_event_counter tdp_ferry_allied_egypt 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction hre = Allied
set_event_counter tdp_ferry_allied_hre 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction scotland = Allied
set_event_counter tdp_ferry_allied_scotland 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction mongols = Allied
set_event_counter tdp_ferry_allied_mongols 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction turks = Allied
set_event_counter tdp_ferry_allied_turks 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction portugal = Allied
set_event_counter tdp_ferry_allied_portugal 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction spain = Allied
set_event_counter tdp_ferry_allied_spain 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction moors = Allied
set_event_counter tdp_ferry_allied_moors 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction dunland = Allied
set_event_counter tdp_ferry_allied_dunland 1
end_monitor
monitor_event PreFactionTurnStart DiplomaticStanceFromFaction saxons = Allied
set_event_counter tdp_ferry_allied_saxons 1
end_monitor
;spawn ferry...
monitor_event FactionTurnEnd TrueCondition
;If the ferry is selected during PreFactionTurnStart then anyone on board will not exit the ship correctly (a ghost character will exit instead).
;FactionTurnEnd works okay so disband the ferry here instead.
destroy_units sicily tdp_ferry
destroy_units venice tdp_ferry
destroy_units milan tdp_ferry
destroy_units france tdp_ferry
destroy_units england tdp_ferry
destroy_units egypt tdp_ferry
destroy_units hre tdp_ferry
destroy_units scotland tdp_ferry
destroy_units mongols tdp_ferry
destroy_units turks tdp_ferry
destroy_units portugal tdp_ferry
destroy_units spain tdp_ferry
destroy_units moors tdp_ferry
destroy_units dunland tdp_ferry
destroy_units saxons tdp_ferry
end_monitor
monitor_event PreFactionTurnStart TrueCondition
;slaves don't have ownership but just in case the ferry ended up in their hands during a faction's turn (e.g. faction destroyed)...
destroy_units slave tdp_ferry
if I_EventCounter tdp_ferry_on == 1
set_event_counter tdp_ferry_allowed 1
if I_SettlementUnderSiege Osgiliath-West
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementUnderSiege Osgiliath-East
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_allowed == 1
if I_SettlementOwner Osgiliath-West sicily
and not I_EventCounter tdp_ferry_this_faction_id == 1 ;not sicily turn
and I_EventCounter tdp_ferry_allied_sicily == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West venice
and not I_EventCounter tdp_ferry_this_faction_id == 2 ;not venice turn
and I_EventCounter tdp_ferry_allied_venice == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West milan
and not I_EventCounter tdp_ferry_this_faction_id == 3 ;not milan turn
and I_EventCounter tdp_ferry_allied_milan == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West france
and not I_EventCounter tdp_ferry_this_faction_id == 4 ;not france turn
and I_EventCounter tdp_ferry_allied_france == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West england
and not I_EventCounter tdp_ferry_this_faction_id == 5 ;not england turn
and I_EventCounter tdp_ferry_allied_england == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West egypt
and not I_EventCounter tdp_ferry_this_faction_id == 6 ;not egypt turn
and I_EventCounter tdp_ferry_allied_egypt == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West hre
and not I_EventCounter tdp_ferry_this_faction_id == 7 ;not hre turn
and I_EventCounter tdp_ferry_allied_hre == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West scotland
and not I_EventCounter tdp_ferry_this_faction_id == 8 ;not scotland turn
and I_EventCounter tdp_ferry_allied_scotland == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West mongols
and not I_EventCounter tdp_ferry_this_faction_id == 9 ;not mongols turn
and I_EventCounter tdp_ferry_allied_mongols == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West turks
and not I_EventCounter tdp_ferry_this_faction_id == 10 ;not turks turn
and I_EventCounter tdp_ferry_allied_turks == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West portugal
and not I_EventCounter tdp_ferry_this_faction_id == 11 ;not portugal turn
and I_EventCounter tdp_ferry_allied_portugal == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West spain
and not I_EventCounter tdp_ferry_this_faction_id == 12 ;not spain turn
and I_EventCounter tdp_ferry_allied_spain == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West moors
and not I_EventCounter tdp_ferry_this_faction_id == 13 ;not moors turn
and I_EventCounter tdp_ferry_allied_moors == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West dunland
and not I_EventCounter tdp_ferry_this_faction_id == 14 ;not dunland turn
and I_EventCounter tdp_ferry_allied_dunland == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-West saxons
and not I_EventCounter tdp_ferry_this_faction_id == 15 ;not saxons turn
and I_EventCounter tdp_ferry_allied_saxons == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East sicily
and not I_EventCounter tdp_ferry_this_faction_id == 1 ;not sicily turn
and I_EventCounter tdp_ferry_allied_sicily == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East venice
and not I_EventCounter tdp_ferry_this_faction_id == 2 ;not venice turn
and I_EventCounter tdp_ferry_allied_venice == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East milan
and not I_EventCounter tdp_ferry_this_faction_id == 3 ;not milan turn
and I_EventCounter tdp_ferry_allied_milan == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East france
and not I_EventCounter tdp_ferry_this_faction_id == 4 ;not france turn
and I_EventCounter tdp_ferry_allied_france == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East england
and not I_EventCounter tdp_ferry_this_faction_id == 5 ;not england turn
and I_EventCounter tdp_ferry_allied_england == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East egypt
and not I_EventCounter tdp_ferry_this_faction_id == 6 ;not egypt turn
and I_EventCounter tdp_ferry_allied_egypt == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East hre
and not I_EventCounter tdp_ferry_this_faction_id == 7 ;not hre turn
and I_EventCounter tdp_ferry_allied_hre == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East scotland
and not I_EventCounter tdp_ferry_this_faction_id == 8 ;not scotland turn
and I_EventCounter tdp_ferry_allied_scotland == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East mongols
and not I_EventCounter tdp_ferry_this_faction_id == 9 ;not mongols turn
and I_EventCounter tdp_ferry_allied_mongols == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East turks
and not I_EventCounter tdp_ferry_this_faction_id == 10 ;not turks turn
and I_EventCounter tdp_ferry_allied_turks == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East portugal
and not I_EventCounter tdp_ferry_this_faction_id == 11 ;not portugal turn
and I_EventCounter tdp_ferry_allied_portugal == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East spain
and not I_EventCounter tdp_ferry_this_faction_id == 12 ;not spain turn
and I_EventCounter tdp_ferry_allied_spain == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East moors
and not I_EventCounter tdp_ferry_this_faction_id == 13 ;not moors turn
and I_EventCounter tdp_ferry_allied_moors == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East dunland
and not I_EventCounter tdp_ferry_this_faction_id == 14 ;not dunland turn
and I_EventCounter tdp_ferry_allied_dunland == 0
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East saxons
and not I_EventCounter tdp_ferry_this_faction_id == 15 ;not saxons turn
and I_EventCounter tdp_ferry_allied_saxons == 0
set_event_counter tdp_ferry_allowed 0
end_if
;slaves?
if I_SettlementOwner Osgiliath-West slave
set_event_counter tdp_ferry_allowed 0
end_if
if I_SettlementOwner Osgiliath-East slave
set_event_counter tdp_ferry_allowed 0
end_if
end_if
if I_EventCounter tdp_ferry_allowed == 1
;if this faction owns both then no ferry needed
if I_EventCounter tdp_ferry_this_faction_id == 1
and I_SettlementOwner Osgiliath-West sicily
and I_SettlementOwner Osgiliath-East sicily
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 2
and I_SettlementOwner Osgiliath-West venice
and I_SettlementOwner Osgiliath-East venice
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 3
and I_SettlementOwner Osgiliath-West milan
and I_SettlementOwner Osgiliath-East milan
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 4
and I_SettlementOwner Osgiliath-West france
and I_SettlementOwner Osgiliath-East france
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 5
and I_SettlementOwner Osgiliath-West england
and I_SettlementOwner Osgiliath-East england
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 6
and I_SettlementOwner Osgiliath-West egypt
and I_SettlementOwner Osgiliath-East egypt
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 7
and I_SettlementOwner Osgiliath-West hre
and I_SettlementOwner Osgiliath-East hre
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 8
and I_SettlementOwner Osgiliath-West scotland
and I_SettlementOwner Osgiliath-East scotland
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 9
and I_SettlementOwner Osgiliath-West mongols
and I_SettlementOwner Osgiliath-East mongols
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 10
and I_SettlementOwner Osgiliath-West turks
and I_SettlementOwner Osgiliath-East turks
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 11
and I_SettlementOwner Osgiliath-West portugal
and I_SettlementOwner Osgiliath-East portugal
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 12
and I_SettlementOwner Osgiliath-West spain
and I_SettlementOwner Osgiliath-East spain
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 13
and I_SettlementOwner Osgiliath-West moors
and I_SettlementOwner Osgiliath-East moors
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 14
and I_SettlementOwner Osgiliath-West dunland
and I_SettlementOwner Osgiliath-East dunland
set_event_counter tdp_ferry_allowed 0
end_if
if I_EventCounter tdp_ferry_this_faction_id == 15
and I_SettlementOwner Osgiliath-West saxons
and I_SettlementOwner Osgiliath-East saxons
set_event_counter tdp_ferry_allowed 0
end_if
end_if
if I_EventCounter tdp_ferry_allowed == 1
;spawn
spawn_army
faction hungary
character tdp_Temp_NC_I, named character, age 48, x 339, y 338
unit Gondor Bodyguard exp 0 armour 0 weapon_lvl 0
end
spawn_army
faction hungary
character tdp_Ferry_Admiral, admiral, age 48, x 255, y 129, direction S
unit tdp_ferry exp 0 armour 0 weapon_lvl 0
end
if I_EventCounter tdp_ferry_this_faction_id == 1
give_everything_to_faction hungary sicily false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 2
give_everything_to_faction hungary venice false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 3
give_everything_to_faction hungary milan false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 4
give_everything_to_faction hungary france false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 5
give_everything_to_faction hungary england false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 6
give_everything_to_faction hungary egypt false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 7
give_everything_to_faction hungary hre false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 8
give_everything_to_faction hungary scotland false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 9
give_everything_to_faction hungary mongols false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 10
give_everything_to_faction hungary turks false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 11
give_everything_to_faction hungary portugal false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 12
give_everything_to_faction hungary spain false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 13
give_everything_to_faction hungary moors false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 14
give_everything_to_faction hungary dunland false
end_if
if I_EventCounter tdp_ferry_this_faction_id == 15
give_everything_to_faction hungary saxons false
end_if
kill_character tdp_Temp_NC_I
console_command give_trait tdp_Ferry_Admiral Locked 1
end_if
end_if
end_monitor
;###TDP_END
;########################## Total Diplomacy [END] ########################