Begin bry_GriefTimer; Self-terminating global script started from dialog with (brother's name) [topic: ]; Moves the brother after his brother's death is avenged, ; enables door to empty house, and; keeps track of time while bother grieves and updated the player's journal when ; one month has passed so the house will be available for sale.short doOnceshort currentDayshort daysElapsedif ( doOnce == 0 ) if ( CellChanged == 1 ) ; moves brother when not observed by player set doOnce to 1 "brother_ID"->PositionCell x y z zAngle "Cell Name" endifendifif ( currentDay == 0 ) set currentDay to Dayendifif ( currentDay == Day ) returnelse set currentDay to Day set daysElapsed to ) daysElapsed + 1 )endifif ( daysElapsed >= 30 ) SetJournalIndex "bry_AvengeBrother" 110 ; or...; Journal "bry_AvengeBrother" 110 StopScript "bry_GriefTimer"endifEnd bry_GriefTimer
Begin bry_BrothersDoorScript; Attached to door bry_ door_brothers_house.; Disables and enables door as appropriate.short doOnceif ( doOnce == 2 ) returnendifif ( doOnce == 1 ) if ( ( GetJournalIndex "bry_AvengeBrother" ) == 100 ) ; or at index = 110 set doOnce to 2 Enable endifendifif ( doOnce == 0 ) set doOnce to 1 DisableendifEnd bry_BrothersDoorScript
Begin bry_BrothersPossessionsScript; Attached to objects in brother's house.; Disables them before the player purchases house.short doOnceif ( doOnce == 1 ) returnendifif ( ( GetJournalIndex "bry_AvengeBrother" ) >= 100 ) ; or at index >= 110 set doOnce to 1 DisableendifEnd bry_BrothersPossessionsScript
Begin bry_BrothersDoorScript; Attached to door bry_ door_brothers_house.; Requres key to open after player completes quest.short doOnceif ( OnActivate == 1 ) if ( ( GetJournalIndex "bry_AvengeBrother" ) < 100 ) ; or at index < 110 Activate elseif ( ( player->GetItemCount "bry_BrothersHouse_key ) >= 1 ) Activate else messagebox "You require a key to unlock this door." endifendifEnd bry_BrothersDoorScript