I've shamelessly stolen part of the FOE script (for own use) to make more of the mission like events the mod had at the start.
However, whenever the "mission/advice" is activated, my game crashes.
I've been trying to figure out what is wrong, but sadly it's been no use.
Here is what I've inserted into the background script:
;;; Turn 28
console_command date -273
console_command season summer
if I_TurnNumber = 28
and I_LocalFaction rome_republic
disable_cursor
disable_shortcuts true
inhibit_camera_input true
disable_shortcuts advisor_portrait_button false
filter_all_ui_commands off
move_strat_camera 285, 119
reveal_tile 285, 118
zoom_strat_camera 0.3
campaign_wait 2
ui_indicator 0 circle 512 275 colour 0 0 255 scale .8 ; Mastia
enable_cursor
disable_entire_ui
disable_shortcuts options_button false
disable_shortcuts advisor_dismiss_button false
disable_shortcuts dismiss_advice false
disable_shortcuts advisor_portrait_button false
dismiss_advice
while I_AdvisorVisible
end_while
advance_advice_thread Rebels_Lucanian_Sextus_Thread ; Spartacus
restart_timer Campaign_Map_Timer
; Dismiss to continue. If not dismissed after 10 seconds, show hint.
while I_AdvisorVisible
monitor_conditions I_TimerElapsed Campaign_Map_Timer > 10000
ui_flash_start advisor_dismiss_button ; uses ui_indicator slot 2
terminate_monitor
end_monitor
end_while
ui_flash_stop
ui_indicator_remove 0
filter_all_ui_commands on
enable_entire_ui
disable_shortcuts false
inhibit_camera_input false
end_if
while I_TurnNumber < 29
suspend_unscripted_advice true
end_while
Here is what I've added to the export_descr_advice:
;------------------------------------------
AdviceThread Rebels_Lucanian_Sextus_Thread
GameArea Campaign
Item Rebels_Lucanian_Sextus_Text_01
Uninhibitable
Verbosity 3
Threshold 1
Attitude Normal
Presentation Default
Title Rebels_Lucanian_Sextus_Text_01_Title
Text Rebels_Lucanian_Sextus_Text_01_Text1
Here is what I've put into the export_descr_advice_enums:
Rebels_Lucanian_Sextus_Title
Rebels_Lucanian_Sextus_Text1
And here is what I've added to the export_advice:
¬---------------------
{Rebels_Lucanian_Sextus_Text_01_Title} The Lucanians rebel!
{Rebels_Lucanian_Sextus__Text_01_Text1} Senators, the Lucanians have revolted! Displeased with our harsh and rightful treatment of these treacherous barbarians, after they aided the king of Epiros, has led to open rebellion. They must be put to the sword, so that we can be at peace!
Any help in uncovering what mistake I've made would be awesome.











