Thanks for all your help!
I got the yes/no event to work but two other parts of the same script have errors:
A diplomatic_stance problem
Script:
Code:
;If Accepted, Start script
monitor_event EventCounter EventCounterType rfs_start_accepted
and I_EventCounter rfs_start_accepted = 1
set_counter rfs_started 1
set_event_counter rfs_start_accepted 0
console_command diplomatic_stance france egypt Allied
console_command diplomatic_stance france turks Allied
console_command diplomatic_stance france milan Allied
console_command give_ancillary Theoden wormtongue
set_faction_standing france egypt +9.9
set_faction_standing france turks +9.9
set_faction_standing france milan +9.9
terminate_monitor
end_monitor
;If Declined, Do not start script
monitor_event EventCounter EventCounterType rfs_start_declined
and I_EventCounter rfs_start_declined = 1
set_event_counter rfs_start_declined 0
terminate_monitor
end_monitor
Error in log:
Code:
21:28:58.796 [game.script] [error] Script execution error for <console_command>, at line 4571, in mods/Third_Age_3/data/world/maps/campaign/imperial_campaign/campaign_script.txt:
diplomatic_stance france egypt Allied
err: diplomatic_stance stance unknown
And a factiontype error:
Script
Code:
;###########Saruman's intentions are clear but Rohan cannot strike back
declare_counter isengard_raiders
monitor_event CharacterTurnStart I_CompareCounter rfs_started = 1
and I_CharacterExists Saruman
and I_CharacterExists Theoden
if I_LocalFaction
and FactionType france
and DiplomaticStanceFromFaction milan = AtWar
console_command diplomatic_stance france turks Neutral
console_command diplomatic_stance france egypt Neutral
console_command diplomatic_stance france milan Neutral
set_faction_standing france egypt 0
set_faction_standing france turks 0
set_faction_standing france milan 0
set_counter isengard_raiders 1
historic_event isengard_raiders_rohan
ui_flash_stop
end_if
if I_TurnNumber = 20
and I_LocalFaction
and FactionType france
and DiplomaticStanceFromFaction milan = Allied
console_command diplomatic_stance france egypt Neutral
console_command diplomatic_stance france turks Neutral
console_command diplomatic_stance france milan Neutral
set_faction_standing france egypt 0
set_faction_standing france turks 0
set_faction_standing france milan 0
historic_event isengard_raiders_rohan
set_counter isengard_raiders 1
ui_flash_stop
end_if
terminate_monitor
end_monitor
Error in log
Code:
21:29:18.921 [game.script] [error] Script execution error for <if>, at line 4597, in mods/Third_Age_3/data/world/maps/campaign/imperial_campaign/campaign_script.txt:
<faction> is unavailable from event <>
when testing <FactionType> condition