Scripts

GlenmorilRaven

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