Scripts

T_ScObj_DeTombSpiritSummon

Tamriel_Data.esm
Variables 1
Local Variables
done
Source
1begin T_ScObj_DeTombSpiritSummon 2; Summon an Ancestor Ghost when gem is picked 3; like BILL_MarksSpiritSummon but replaced with a regular gem ID by script 4 5short done 6 7if ( OnActivate ) 8 Activate 9 player->StartScript, "T_ScObj_DeTombSpiritReplace" 10 if ( done == 0 ) 11 Set done to 1 12 if ( player->GetLevel > 5 ) 13 if ( Random100 < 50 ) 14 PlaceAtPC "ancestor_ghost_greater" 1 128 1 15 Return 16 endif 17 endif 18 PlaceAtPC "ancestor_ghost" 1 128 1 19 endif 20endif 21 22End