{
	"cmd" : 
	[
		["actor_name", "$self"],
		["set", "$9", "$$"],
		["actor_getgender","$self"],
		["set","$3","$$"],

		["set","$6","0"],
		["actor_isvalid", "$partner"],
		["if", "$$", "=", "0", "nopartner"],
			["set","$6","1"],
			["actor_name", "$partner"],
			["set", "$8", "$$"],
		[":","nopartner"],
		

		["if", "$3", "=", "2","iscreature"],
		["if", "$3", "=", "1","isfemale"],

			["actor_race", "$self", ""],
			["set", "$1", "$$"],

			["set","$7", "cum alchemy.esp:191552"],
			["if", "$1", "&=", "High Elf", "giveit"],

			["set","$7", "cum alchemy.esp:191548"],
			["if", "$1", "&=", "Argonian", "giveit"],

			["set","$7", "cum alchemy.esp:191550"],
			["if", "$1", "&=", "Wood Elf", "giveit"],

			["set","$7", "cum alchemy.esp:191546"],
			["if", "$1", "&=", "Breton", "giveit"],

			["set","$7", "cum alchemy.esp:191551"],
			["if", "$1", "&=", "Dark Elf", "giveit"],

			["set","$7", "cum alchemy.esp:191547"],
			["if", "$1", "&=", "Khajiit", "giveit"],

			["set","$7", "cum alchemy.esp:191543"],
			["if", "$1", "&=", "Nord", "giveit"],

			["set","$7", "cum alchemy.esp:191544"],
			["if", "$1", "&=", "Imperial", "giveit"],

			["set","$7", "cum alchemy.esp:191549"],
			["if", "$1", "&=", "Orc", "giveit"],

			["set","$7", "cum alchemy.esp:191545"],
			["if", "$1", "&=", "Redguard", "giveit"], 

			["set","$1","Argonian"],
			["set","$7", "cum alchemy.esp:191548"],
			["actor_haskeyword", "$self", "ActorProxyArgonian"],
			["if", "$$", "=", "1", "giveit"],

			["set","$1","Breton"],
			["set","$7", "cum alchemy.esp:191546"],
			["actor_haskeyword", "$self", "ActorProxyBreton"],
			["if", "$$", "=", "1", "giveit"],

			["set","$1","Bosmer"],
			["set","$7", "cum alchemy.esp:191550"],
			["actor_haskeyword", "$self", "ActorProxyWoodElf"],
			["if", "$$", "=", "1", "giveit"],

			["set","$1","Dunmer"],
			["set","$7", "cum alchemy.esp:191551"],
			["actor_haskeyword", "$self", "ActorProxyDarkElf"],
			["if", "$$", "=", "1", "giveit"],

			["set","$1","Khajiit"],
			["set","$7", "cum alchemy.esp:191547"],
			["actor_haskeyword", "$self", "ActorProxyKhajiit"],
			["if", "$$", "=", "1", "giveit"],

			["set","$1","Imperial"],
			["set","$7", "cum alchemy.esp:191544"],
			["actor_haskeyword", "$self", "ActorProxyImperial"],
			["if", "$$", "=", "1", "giveit"],

			["set","$1","Nord"],
			["set","$7", "cum alchemy.esp:191543"],
			["actor_haskeyword", "$self", "ActorProxyNord"],
			["if", "$$", "=", "1", "giveit"],

			["set","$1","Orsimer"],
			["set","$7", "cum alchemy.esp:191549"],
			["actor_haskeyword", "$self", "ActorProxyOrc"],
			["if", "$$", "=", "1", "giveit"],

			["set","$1","Redguard"],
			["set","$7", "cum alchemy.esp:191545"],
			["actor_haskeyword", "$self", "ActorProxyRedguard"],
			["if", "$$", "=", "1", "giveit"],
		
["msg_notify", "actor_race ","$9"," ","$1"],
			["set","$1","Unknown Race"],
			["set","$7", "cum alchemy.esp:4257119"],
			["goto", "giveit"], 

		[":","isfemale"],
			["set", "$4", "ZaZAnimationPack.esm:159072"],
			["item_equip", "$self", "$4", "0", "1"],
			["actor_qnnu", "$self"],
			["util_wait", "5"],
			["item_unequipex", "$self", "$4", "0"],
			["item_remove", "$self", "$4", "1", "1"],	
			["goto", "exit"],


		[":","iscreature"],

			["actor_race", "$self", "SL"],
			["set", "$1", "$$"],

			["if", "$1", "&=", "Canines", "Canine"],

			["set", "$7", "cum alchemy.esp:191553" ],
			["if", "$1", "&=", "Ashhoppers", "giveit"],

			["set", "$7", "cum alchemy.esp:3429" ],
			["if", "$1", "&=", "Bears", "giveit"],

			["set", "$7", "cum alchemy.esp:191538" ],
			["if", "$1", "&=", "Chaurus", "giveit"],

			["set", "$7", "cum alchemy.esp:191539" ],
			["if", "$1", "&=", "ChaurusHunters", "giveit"],

			["set", "$7", "cum alchemy.esp:108558" ],
			["if", "$1", "&=", "Cows", "giveit"],

			["set", "$7", "cum alchemy.esp:108555" ],
			["if", "$1", "&=", "Deers", "giveit"],

			["set", "$7", "cum alchemy.esp:108557" ],
			["if", "$1", "&=", "Dogs", "giveit"],

			["set", "$7", "cum alchemy.esp:3427" ],
			["if", "$1", "&=", "Dragons", "giveit"],

			["set", "$7", "cum alchemy.esp:3451" ],
			["if", "$1", "&=", "Draugrs", "giveit"],

			["set", "$7", "skyrim.esm:987584" ],
			["if", "$1", "&=", "DwarvenBallistas", "giveit"],
			["if", "$1", "&=", "DwarvenCenturions", "giveit"],
			["if", "$1", "&=", "DwarvenSpheres", "giveit"],
			["if", "$1", "&=", "DwarvenSpiders", "giveit"],

			["set", "$7", "cum alchemy.esp:3453" ],
			["if", "$1", "&=", "Falmers", "giveit"],

			["set", "$7", "cum alchemy.esp:3455" ],
			["if", "$1", "&=", "Gargoyles", "giveit"],

			["set", "$7", "cum alchemy.esp:3433" ],
			["if", "$1", "&=", "Giants", "giveit"],

			["set", "$7", "cum alchemy.esp:108561" ],
			["if", "$1", "&=", "Goats", "giveit"],

			["set", "$7", "cum alchemy.esp:170786" ],
			["if", "$1", "&=", "Horkers", "giveit"],

			["set", "$7", "cum alchemy.esp:3435" ],
			["if", "$1", "&=", "Horses", "giveit"],

			["set", "$7", "cum alchemy.esp:3457" ],
			["if", "$1", "&=", "Lurkers", "giveit"],

			["set", "$7", "cum alchemy.esp:170788" ],
			["if", "$1", "&=", "Mammoths", "giveit"],

			["set", "$7", "cum alchemy.esp:191540" ],
			["if", "$1", "&=", "Netches", "giveit"],

			["set", "$7", "cum alchemy.esp:170774" ],
			["if", "$1", "&=", "Rabbits", "giveit"],

			["set", "$7", "cum alchemy.esp:3441" ],
			["if", "$1", "&=", "Rieklings", "giveit"],

			["set", "$7", "cum alchemy.esp:3437" ],
			["if", "$1", "&=", "Sabrecats", "giveit"],

			["set", "$7", "cum alchemy.esp:3443" ],
			["if", "$1", "&=", "Seekers", "giveit"],

			["set", "$7", "cum alchemy.esp:191542" ],
			["if", "$1", "&=", "Skeevers", "giveit"],

			["set", "$7", "cum alchemy.esp:3447" ],
			["if", "$1", "&=", "Spriggans", "giveit"],

			["set", "$7", "cum alchemy.esp:3439" ],
			["if", "$1", "&=", "Trolls", "giveit"],

			["set", "$7", "cum alchemy.esp:3449" ],
			["if", "$1", "&=", "Werewolves", "giveit"],

			["set", "$7", "cum alchemy.esp:3431" ],
			["if", "$1", "&=", "Wolves", "giveit"],

			["set","$1","Ash Spawn"],
			["set", "$7", "cum alchemy.esp:191541" ],
			["actor_infaction", "$self", "dragonborn.esm:67221051"],
			["if", "$$", "=", "1", "giveit"],

			["set","$1","Dremora"],
			["set", "$7", "cum alchemy.esp:170792" ],
			["actor_infaction", "$self", "skyrim.esm:275863"],
			["if", "$$", "=", "1", "giveit"],

			["set","$1","Skeleton"],
			["set", "$7", "cum alchemy.esp:25576" ],
			["actor_infaction", "$self", "skyrim.esm:184799"],
			["if", "$$", "=", "1", "giveit"],

			["set","$1","Spider"],
			["set", "$7", "cum alchemy.esp:3459" ],
			["actor_infaction", "$self", "skyrim.esm:170367"],
			["if", "$$", "=", "1", "giveit"],

[":", "Unknown"],
["actor_race", "$self", "SL"],
["msg_notify", "actor_race/SL ","$9"," ","$$","/","$1"],

			["set","$1","Unknown Race"],
			["set", "$7", "cum alchemy.esp:4257119" ],
			["goto", "giveit"], 

			[":", "Canine"],
["actor_race", "$self", "SL"],
["msg_notify", "actor_race/SL ","$9"," ","$$","/","$1"],
			
			["set","$1","Wolf"],
			["set", "$7", "cum alchemy.esp:3431" ],
			["actor_infaction", "$self", "skyrim.esm:255633"],
			["if", "$$", "=", "1", "giveit"], 
			["actor_race", "$self", ""],
			["if", "$$", "=", "WolfRace", "giveit"],
			["actor_haskeyword", "$partner", "CA_CreatureTypeWolf"],
			["if", "$$", "=", "1", "giveit"],

			["set","$1","Dog"],
			["actor_infaction", "$self", "skyrim.esm:275862"],
			["if", "$$", "=", "1", "giveit"],
			["actor_race", "$self", ""],
			["if", "$$", "=", "DogRace", "giveit"],
			["actor_haskeyword", "$partner", "CA_CreatureTypeDog"],
			["if", "$$", "=", "1", "giveit"],

			["goto", "Unknown"], 

		[":","giveit"],
			["if","$6","=","0","solo"],
			["item_add", "$partner", "$7", "1", "0"],			
			["msg_notify", "$9", " ", "$1"," vial -> ", "$8"],
			["goto","exit"],

		[":","solo"],
			["item_add", "$self", "$7", "1", "0"],			
			["msg_notify", "$9", " ", "$1"," vial -> ", "himself"],
			["goto","exit"],

		[":","exit"]

	]
}
