Scripts

GlenmorilRavenCave

Bloodmoon.esm
Variables 8
Local Variables
controlvar
greetonce
OnPCHitMe
disabling
xpos
ypos
zpos
timer
Source
1Begin GlenmorilRavenCave 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 ( disabling == 2 ) 20 return 21endif 22 23if ( disabling == 1 ) 24 set timer to ( timer + getsecondspassed ) 25 if (timer > 1.25 ) 26 disable 27 ;"glenmoril_witch_cave"->Enable 28 set disabling to 2 29 endif 30 return 31endif 32endif 33 34if ( GetDisabled == 0 ) 35 if ( menumode == 0 ) 36 if ( GetJournalIndex "BM_WolfGiver" = 30 ) 37 set timer to ( timer + getsecondspassed ) 38 if (timer > .75 ) 39 set xpos to ( GetPos, X ) 40 set ypos to ( GetPos, Y ) 41 set zpos to ( GetPos, Z ) 42 Placeitem "glenmoril_ring_bm" xpos ypos zpos 0 43 set disabling to 1 44 endif 45endif 46endif 47endif 48 49if ( GetDisabled == 0 ) 50 if ( OnPCHitMe == 1 ) 51 set xpos to ( GetPos, X ) 52 set ypos to ( GetPos, Y ) 53 set zpos to ( GetPos, Z ) 54 Placeitem "glenmoril_ring_bm" xpos ypos zpos 0 55 set disabling to 1 56 endif 57endif 58 59if ( GetDisabled == 0 ) 60 if ( GetJournalIndex "BM_WolfGiver" < 10 ) 61 Disable 62 "glenmoril_witch_cave"->Disable 63 endif 64endif 65 66;if ( GetDisabled == 1 ) 67 if ( GetJournalIndex "BM_WolfGiver" = 30 ) 68 Enable 69 "glenmoril_witch_cave"->Disable 70 endif 71endif 72 73end GlenmorilRavenCave