Scripts

T_ScObj_NamirasShroud

Tamriel_Data.esm
Variables 2
Local Variables
OnPCEquip
disguised
Source
1begin T_ScObj_NamirasShroud 2 3short OnPCEquip 4short disguised 5 6if ( PCVampire == -1 ) 7 if ( disguised ) 8 player->RemoveSpell T_Vamp_Ab_Disguise 9 set disguised to 0 10 endif 11 return 12elseif ( PCVampire != 1 ) 13 return 14endif 15 16if ( OnPCEquip == 0 ) 17 if ( disguised == 0 ) 18 return 19 endif 20 player->RemoveSpell T_Vamp_Ab_Disguise 21; Handle Baluath's reduced sun damage 22 if ( player->GetSpell "T_Vamp_Ab_Baluath_Ash" ) 23 player->AddSpell T_Vamp_Ab_Baluath_SunDmg 24 elseif ( player->GetSpell T_Vamp_Ab_Order_Disguise ) 25; Don't add sun damage if we're a disguised Order vampire 26 else 27 player->AddSpell "Vampire Sun Damage" 28 endif 29 set disguised to 0 30endif 31 32if ( disguised ) 33 return 34endif 35 36if ( OnPCEquip ) 37 player->RemoveSpell "Vampire Sun Damage" 38 player->RemoveSpell T_Vamp_Ab_Baluath_SunDmg 39 player->RemoveSpell T_Vamp_Ab_Order_Disguise 40 player->AddSpell T_Vamp_Ab_Disguise 41 set disguised to 1 42endif 43 44end