Scripts

dulniScript

Tribunal.esm
Variables 5
Local Variables
lichDead
approach
shrineDone
doOnce
timer
Source
1Begin dulniScript 2 3short lichDead 4short approach 5short shrineDone 6short doOnce 7float timer 8 9if ( MenuMode == 1 ) 10 return 11endif 12 13if ( shrineDone == 2 ) 14 return 15endif 16 17if ( GetJournalIndex TR_ShrineDead == 50 ) 18 set lichDead to 1 19endif 20 21if ( shrineDone == 1 ) 22 if ( GetJournalIndex TR_ShrineDead >= 100 ) 23 set shrineDone to 2 24 endif 25endif 26 27if ( lichDead == 0 ) 28 return 29endif 30 31if ( approach == 0 ) 32 if ( GetDistance Player <= 256 ) 33 if ( GetDistance furn_shrinedead_01 <= 1028 ) 34 set approach to 1 35 ForceGreeting 36 endif 37 endif 38endif 39 40if ( approach == 2 ) 41 AiTravel 2190 -2471 4 0 42 ;MessageBox "CLEANSING SHRINE" 43 set approach to 3 44endif 45 46if ( approach == 3 ) 47 if ( GetAIPackageDone == 1 ) 48 AiTravel 1900 -2146 -173 0 49 set approach to 4 50 endif 51endif 52 53if ( approach == 4 ) 54 if ( GetAIPackageDone == 1 ) 55 set shrinedone to 1 56 set approach to 5 57 set ShrineCleanse to 1 58 PlaySound "Spirit Ambient Voices" 59 PlaySound "restoration hit" 60 ;MessageBox "SHOULD PLAY SPELL EFFECT" 61 ;PlaceItem "Sotha Alma Appear Effect" 2230 -2519 102 0 62 "Shrine Cleanse"->Enable 63 "Shrine Cleanse"->PlayGroup Idle2 64 endif 65endif 66 67if ( shrineDone == 1 ) 68 if ( GetJournalIndex TR_ShrineDead < 60 ) 69 AiFollow Player 0 0 0 0 0 0 70 Journal TR_ShrineDead 60 71 endif 72 if ( timer < 5 ) 73 set timer to ( timer + GetSecondsPassed ) 74 else 75 "Shrine Cleanse"->Disable 76 set shrineDone to 2 77 endif 78endif 79 80 81 82End dulniScript