Scriptname PlayerAliasScript extends ReferenceAliasActor Property Summoned AutoActor Property PlayerRef AutoEVENT OnSpellCast(Form akSpell)if ( akSpell ) && ( akSpell as Spell )int i = (akSpell as Spell).GetNumEffects() - 1WHILE i > -1if ( (akSpell as Spell).GetNthEffectMagicEffect(i) ) && ( (akSpell as Spell).GetNthEffectMagicEffect(i).GetAssociatedSkill() == "Conjuration" ) Summoned = FindRandomActorFromRef(PlayerRef, 500) WHILE Summoned == PlayerRef || !Summoned.IsCommandedActor() || Summoned.IsHostileToActor(PlayerRef) Summoned = FindRandomActorFromRef(PlayerRef, 500) EndWHILE Notification("Player has summoned "+Summoned.GetActorBase().GetName())endifi -= 1EndWHILEendifEndEVENT
Scriptname PlayerAliasScript extends ReferenceAliasActor Property Summoned AutoActor Property PlayerRef AutoEVENT OnSpellCast(Form akSpell)if ( akSpell ) && ( akSpell as Spell )int i = (akSpell as Spell).GetNumEffects() - 1WHILE i > -1if ( (akSpell as Spell).GetNthEffectMagicEffect(i) ) && ( (akSpell as Spell).GetNthEffectMagicEffect(i).GetAssociatedSkill() == "Conjuration" ) Summoned = FindRandomActorFromRef(PlayerRef, 500) WHILE Summoned == PlayerRef || !Summoned.IsCommandedActor() || Summoned.IsHostileToActor(PlayerRef) Summoned = FindRandomActorFromRef(PlayerRef, 500) EndWHILE Notification("Player has summoned "+Summoned.GetActorBase().GetName())endifi -= 1EndWHILEendifEndEVENT