;/ Decompiled by Champollion V1.0.1
Source   : NA_AnimalSexNoQuest.psc
Modified : 2014-12-29 22:08:40
Compiled : 2015-01-04 16:30:55
User     : Markus
Computer : MARKUS-PC
/;
scriptName NA_AnimalSexNoQuest extends ReferenceAlias

;-- Properties --------------------------------------
race property FrostbiteSpiderRace auto
race property FalmerRace auto
race property SkavenRace auto
race property DogRace auto
race property WolfRace auto
race property HorseRace auto
race property BearRace auto
race property SabreCatSnowyRace auto
race property TrollRace auto
race property ChaurusRace auto
race property SkeeverRace auto

actor property PlayerRef auto
message property NA_StartSexOption auto
message property NA_StartSexOptionSpider auto
message property NA_StartSexOptionSkaven auto
sexlabframework property SexLab auto
globalvariable property NA_JobActive auto
actor property NA_AM_Spider auto
actor property NA_AM_Spider2 auto
actor property NA_AM_Skeever01 auto
actor property NA_AM_Skeever02 auto
actor property NA_AM_Skeever03 auto
actor property NA_AM_Skeever04 auto
actor property NA_QST_Falmer auto
actor property NA_QST_Falmer2 auto
actor property NA_QST_Falmer3 auto
actor property NA_QST_Falmer4 auto
actor property NA_AM_Dog auto
actor property NA_AM_Dog2 auto
actor property NA_AM_Wlof2 auto
actor property NA_AM_Horse2 auto
actor property NA_AM_Bear2 auto
actor property NA_AM_Chaurus2 auto
actor property NA_AM_SabreCat2 auto
actor property NA_AM_Troll2 auto
actor property NA_AM_Wlof auto
actor property NA_AM_Horse auto
actor property NA_AM_Bear auto
actor property NA_AM_Chaurus auto
actor property NA_AM_SabreCat auto
actor property NA_AM_Troll auto


faction property NA_AnimalWorkFaction auto
ReferenceAlias property Animal auto

;-- Variables ---------------------------------------

;-- Functions ---------------------------------------

; Skipped compiler generated GotoState

function OnActivate(ObjectReference akActionRef)

	if akActionRef == PlayerRef as ObjectReference && NA_JobActive.GetValue() == 0 as Float
		if Animal.GetActorReference().GetFactionRank(NA_AnimalWorkFaction) == 1
			if Animal.GetActorReference().GetRace() == FrostbiteSpiderRace
				Int ibutton = NA_StartSexOptionSpider.Show(0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000)
				if ibutton == 0
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), none, none, none, none, "", "")
				elseIf ibutton == 2
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_AM_Spider2, none, none, none, "", "")
				endIf
			elseIf Animal.GetActorReference().GetRace() == DogRace
				Int ibutton = NA_StartSexOptionSpider.Show(0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000)
				if ibutton == 0
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), none, none, none, none, "", "")
				elseIf ibutton == 2
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_AM_Dog2, none, none, none, "", "")
				endIf
			elseIf Animal.GetActorReference().GetRace() == WolfRace
				Int ibutton = NA_StartSexOptionSpider.Show(0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000)
				if ibutton == 0
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), none, none, none, none, "", "")
				elseIf ibutton == 2
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_AM_Wlof2, none, none, none, "", "")
				endIf
			elseIf Animal.GetActorReference().GetRace() == HorseRace
				Int ibutton = NA_StartSexOptionSpider.Show(0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000)
				if ibutton == 0
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), none, none, none, none, "", "")
				elseIf ibutton == 2
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_AM_Horse2, none, none, none, "", "")
				endIf
			elseIf Animal.GetActorReference().GetRace() == BearRace
				Int ibutton = NA_StartSexOptionSpider.Show(0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000)
				if ibutton == 0
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), none, none, none, none, "", "")
				elseIf ibutton == 2
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_AM_Bear2, none, none, none, "", "")
				endIf
			elseIf Animal.GetActorReference().GetRace() == ChaurusRace
				Int ibutton = NA_StartSexOptionSpider.Show(0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000)
				if ibutton == 0
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), none, none, none, none, "", "")
				elseIf ibutton == 2
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_AM_Chaurus2, none, none, none, "", "")
				endIf
			elseIf Animal.GetActorReference().GetRace() == SabreCatSnowyRace
				Int ibutton = NA_StartSexOptionSpider.Show(0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000)
				if ibutton == 0
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), none, none, none, none, "", "")
				elseIf ibutton == 2
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_AM_SabreCat2, none, none, none, "", "")
				endIf
			elseIf Animal.GetActorReference().GetRace() == TrollRace
				Int ibutton = NA_StartSexOptionSpider.Show(0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000)
				if ibutton == 0
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), none, none, none, none, "", "")
				elseIf ibutton == 2
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_AM_Troll2, none, none, none, "", "")
				endIf

			elseIf  Animal.GetActorReference().GetRace() == SkavenRace || Animal.GetActorReference().GetRace() == SkeeverRace
				Int ibutton = NA_StartSexOptionSkaven.Show(0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000)
				if ibutton == 0
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), none, none, none, none, "", "")
				elseIf ibutton == 2
						SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_AM_Skeever02, none, none, none, "", "")				
				elseIf ibutton == 3
						SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_AM_Skeever02, NA_AM_Skeever03, none, none, "", "")				
				elseIf ibutton == 4
						SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_AM_Skeever02, NA_AM_Skeever03, NA_AM_Skeever04, none, "", "")
				endIf

			elseIf Animal.GetActorReference().GetRace() == FalmerRace
				Int ibutton = NA_StartSexOptionSkaven.Show(0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000)
				if ibutton == 0
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), none, none, none, none, "", "")
				elseIf ibutton == 2
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_QST_Falmer2, none, none, none, "", "")
				elseIf ibutton == 3
						SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_QST_Falmer2, NA_QST_Falmer3, none, none, "", "")				
				elseIf ibutton == 4
						SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), NA_QST_Falmer2, NA_QST_Falmer3, NA_QST_Falmer4, none, "", "")
				endIf

			else 
				Int iButton = NA_StartSexOption.Show(0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000)
				if iButton == 0
					SexLab.QuickStart(PlayerRef, Animal.GetActorReference(), none, none, none, none, "", "")
				endIf

			endIf
		endIf
	endIf
endFunction

; Skipped compiler generated GetState
