Scripts

GlenmorilWitchCave

Bloodmoon.esm
Variables 8
Local Variables
controlvar
nolore
greetonce
disabling
xpos
ypos
zpos
timer
Source
1Begin GlenmorilWitchCave 2 3 4float xpos 5float ypos 6float zpos 7 8; This script changes the Glenmoril Witch from Raven to human form. 9 10short controlvar 11short nolore 12short greetonce 13short disabling 14float timer 15 16if ( menumode == 1 ) 17 return 18endif 19 20if ( GetDistance, Player <= 320 ) 21 if ( GetDisabled == 0 ) 22 if ( greetonce == 0 ) 23 ForceGreeting 24 set greetonce to -1 25 endif 26 endif 27endif 28 29if ( disabling == 2 ) 30 if ( GetJournalIndex "BM_WolfGiver" >= 80 ) 31 ;if ( GetPCCell "Solstheim, Gloomy Cave" == 0 ) 32 if ( CellChanged == 1 ) 33 disable 34 ;return 35 endif 36 endif 37endif 38 39 40if ( disabling == 2 ) 41 if ( GetJournalIndex "BM_WolfGiver" < 80 ) 42 enable 43 return 44 endif 45endif 46 47if ( disabling == 1 ) 48 set timer to ( timer + getsecondspassed ) 49 if (timer > 1.75 ) 50 Enable 51 set disabling to 2 52 endif 53 ;return 54endif 55 56 57if ( GetDisabled == 1 ) 58 if ( menumode == 0 ) 59 if ( GetJournalIndex "BM_WolfGiver" = 30 ) 60 set timer to ( timer + getsecondspassed ) 61 if (timer > .75 ) 62 set xpos to ( GetPos, X ) 63 set ypos to ( GetPos, Y ) 64 set zpos to ( GetPos, Z ) 65 ;Placeitem "glenmoril_ring_bm" xpos ypos zpos 0 66 set disabling to 1 67 endif 68endif 69endif 70endif 71 72if ( GetDisabled == 0 ) 73 if ( GetJournalIndex "BM_WolfGiver" < 30 ) 74 Disable 75 endif 76endif 77 78if ( GetDisabled == 0 ) 79 if ( GetJournalIndex "BM_WolfGiver" = 30 ) 80 Disable 81 endif 82endif 83 84end GlenmorilWitchCave