Guest User

Untitled

a guest
Dec 15th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 KB | None | 0 0
  1. # Targetted decisions are possible vs _all_ other characters and shown are in the Diplomacy View, not the Intrigue View. The taker is in the FROM scope.
  2. #
  3. # filter = [self/court/home_court/vassals/sub_realm/realm/dynasty/all] ('self' MUST be set for decisions targetting only the taker, the other filter types can be set to lessen CPU load)
  4. # ai_target_filter = [self/court/home_court/vassals/sub_realm/realm/dynasty/all] (which characters for which the AI evaluates the decision.)
  5. # court: all characters in the AI's host court, including prisoners, and characters currently away (wards, prisoners, etc)
  6. # home_court: all characters in the AI's home court, including prisoners, and characters currently away (wards, prisoners, etc)
  7. # vassals: direct vassal rulers of the AI's employer
  8. # sub_realm: all characters below the AI's employer
  9. # realm: all characters in the same top realm as the AI
  10. # dynasty: all members of the same dynasty
  11. # all: all living characters (Avoid if possible. VERY CPU-HEAVY!)
  12. #
  13.  
  14. targetted_decisions = {
  15. declare_rival = {
  16. ai_target_filter = realm
  17. filter = realm
  18. from_potential = {
  19. NOT = {num_of_rivals = 3}
  20.  
  21. age = 16
  22. }
  23. potential = {
  24. ai = yes
  25. NOT = {
  26. is_rival = FROM
  27. is_friend = FROM
  28. is_lover = FROM
  29. }
  30. age = 16
  31. }
  32. allow = {
  33. prisoner = no
  34. is_within_diplo_range = FROM
  35. NOT = {
  36. opinion = {
  37. who = FROM
  38. value = -50
  39. }
  40. reverse_opinion = {
  41. who = FROM
  42. value = -50
  43. }
  44. }
  45. NOT = {
  46. num_of_rivals = 20
  47. }
  48. }
  49. effect = {
  50. add_rival = FROM
  51. }
  52. revoke_allowed = {
  53. always = no
  54. }
  55. ai_will_do = {
  56. factor = 0.1
  57. }
  58. }
  59.  
  60. attempt_befriend = {
  61. ai_target_filter = realm
  62. filter = realm
  63. from_potential = {
  64.  
  65.  
  66. age = 16
  67. NOT = {
  68. has_character_modifier = befriend_wait
  69. num_of_friends = 3
  70. }
  71. }
  72. potential = {
  73. ai = yes
  74. NOT = {
  75. is_rival = FROM
  76. is_friend = FROM
  77. is_lover = FROM
  78. }
  79.  
  80. age = 16
  81. }
  82. allow = {
  83. prisoner = no
  84. is_within_diplo_range = FROM
  85. opinion = {
  86. who = FROM
  87. value = 0
  88. }
  89. NOT = {
  90. num_of_friends = 10
  91. }
  92. }
  93. effect = {
  94. FROM = {
  95. add_character_modifier = {
  96. name = befriend_wait
  97. days = 30
  98. }
  99. }
  100. if = {
  101. limit = {
  102. opinion = {
  103. who = FROM
  104. value = 0
  105. }
  106. NOT = {
  107. opinion = {
  108. who = FROM
  109. value = 10
  110. }
  111. }
  112. }
  113. random = {
  114. chance = 5
  115. add_friend = FROM
  116. }
  117. }
  118. if = {
  119. limit = {
  120. opinion = {
  121. who = FROM
  122. value = 10
  123. }
  124. NOT = {
  125. opinion = {
  126. who = FROM
  127. value = 30
  128. }
  129. }
  130. }
  131. random = {
  132. chance = 20
  133. add_friend = FROM
  134. }
  135. }
  136. if = {
  137. limit = {
  138. opinion = {
  139. who = FROM
  140. value = 30
  141. }
  142. NOT = {
  143. opinion = {
  144. who = FROM
  145. value = 50
  146. }
  147. }
  148. }
  149. random = {
  150. chance = 30
  151. add_friend = FROM
  152. }
  153. }
  154. if = {
  155. limit = {
  156. opinion = {
  157. who = FROM
  158. value = 50
  159. }
  160. NOT = {
  161. opinion = {
  162. who = FROM
  163. value = 70
  164. }
  165. }
  166. }
  167. random = {
  168. chance = 50
  169. add_friend = FROM
  170. }
  171. }
  172. if = {
  173. limit = {
  174. opinion = {
  175. who = FROM
  176. value = 70
  177. }
  178. NOT = {
  179. opinion = {
  180. who = FROM
  181. value = 90
  182. }
  183. }
  184. }
  185. random = {
  186. chance = 70
  187. add_friend = FROM
  188. }
  189. }
  190. if = {
  191. limit = {
  192. opinion = {
  193. who = FROM
  194. value = 90
  195. }
  196. NOT = {
  197. opinion = {
  198. who = FROM
  199. value = 100
  200. }
  201. }
  202. }
  203. random = {
  204. chance = 90
  205. add_friend = FROM
  206. }
  207. }
  208. if = {
  209. limit = {
  210. opinion = {
  211. who = FROM
  212. value = 100
  213. }
  214. }
  215. random = {
  216. chance = 100
  217. add_friend = FROM
  218. }
  219. }
  220. }
  221.  
  222. revoke_allowed = {
  223. always = no
  224. }
  225. ai_will_do = {
  226. factor = 0.1
  227. }
  228.  
  229. }
  230.  
  231. attempt_befriend2 = {
  232. ai_target_filter = all
  233. filter = all
  234. from_potential = {
  235. ai = yes
  236. age = 16
  237. is_ruler = yes
  238. NOT = {
  239. num_of_friends = 3
  240. has_character_modifier = befriend_wait
  241. }
  242. }
  243. potential = {
  244.  
  245. ai = yes
  246. NOT = {
  247. is_rival = FROM
  248. is_friend = FROM
  249. is_lover = FROM
  250. }
  251.  
  252. age = 16
  253. }
  254. allow = {
  255. is_ruler = yes
  256. prisoner = no
  257. is_within_diplo_range = FROM
  258. opinion = {
  259. who = FROM
  260. value = 0
  261. }
  262. NOT = {
  263. num_of_friends = 10
  264. }
  265. }
  266. effect = {
  267. FROM = {
  268. add_character_modifier = {
  269. name = befriend_wait
  270. days = 30
  271. }
  272. }
  273. if = {
  274. limit = {
  275. opinion = {
  276. who = FROM
  277. value = 0
  278. }
  279. NOT = {
  280. opinion = {
  281. who = FROM
  282. value = 10
  283. }
  284. }
  285. }
  286. random = {
  287. chance = 5
  288. add_friend = FROM
  289. }
  290. }
  291. if = {
  292. limit = {
  293. opinion = {
  294. who = FROM
  295. value = 10
  296. }
  297. NOT = {
  298. opinion = {
  299. who = FROM
  300. value = 30
  301. }
  302. }
  303. }
  304. random = {
  305. chance = 20
  306. add_friend = FROM
  307. }
  308. }
  309. if = {
  310. limit = {
  311. opinion = {
  312. who = FROM
  313. value = 30
  314. }
  315. NOT = {
  316. opinion = {
  317. who = FROM
  318. value = 50
  319. }
  320. }
  321. }
  322. random = {
  323. chance = 30
  324. add_friend = FROM
  325. }
  326. }
  327. if = {
  328. limit = {
  329. opinion = {
  330. who = FROM
  331. value = 50
  332. }
  333. NOT = {
  334. opinion = {
  335. who = FROM
  336. value = 70
  337. }
  338. }
  339. }
  340. random = {
  341. chance = 50
  342. add_friend = FROM
  343. }
  344. }
  345. if = {
  346. limit = {
  347. opinion = {
  348. who = FROM
  349. value = 70
  350. }
  351. NOT = {
  352. opinion = {
  353. who = FROM
  354. value = 90
  355. }
  356. }
  357. }
  358. random = {
  359. chance = 70
  360. add_friend = FROM
  361. }
  362. }
  363. if = {
  364. limit = {
  365. opinion = {
  366. who = FROM
  367. value = 90
  368. }
  369. NOT = {
  370. opinion = {
  371. who = FROM
  372. value = 100
  373. }
  374. }
  375. }
  376. random = {
  377. chance = 90
  378. add_friend = FROM
  379. }
  380. }
  381. if = {
  382. limit = {
  383. opinion = {
  384. who = FROM
  385. value = 100
  386. }
  387. }
  388. random = {
  389. chance = 100
  390. add_friend = FROM
  391. }
  392. }
  393. }
  394.  
  395. revoke_allowed = {
  396. always = no
  397. }
  398. ai_will_do = {
  399. factor = 0.1
  400. }
  401.  
  402. }
Advertisement
Add Comment
Please, Sign In to add comment