DASkullofCorruptionSpellScript
Editor ID:DASkullofCorruptionSpellScript
Form ID:00073A2D
Typ:Magie
Script:scn DASkullofCorruptionSpellScript
ref target
short doOnce
ref summon
Begin ScriptEffectStart
set target to GetSelf
set DASkullofCorruption.target to GetSelf
;Find the race of the target
if ( DASkullofCorruption.spellworking == 0 ) && ( IsActor == 1 ) && ( IsGuard == 0 ) && ( GetDead == 0 ) && ( GetIsCreature == 0 ) && ( GetItemCount DASkullCorruption == 0 )
;if ( GetIsRace Argonian == 1 )
; set DASkullofCorruption.raceVAR to 1
;elseif ( GetIsRace Breton == 1 )
; set DASkullofCorruption.raceVAR to 2
;elseif ( GetIsRace DarkElf == 1 )
; set DASkullofCorruption.raceVAR to 3
;elseif ( GetIsRace HighElf == 1 )
; set DASkullofCorruption.raceVAR to 4
;elseif ( GetIsRace Imperial == 1 )
; set DASkullofCorruption.raceVAR to 5
;elseif ( GetIsRace Khajiit == 1 )
; set DASkullofCorruption.raceVAR to 6
;elseif ( GetIsRace Nord == 1 )
; set DASkullofCorruption.raceVAR to 7
;elseif ( GetIsRace Orc == 1 )
; set DASkullofCorruption.raceVAR to 8
;elseif ( GetIsRace Redguard == 1 )
; set DASkullofCorruption.raceVAR to 9
;elseif ( GetIsRace WoodElf == 1 )
; set DASkullofCorruption.raceVAR to 10
;endif
;if ( GetIsSex Male == 1 )
; set DASkullofCorruption.sexVAR to 1
;elseif ( GetIsSex Female == 1 )
; set DASkullofCorruption.sexVAR to 2
;endif
;if ( IsSpellTarget VampDisease == 1 )
; set DASkullofCorruption.vampVAR to 1
;endif
set DASkullofCorruption.spellworking to 1
endif
End
Begin ScriptEffectFinish
;set DASkullofCorruption.spellworking to 0
;set DASkullofCorruption.raceVAR to 0
;set DASkullofCorruption.sexVAR to 0
;set DASkullofCorruption.changeOnce to 0
;set DASkullofCorruption.goAway to 1
End