TR_m3_MG_OE_Q5_Sapphire_sc
TR_Mainland.esm
Variables
2
Local Variables
done
pcskipequip
Source
1begin TR_m3_MG_OE_Q5_Sapphire_sc
2; Summon an Daedra when an item is removed from altar
3;
4; script location: should be placed upon an object on a Daedric Altar
5
6; variables
7short done
8short pcskipequip
9
10if ( GetJournalIndex "TR_m3_MG_OE_Q5" < 11 ) ;I know that's usually not done for quest targets, but finding one unmarked sapphire would be incredibly annoying if you've moved it somewhere before starting the quest.
11 if ( GetDisabled == 0 )
12 disable
13 endif
14 return
15elseif ( GetDisabled )
16 Enable
17endif
18
19if ( pcskipequip == 0 ); Prevents the player from eating it lol.
20 set pcskipequip to 1
21endif
22
23if ( OnActivate )
24 if ( done == 0 )
25 Set done to 1
26 PlaceAtPC "T_Dae_Cre_Morphoid_01" 1 128 1
27 ;1 of them, 256 units away, in back (1) of the player
28 endif
29 Activate
30endif
31
32End