Scripts

T_ScObj_RgaCryptSpiritSummon

Tamriel_Data.esm
Variables 1
Local Variables
done
Source
1begin T_ScObj_RgaCryptSpiritSummon 2; Summon a ghost when gem is picked 3; like BILL_MarksSpiritSummon but replaced with a regular gem ID by script 4; This is a modified version of the DE Summon Spirit for Rga Crypts 5;Using T_Cyr_Und_Ghst_01 and T_Cyr_Und_Ghst_02 until we have an Rga ghost, will need to be swapped at that time. 6 7short done 8 9if ( OnActivate ) 10 Activate 11 player->StartScript, "T_ScObj_RgaCryptSpiritReplace" 12 if ( done == 0 ) 13 Set done to 1 14 if ( player->GetLevel > 5 ) 15 if ( Random100 < 50 ) 16 PlaceAtPC "T_Cyr_Und_Ghst_02" 1 128 1 17 Return 18 endif 19 endif 20 PlaceAtPC "T_Cyr_Und_Ghst_01" 1 128 1 21 endif 22endif 23 24End