Advertisement
ensiferum888

Event_Pregnancies

Sep 21st, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. Event{
  2. id = 5
  3. description = hidden
  4.  
  5. MTTH = {
  6. months = 3
  7. modifier = {
  8. has_trait = lustful
  9. factor = 0.33
  10. }
  11. modifier = {
  12. has_trait = chaste
  13. factor = 2
  14. }
  15. }
  16.  
  17. random_chance = {
  18. chance = 0.1
  19. modifier = {
  20. has_trait = lustful
  21. factor = 2.5
  22. }
  23. }
  24.  
  25. Conditions{
  26. not_trait = infertile
  27. not_trait = pregnant
  28. }
  29.  
  30. #This event will only have one possible response depending on the husband
  31. Response{
  32. name = Ok!
  33. Conditions{
  34. spouse = {
  35. not_trait = infertile
  36. }
  37. }
  38. Actions{
  39. add_trait = pregnant
  40. send_event = 6
  41. }
  42. }
  43.  
  44. Response{
  45. name = Ok!
  46. Conditions{
  47. spouse = {
  48. has_trait= infertile
  49. }
  50. }
  51. Actions{
  52. random_list = {
  53. 0.1 = {
  54. send_event = 7
  55. }
  56. }
  57. }
  58. }
  59.  
  60. Response{
  61. name = Ok!
  62. Conditions{
  63. spouse_alive = no
  64. }
  65. Actions{
  66. random_list = {
  67. 0.1 = {
  68. send_event = 7
  69. }
  70. }
  71. }
  72. }
  73. };
  74.  
  75. Event{
  76. id = 6
  77. description = hidden
  78. trigger_only = yes
  79.  
  80. MTTH = {
  81. months = 9
  82. }
  83.  
  84. Response{
  85. name = Ok!
  86. Actions{
  87. random_list = {
  88. 0.85 = {
  89. have_kid = yes
  90. }
  91. 0.15 = {
  92. have_kid = no
  93. }
  94. }
  95. remove_trait = pregnant
  96. }
  97. }
  98. };
  99.  
  100. Event{
  101. id = 7
  102. description = hidden
  103. trigger_only = yes
  104.  
  105. MTTH = {
  106. months = 9
  107. }
  108.  
  109. Conditions{
  110. #any_person will just fetch every one
  111. any_person = {
  112. #will return true if at least one of them matches these conditions
  113. limit = {
  114. male = yes
  115. has_trait = lustful
  116. not_trait = infertile
  117. }
  118. }
  119. }
  120.  
  121. Response{
  122. name = Ok!
  123. Actions{
  124. #Get all villagers
  125. random_person = {
  126. #find one male who's lustful
  127. limit = {
  128. male = yes
  129. has_trait = lustful
  130. not_trait = infertile
  131. }
  132. set_character_flag = fathered_bastard
  133. }
  134. #now we can send back the actual get pregnant event
  135. send_event = 6
  136. }
  137. }
  138. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement