The dialogue starts the scripts; for example, when you turn in the stronghold items to Hlaalu, it runs the command
StartScript Strong_Build_Start_H. This script tracks the day, and after a certain number of days it updates the journal with
Journal HH_Stronghold 55 and updates the variable that changes how built-up all the strongholds are,
set Stronghold to 1. The journal tells the player to talk to the stronghold builder, and do something for them; again, the dialogue starts the next script,
StartScript Strong_Build1_H. This script also waits a number of days, then runs the commands
Journal HH_Stronghold 100 and
set Stronghold to 2. Again, dialogue with the builder starts the next stronghold build script,
StartScript Strong_Build2_H, which waits a number of days then runs the commands
Journal HH_Stronghold 200 and
set Stronghold to 4. Again, dialogue with the builder starts the next stronghold build script,
StartScript Strong_Build3_H, which waits a number of days then runs the commands
Journal HH_Stronghold 300 and
set Stronghold to 6.
Each item in the exterior cells for the strongholds checks the variable
stronghold, using a script like this:
Begin Strong1if ( Stronghold > 0 ) if ( GetDisabled == 1 ) enable endif else if ( GetDisabled == 0 ) disable endifendifEnd