# pregnancyThresholdArrayDeclaration
humanImpregnationThreshold=95 &!probability that an human gets impregnated integer 0 to 100
elfImpregnationThreshold=90 &!probability that an elf gets impregnated integer 0 to 100
goblinImpregnationTreshold=95 &!probability that a goblin gets impregnated integer 0 to 100
impregnationThresholdArray['human']=humanImpregnationThreshold
impregnationThresholdArray['elf']=elfImpregnationThreshold
impregnationThresholdArray['goblin']=goblinImpregnationTreshold
---pregnancyThresholdArrayDeclaration---
# impregnationArrayDeclaration
humanPregnancyLength=90 &!length of pregnancy for a human baby integer
demonPregnancyLength=30 &!length of pregnancy for a demon baby integer
goblinPregnancyLength=7 &!length of pregnancy for a goblin baby integer
minotaurPregnancyLength=14 &!length of pregnancy for a minotaur baby integer
orcPregnancyLength=21 &!length of pregnancy for a orc baby integer
sandwPregnancyLength=21 &!length of pregnancy for a sandworm baby integer
wolfPregnancyLength=7 &!length of pregnancy for a wolf baby integer
werewolfPregnancyLength=7 &!length of pregnancy for a werewolf baby integer
impregnationArray['human']=('human',humanPregnancyLength,'none')
impregnationArray['demon']=('demon',demonPregnancyLength,'none')
impregnationArray['goblin']=('goblin',goblinPregnancyLength,'none')
impregnationArray['minotaur']=('minotaur',minotaurPregnancyLength,'none')
impregnationArray['orc']=('orc',orcPregnancyLength,'none')
impregnationArray['sandworm']=('sandworm',sandwPregnancyLength,'none')
impregnationArray['wolf']=('wolf',wolfPregnancyLength,'beastMasterMutation')
impregnationArray['werewolf']=('werewsolf',werewolfPregnancyLength,'beastMasterMutation')
---impregnationArrayDeclaration---
# preg
if womb=0:
!check if pregnant
if isOnContraception=1:
!check if on contraception or not
if rand(0,100)>=pregnancyThresholdArray[$race]:
!rand check compared to how fertile the race is
if $impregnationArray[$arg[0]](2)='none' or dynamic($impregnationArray[$arg[0]](2)=1:
!special condition of impregnation test
womb=1
pregnantCounter+=1
$pregnancyType=$impregnationArray[$arg[0]](0)
dayBeforeBirth=impregnationArray[$arg[0]](1)
end
end
end
end
if BroodMotherMutation=1:
dayBeforeBirth=dayBeforeBirth/3
end
---Preg---