Guest User

Untitled

a guest
Sep 17th, 2020
1,446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.20 KB | None | 0 0
  1. #################
  2. # Weight
  3. ################
  4. #These values are used to calculate the target weight that characters will trend towards once every three years
  5.  
  6. underweight_threshold = 0
  7. overweight_threshold = 0
  8.  
  9. feast_weight_modifier_value = 7
  10. hunt_weight_modifier_value = -4
  11.  
  12. character_weight_base_value = {
  13. add = 0
  14. #Any modifiers that will affect weight?
  15. if = {
  16. limit = {
  17. has_character_modifier = gaining_weight_modifier
  18. }
  19. add = 35
  20. }
  21. if = {
  22. limit = {
  23. has_character_modifier = losing_weight_modifier
  24. }
  25. add = -35
  26. }
  27. if = {
  28. limit = {
  29. has_character_modifier = fasting_bad_modifier
  30. }
  31. add = -10
  32. }
  33.  
  34. #Any activities attended/other things that will affect weight?
  35. if = {
  36. limit = {
  37. has_variable = character_weight_variable
  38. }
  39. add = var:character_weight_variable
  40. }
  41.  
  42. # PRISON/STARVATION
  43. if = {
  44. limit = {
  45. is_imprisoned = yes
  46. }
  47. if = {
  48. limit = {
  49. is_in_prison_type = dungeon
  50. }
  51. add = -75
  52. }
  53. else = {
  54. add = -20
  55. }
  56. }
  57.  
  58. # DISEASE
  59. if = {
  60. limit = {
  61. has_trait = consumption
  62. }
  63. add = -75
  64. }
  65. if = {
  66. limit = {
  67. has_trait = cancer
  68. }
  69. add = -50
  70. }
  71. if = {
  72. limit = {
  73. has_trait = great_pox
  74. }
  75. add = -35
  76. }
  77. if = {
  78. limit = {
  79. has_trait = leper
  80. }
  81. add = -15
  82. }
  83.  
  84. ########
  85. #Trait check
  86. ########
  87. #ADD
  88. if = {
  89. limit = { has_trait = gluttonous }
  90. add = 50
  91. }
  92. if = {
  93. limit = { has_trait = lazy }
  94. add = 35
  95. }
  96. if = {
  97. limit = { has_trait = comfort_eater }
  98. add = 25
  99. }
  100. if = {
  101. limit = { has_trait = drunkard }
  102. add = 20
  103. }
  104. if = {
  105. limit = { has_trait = hashishiyah }
  106. add = 20
  107. }
  108. if = {
  109. limit = { has_trait = gregarious }
  110. add = 20
  111. }
  112. if = {
  113. limit = { has_trait = greedy }
  114. add = 15
  115. }
  116. if = {
  117. limit = { has_trait = calm }
  118. add = 15
  119. }
  120. if = {
  121. limit = { has_trait = trusting }
  122. add = 15
  123. }
  124. if = {
  125. limit = { has_trait = patient }
  126. add = 10
  127. }
  128. if = {
  129. limit = { has_trait = arrogant }
  130. add = 10
  131. }
  132. if = {
  133. limit = { has_trait = ambitious }
  134. add = 10
  135. }
  136.  
  137. if = {
  138. limit = {
  139. has_trait = lifestyle_reveler
  140. }
  141. if = {
  142. limit = {
  143. has_trait = reveler_3
  144. }
  145. add = 15
  146. }
  147. else_if = {
  148. limit = {
  149. has_trait = reveler_2
  150. }
  151. add = 10
  152. }
  153. else = {
  154. add = 5
  155. }
  156. }
  157.  
  158. if = {
  159. limit = {
  160. OR = {
  161. has_lifestyle = intrigue_lifestyle
  162. has_lifestyle = learning_lifestyle
  163. }
  164. }
  165. add = 10
  166. }
  167.  
  168. #SUBTRACT
  169. if = {
  170. limit = { has_trait = shy }
  171. add = -10
  172. }
  173. if = {
  174. limit = { has_trait = humble }
  175. add = -10
  176. }
  177. if = {
  178. limit = { has_trait = zealous }
  179. add = -10
  180. }
  181. if = {
  182. limit = { has_trait = craven }
  183. add = -10
  184. }
  185. if = {
  186. limit = { has_trait = temperate }
  187. add = -10 # Further 'moderation' impact below.
  188. }
  189. if = {
  190. limit = { has_trait = impatient }
  191. add = -15
  192. }
  193. if = {
  194. limit = { has_trait = content }
  195. add = -15
  196. }
  197. if = {
  198. limit = { has_trait = fickle}
  199. add = -15
  200. }
  201. if = {
  202. limit = { has_trait = vengeful }
  203. add = -15
  204. }
  205. if = {
  206. limit = { has_trait = generous }
  207. add = -15
  208. }
  209. if = {
  210. limit = { has_trait = diligent }
  211. add = -20 # Further 'moderation' impact below.
  212. }
  213. if = {
  214. limit = { has_trait = wrathful }
  215. add = -20
  216. }
  217. if = {
  218. limit = { has_trait = paranoid }
  219. add = -35
  220. }
  221. if = {
  222. limit = { has_trait = inappetetic }
  223. add = -50
  224. }
  225.  
  226. if = {
  227. limit = {
  228. OR = {
  229. has_lifestyle = intrigue_lifestyle
  230. has_lifestyle = learning_lifestyle
  231. }
  232. }
  233. add = -10
  234. }
  235.  
  236. # MODERATION
  237. if = {
  238. limit = {
  239. has_trait = athletic
  240. }
  241. multiply = 0.8 # Being athletic both reduces weight if overweight, and increases it if underweight.
  242. }
  243. if = {
  244. limit = {
  245. has_trait = temperate
  246. }
  247. multiply = 0.9 # Temperate as well, but to a lesser extent.
  248. }
  249. if = {
  250. limit = {
  251. has_trait = diligent
  252. }
  253. multiply = 0.9 # And Diligent.
  254. }
  255. }
  256.  
  257. base_weight_plus = {
  258. add = base_weight
  259. add = 10
  260. }
  261.  
  262. base_weight_minus = {
  263. add = base_weight
  264. add = -10
  265. }
  266.  
  267. #The actual value that will be looked at
  268. character_weight_target_value = {
  269. add = character_weight_base_value
  270.  
  271. #To even the numbers out some if you have "good" and/or active traits
  272. if = {
  273. limit = {
  274. OR = {
  275. character_weight_base_value < base_weight_minus
  276. character_weight_base_value > base_weight_plus
  277. }
  278. }
  279. if = {
  280. limit = { #You weigh too little
  281. character_weight_base_value < base_weight_minus
  282. }
  283. if = {
  284. limit = {
  285. has_trait = lifestyle_hunter
  286. }
  287. if = {
  288. limit = {
  289. has_trait = hunter_3
  290. }
  291. add = 5
  292. }
  293. if = {
  294. limit = {
  295. has_trait = hunter_2
  296. }
  297. add = 4
  298. }
  299. else = {
  300. add = 2
  301. }
  302. }
  303. if = {
  304. limit = {
  305. has_lifestyle = martial_lifestyle
  306. }
  307. add = 10
  308. }
  309. }
  310. else = { #You weigh too much
  311. if = {
  312. limit = {
  313. has_trait = lifestyle_hunter
  314. }
  315. if = {
  316. limit = {
  317. has_trait = hunter_3
  318. }
  319. add = -5
  320. }
  321. if = {
  322. limit = {
  323. has_trait = hunter_2
  324. }
  325. add = -4
  326. }
  327. else = {
  328. add = -2
  329. }
  330. }
  331. if = {
  332. limit = {
  333. has_lifestyle = martial_lifestyle
  334. }
  335. add = -10
  336. }
  337. }
  338. }
  339. }
Advertisement
Add Comment
Please, Sign In to add comment