Scriptname AAAMashiraBrainWashEffectScript extends activemagiceffect  

VoiceType Property ChildVoiceTypeM  Auto  

VoiceType Property ChildVoiceF  Auto  

Faction Property PotentialAdoptableFaction  Auto  

Event OnEffectStart(Actor Target, Actor Caster)
	


	;if Target.GetActorBase().GetSex() == 0
		;Target.GetActorBase().SetVoiceType(ChildVoiceTypeM)
		;Target.SetFactionRank(PotentialAdoptableFaction, 3)
	;else
		;if Target.GetActorBase().GetSex() == 1
		;Target.GetActorBase().SetVoiceType(ChildVoiceF)
		;Target.SetFactionRank(PotentialAdoptableFaction, 3)
             ;endif
	;endif
	String ActorName = Target.GetActorBase().Getname()
	Target.SetFactionRank(PotentialAdoptableFaction, 3)
	debug.notification(ActorName + "  is convinced his it's orphans")
    ;Target.AddSpell(AdoptableAB)
EndEvent

Spell Property AdoptableAB  Auto  
