BILL_MarksSpiritSummon
Morrowind.esm
Variables
2
Local Variables
done
xPos
Source
1Begin BILL_MarksSpiritSummon
2; Summon an Ancestor Ghost when a silver dagger is pulled from a skull
3;
4; script location: should be placed on a silver dagger stick in a skull
5
6;fixed 03/20. Could still be wierdness.
7;fixed again for the small space... only in Ibar-Dad in case someone puts one somewhere else
8
9; variables
10short done
11short xPos
12
13if ( OnActivate == 1 )
14 if ( done == 1 )
15 Activate
16 return
17 endif
18
19 if ( GetPCCell "Ibar-Dad" == 1 )
20 Set xPos to ( GetPos X )
21 if ( xPos > -2300 )
22 ;it's on the left side, put the ghost to the player's left
23 PlaceAtPC "ancestor_ghost" 1 256 2
24 else
25 ;it's on the right side, put the ghost to the player's right
26 PlaceAtPC "ancestor_ghost" 1 256 3
27 endif
28 Set done to 1
29 Activate
30 return
31 endif
32
33;if NOT Ibar-Dad...
34
35 PlaceAtPC "ancestor_ghost", 1, 128, 1
36 ; 1 of them, 128 units away, in back (1) of the player
37 set done to 1
38 Activate
39endif
40
41End