1
0

fame.qsrc 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. # fame
  2. !!For adding to the PC fame; using the following type of gosub call fame will be added,
  3. !!and the spread of fame over the regions will be taken care of:
  4. !!gs 'fame', 'location', 'act ', ' value', 'local'
  5. !!$ARGS[0] is for the main location for the activity that gives the fame,
  6. !!remember that the algorithm below will take care of the spread of fame to the other locations,
  7. !!so for a given event you need to decide which is the main location and call the gosub using this location.
  8. !!IMPORTANT do not call this gosub for different location for the same event, the algorithm will take care of the fame being added the other locations.
  9. !!The following locations are possible: pav, city, pushkin or village
  10. !!If it is something that is supposed to make the PC famous in all the locations use the location city.
  11. !!$ARGS[1] is for the act that is adding to fame, listed below:
  12. !!acting, dance, painting, music, ballet, modelling, porn, stripping, prostitute, sex, kickboxing, running, volleyball, chess, teaching
  13. !!ARGS[2] is the value of the increase this can be an integer or one on the following keywords:
  14. !!tiny (Adding a small amount of fame which even at low level of fame only will make the fame grow if the are performed daily)
  15. !!small (Adding a small amount of fame, that at low level of fame will make the fame grow if done a couple times a week, but for medium levels of fame need to be done daily)
  16. !!medium (Adding a medium amount of fame, that at low level of fame can make the fame grow if done once a week, and even at high levels can make the fame grow if done daily.)
  17. !!large (Adding a large amount of fame which will make the fame grow fast at low level of fame, and even at high level of fame it will make the fame grow if performed a couple of times a week.)
  18. !!huge (Adding a large amount of fame will increase the fame drastically at low levels of fame, make it grow if done weekly at high levels of fame and even keep the fame steady at extreme levels of fame.)
  19. !!GoldMedal (Adding an extraordinary amount of fame, to be used for one time events or things that can be repeated very really, for example the PC winning the St. Burg championship in running or a talent competition in Pavlovsk.)
  20. !!SilverMedal (Adding an extraordinary amount of fame, used in the same way as GoldMedal above, but with the PC being the runner up instead of the winner.)
  21. !!BronzeMedal (Adding an extraordinary amount of fame, used in the same way as GoldMedal and SilverMedal above, but with the PC begin number 3.)
  22. !!ARGS[3] is an optional argument, which will make it so that the fame given do not spread to other locations. If ARGS[3] is not 'local' then the fame will be added so that is can spread to other regions.
  23. !!The different values of fame have the following interpretations:
  24. !! 0-100 not famous - no one knows you
  25. !! 100-200 some people know of you - if a porn star you are new and only hard core porn viewers of that niche are likely to know you
  26. !! 200-300 some people notice you - if a porn star you are new and only hard core porn viewers or those who are into the niche you are in would know you.
  27. !! 300-400 often recognized - most people who watch a lot of porn would recognize you.
  28. !! 400-500 Moderately famous - think Sasha Gray even a lot of people that do not watch porn know who she is.
  29. !! 500-700 Famous - actress in movies/tv but supporting roles in main stream tv and movies
  30. !! 700-1000 Very famous - has been a lead actress in main stream tv and movies
  31. !! Above 1000 A star - A list actress that gets top billing in their movies.
  32. !! But remember these are local fame. So this is how people in the local area sees you. Not global or even with Russian or the greater region. The fame fame spread to the other regions, so it is always
  33. !!To use the fame the call is fame['pav_dance']. Since 1000 is a soft cap on fame, DO NOT compare fame['pav_dance'] to a number higher than 1000.
  34. !!That is fame['pav_dance']> 1000 is fine but fame['pav_dance'] > 1050 should not be used.
  35. !!Sex and Prostitution fame is always local and will not spread to other locations. These are more of describing the PC reputation for these acts locally than actually being famous.
  36. !!In particular they are the component the slut fame, which is used to determine how many npc will react to the pc base on rumors.
  37. !!The sex in slut fame is for sexual encounters of a slutty nature, so things like public sex or being used for sex by the Gopniks.
  38. !!It is not for regular sex in a normal relationship and anything secret that can be subject to rumors.
  39. !!guide to values for slut fame
  40. !!talking about having sex/flirting in public = 1
  41. !!boy/girl brags about sex to his/her friends after private sex = 1
  42. !!Sveta and a boy/girl seen flirting and then going off together = 2
  43. !!Sveta and a boy/girl seen flirting and then going off together and then the boy/girl bragging a = 3
  44. !!group sex with multiple boy/girls bragging about it = 3
  45. !!Sveta and a group seen flirting and then going off together and then the boy/girls bragging a = 4
  46. !!Sveta having cum on her face in public a = 4
  47. !!Sveta seen having sex = 5
  48. !!Technical note: When gs 'fame', 'dance', 'pav' 5 is called it do not directly add 5 to fame['pav_dance'], but adds 5 to fame['pav_dance_core'] (or fame['pav_dance_local'] if the optional parameter 'local' is uesd)
  49. !!It then calculates fame['pav_dance'] using the variables fame['pav_dance_core'], fame['pav_dance_local'], fame['city_dance_core'], fame['pushkin_dance_core'] and fame['village_dance_core'].
  50. !!In particular, using the command fame['pav_dance'] += 5 will only add 5 to fame['pav_dance'] until the next time gs 'fame' is called, and then it will be forgotten. So don''t do this.
  51. !!Always use the gs 'fame', 'pav', 'dance' to add pav dance fame.
  52. !!Notice that fame['pav_dance'] and fame['pav_dance_core'] can never be a negative number, but fame['pav_dance_local'] can.
  53. !!This can be used to make fame in a location lower than it would be from spread of fame from other regions.
  54. !!For example if one would make a spell such that everybody in the village cannot remember Sveta is a model, then one could include a gs 'fame' 'village' 'modelling' -5000 'local', and then fame['village_modeling'] should always be 0.
  55. if $ARGS[0] = 'deg':
  56. !!degradation calculation applied overnight
  57. $fametown = 'pav'
  58. :famedegloop
  59. if dyneval('RESULT = fame[''<<$fametown>>_acting_core'']') > 2: dynamic 'fame[''<<$fametown>>_acting_core''] -= rand(-1,3)'
  60. if dyneval('RESULT = fame[''<<$fametown>>_dance_core'']') > 2: dynamic 'fame[''<<$fametown>>_dance_core''] -= rand(-1,3)'
  61. if dyneval('RESULT = fame[''<<$fametown>>_painting_core'']') > 2: dynamic 'fame[''<<$fametown>>_painting_core''] -= rand(-1,3)'
  62. if dyneval('RESULT = fame[''<<$fametown>>_music_core'']') > 2: dynamic 'fame[''<<$fametown>>_music_core''] -= rand(-1,3)'
  63. if dyneval('RESULT = fame[''<<$fametown>>_ballet_core'']') > 2: dynamic 'fame[''<<$fametown>>_ballet_core''] -= rand(-1,3)'
  64. if dyneval('RESULT = fame[''<<$fametown>>_modelling_core'']') > 2: dynamic 'fame[''<<$fametown>>_modelling_core''] -= rand(-1,3)'
  65. if dyneval('RESULT = fame[''<<$fametown>>_porn_core'']') > 2: dynamic 'fame[''<<$fametown>>_porn_core''] -= rand(-1,3)'
  66. if dyneval('RESULT = fame[''<<$fametown>>_stripping_core'']') > 2: dynamic 'fame[''<<$fametown>>_stripping_core''] -= rand(-1,3)'
  67. if dyneval('RESULT = fame[''<<$fametown>>_sex'']') > 2: dynamic 'fame[''<<$fametown>>_sex''] -= rand(-1,3)'
  68. if dyneval('RESULT = fame[''<<$fametown>>_prostitute'']') > 2: dynamic 'fame[''<<$fametown>>_prostitute''] -= rand(-1,3)'
  69. if dyneval('RESULT = fame[''<<$fametown>>_kickboxing_core'']') > 2: dynamic 'fame[''<<$fametown>>_kickboxing_core''] -= rand(-1,3)'
  70. if dyneval('RESULT = fame[''<<$fametown>>_running_core'']') > 2: dynamic 'fame[''<<$fametown>>_running_core''] -= rand(-1,3)'
  71. if dyneval('RESULT = fame[''<<$fametown>>_volleyball_core'']') > 2: dynamic 'fame[''<<$fametown>>_volleyball_core''] -= rand(-1,3)'
  72. if dyneval('RESULT = fame[''<<$fametown>>_chess_core'']') > 2: dynamic 'fame[''<<$fametown>>_chess_core''] -= rand(-1,3)'
  73. if dyneval('RESULT = fame[''<<$fametown>>_teaching_core'']') > 2: dynamic 'fame[''<<$fametown>>_teaching_core''] -= rand(-1,3)'
  74. if dyneval('RESULT = fame[''<<$fametown>>_media_core'']') > 2: dynamic 'fame[''<<$fametown>>_media_core''] -= rand(-1,3)'
  75. if dyneval('RESULT = fame[''<<$fametown>>_acting_local'']') > 2: dynamic 'fame[''<<$fametown>>_acting_local''] -= rand(-1,3)'
  76. if dyneval('RESULT = fame[''<<$fametown>>_dance_local'']') > 2: dynamic 'fame[''<<$fametown>>_dance_local''] -= rand(-1,3)'
  77. if dyneval('RESULT = fame[''<<$fametown>>_painting_local'']') > 2: dynamic 'fame[''<<$fametown>>_painting_local''] -= rand(-1,3)'
  78. if dyneval('RESULT = fame[''<<$fametown>>_music_local'']') > 2: dynamic 'fame[''<<$fametown>>_music_local''] -= rand(-1,3)'
  79. if dyneval('RESULT = fame[''<<$fametown>>_ballet_local'']') > 2: dynamic 'fame[''<<$fametown>>_ballet_local''] -= rand(-1,3)'
  80. if dyneval('RESULT = fame[''<<$fametown>>_modelling_local'']') > 2: dynamic 'fame[''<<$fametown>>_modelling_local''] -= rand(-1,3)'
  81. if dyneval('RESULT = fame[''<<$fametown>>_porn_local'']') > 2: dynamic 'fame[''<<$fametown>>_porn_local''] -= rand(-1,3)'
  82. if dyneval('RESULT = fame[''<<$fametown>>_stripping_local'']') > 2: dynamic 'fame[''<<$fametown>>_stripping_local''] -= rand(-1,3)'
  83. if dyneval('RESULT = fame[''<<$fametown>>_kickboxing_local'']') > 2: dynamic 'fame[''<<$fametown>>_kickboxing_local''] -= rand(-1,3)'
  84. if dyneval('RESULT = fame[''<<$fametown>>_running_local'']') > 2: dynamic 'fame[''<<$fametown>>_running_local''] -= rand(-1,3)'
  85. if dyneval('RESULT = fame[''<<$fametown>>_volleyball_local'']') > 2: dynamic 'fame[''<<$fametown>>_volleyball_local''] -= rand(-1,3)'
  86. if dyneval('RESULT = fame[''<<$fametown>>_chess_local'']') > 2: dynamic 'fame[''<<$fametown>>_chess_local''] -= rand(-1,3)'
  87. if dyneval('RESULT = fame[''<<$fametown>>_teaching_local'']') > 2: dynamic 'fame[''<<$fametown>>_teaching_local''] -= rand(-1,3)'
  88. if dyneval('RESULT = fame[''<<$fametown>>_media_local'']') > 2: dynamic 'fame[''<<$fametown>>_media_local''] -= rand(-1,3)'
  89. if $fametown = 'pav':
  90. $fametown = 'city'
  91. jump 'famedegloop'
  92. elseif $fametown = 'city':
  93. $fametown = 'village'
  94. jump 'famedegloop'
  95. elseif $fametown = 'village':
  96. $fametown = 'pushkin'
  97. jump 'famedegloop'
  98. else
  99. gs 'fame', 'calculate', 'acting'
  100. gs 'fame', 'calculate', 'dance'
  101. gs 'fame', 'calculate', 'painting'
  102. gs 'fame', 'calculate', 'music'
  103. gs 'fame', 'calculate', 'ballet'
  104. gs 'fame', 'calculate', 'modelling'
  105. gs 'fame', 'calculate', 'porn'
  106. gs 'fame', 'calculate', 'stripping'
  107. gs 'fame', 'calculate', 'kickboxing'
  108. gs 'fame', 'calculate', 'running'
  109. gs 'fame', 'calculate', 'volleyball'
  110. gs 'fame', 'calculate', 'chess'
  111. gs 'fame', 'calculate', 'teaching'
  112. gs 'fame', 'calculate', 'media'
  113. gs 'fame', 'calculateSlut'
  114. end
  115. end
  116. if $ARGS[0] = 'city' or $ARGS[0] = 'pav' or $ARGS[0] = 'pushkin' or $ARGS[0] = 'village':
  117. !!addition of fame
  118. if $ARGS[1] = 'sex' or $ARGS[1] = 'prostitute':
  119. !!addition of sex and prostitution fame
  120. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>'']') > 1000:
  121. if $ARGS[2] = 'tiny':
  122. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += 0'
  123. elseif $ARGS[2] = 'small':
  124. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += 0'
  125. elseif $ARGS[2] = 'medium':
  126. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(0,1)'
  127. elseif $ARGS[2] = 'large':
  128. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(1,2)'
  129. elseif $ARGS[2] = 'huge':
  130. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(1,4)'
  131. elseif $ARGS[2] = 'GoldMedal':
  132. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(35,45)'
  133. elseif $ARGS[2] = 'SilverMedal':
  134. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(25,35)'
  135. elseif $ARGS[2] = 'BronzeMedal':
  136. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(15,25)'
  137. else
  138. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += (<<ARGS[2]>>)/10'
  139. end
  140. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>'']') > 700:
  141. if $ARGS[2] = 'tiny':
  142. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(0,1)'
  143. elseif $ARGS[2] = 'small':
  144. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(1,2)'
  145. elseif $ARGS[2] = 'medium':
  146. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(1,4)'
  147. elseif $ARGS[2] = 'large':
  148. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(6,12)'
  149. elseif $ARGS[2] = 'huge':
  150. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(10,24)'
  151. elseif $ARGS[2] = 'GoldMedal':
  152. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(100,150)'
  153. elseif $ARGS[2] = 'SilverMedal':
  154. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(60,100)'
  155. elseif $ARGS[2] = 'BronzeMedal':
  156. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(25,60)'
  157. else
  158. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] + <<ARGS[2]>>/6') < 1000:
  159. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += (<<ARGS[2]>>)/6'
  160. else
  161. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] = 1000 + ((fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] +<<ARGS[2]>>/6 -1000)*3)/5'
  162. end
  163. end
  164. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>'']') > 400:
  165. if $ARGS[2] = 'tiny':
  166. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(1,2)'
  167. elseif $ARGS[2] = 'small':
  168. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(1,4)'
  169. elseif $ARGS[2] = 'medium':
  170. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(6,12)'
  171. elseif $ARGS[2] = 'large':
  172. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(10,24)'
  173. elseif $ARGS[2] = 'huge':
  174. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(20,50)'
  175. elseif $ARGS[2] = 'GoldMedal':
  176. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(150,200)'
  177. elseif $ARGS[2] = 'SilverMedal':
  178. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(100,150)'
  179. elseif $ARGS[2] = 'BronzeMedal':
  180. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(50,100)'
  181. else
  182. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] + <<ARGS[2]>>/3') < 700:
  183. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += (<<ARGS[2]>>)/3'
  184. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] + <<ARGS[2]>>/3') < 1300:
  185. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] = 700 + (fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] +<<ARGS[2]>>/3 -700)/2'
  186. else
  187. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] = 1000 + (((fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] +<<ARGS[2]>>/3 -700)/2 -300)*3)/5'
  188. end
  189. end
  190. else
  191. if $ARGS[2] = 'tiny':
  192. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(1,4)'
  193. elseif $ARGS[2] = 'small':
  194. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(6,12)'
  195. elseif $ARGS[2] = 'medium':
  196. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(10,24)'
  197. elseif $ARGS[2] = 'large':
  198. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(20,50)'
  199. elseif $ARGS[2] = 'huge':
  200. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(40,70)'
  201. elseif $ARGS[2] = 'GoldMedal':
  202. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(350,450)'
  203. elseif $ARGS[2] = 'SilverMedal':
  204. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(250,350)'
  205. elseif $ARGS[2] = 'BronzeMedal':
  206. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += rand(150,250)'
  207. else
  208. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] + <<ARGS[2]>>') < 400:
  209. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] += (<<ARGS[2]>>)'
  210. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] + <<ARGS[2]>>') < 1300:
  211. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] = 400 + (fame[''<<$ARGS[0]>>_<<$ARGS[1]>>'']+<<ARGS[2]>> - 400)/3'
  212. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] + <<ARGS[2]>>') < 3100:
  213. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] = 700 + ((fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] +<<ARGS[2]>> - 400)/3 - 300)/2'
  214. else
  215. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] = 1000 + ((((fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] +<<ARGS[2]>> - 400)/3 -300)/2 - 300)*3)/5'
  216. end
  217. end
  218. end
  219. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>'']') < 0: dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>''] = 0'
  220. gs 'fame', 'calculateSlut'
  221. !!main fame addition
  222. else
  223. if $ARGS[3] = 'local':
  224. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local'']') > 1000:
  225. if $ARGS[2] = 'tiny':
  226. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += 0'
  227. elseif $ARGS[2] = 'small':
  228. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += 0'
  229. elseif $ARGS[2] = 'medium':
  230. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(0,1)'
  231. elseif $ARGS[2] = 'large':
  232. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(1,2)'
  233. elseif $ARGS[2] = 'huge':
  234. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(1,4)'
  235. elseif $ARGS[2] = 'GoldMedal':
  236. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(35,45)'
  237. elseif $ARGS[2] = 'SilverMedal':
  238. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(25,35)'
  239. elseif $ARGS[2] = 'BronzeMedal':
  240. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(15,25)'
  241. else
  242. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += (<<ARGS[2]>>)/10'
  243. end
  244. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local'']') > 700:
  245. if $ARGS[2] = 'tiny':
  246. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(0,1)'
  247. elseif $ARGS[2] = 'small':
  248. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(1,2)'
  249. elseif $ARGS[2] = 'medium':
  250. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(1,4)'
  251. elseif $ARGS[2] = 'large':
  252. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(6,12)'
  253. elseif $ARGS[2] = 'huge':
  254. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(10,24)'
  255. elseif $ARGS[2] = 'GoldMedal':
  256. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(100,150)'
  257. elseif $ARGS[2] = 'SilverMedal':
  258. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(60,100)'
  259. elseif $ARGS[2] = 'BronzeMedal':
  260. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(25,60)'
  261. else
  262. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] + <<ARGS[2]>>/6') < 1000:
  263. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += (<<ARGS[2]>>)/6'
  264. else
  265. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] = 1000 + ((fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] +<<ARGS[2]>>/6 -1000)*3)/5'
  266. end
  267. end
  268. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local'']') > 400:
  269. if $ARGS[2] = 'tiny':
  270. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(1,2)'
  271. elseif $ARGS[2] = 'small':
  272. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(1,4)'
  273. elseif $ARGS[2] = 'medium':
  274. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(6,12)'
  275. elseif $ARGS[2] = 'large':
  276. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(10,24)'
  277. elseif $ARGS[2] = 'huge':
  278. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(20,50)'
  279. elseif $ARGS[2] = 'GoldMedal':
  280. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(150,200)'
  281. elseif $ARGS[2] = 'SilverMedal':
  282. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(100,150)'
  283. elseif $ARGS[2] = 'BronzeMedal':
  284. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(50,100)'
  285. else
  286. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] + <<ARGS[2]>>/3') < 700:
  287. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += (<<ARGS[2]>>)/3'
  288. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] + <<ARGS[2]>>/3') < 1300:
  289. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] = 700 + (fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] +<<ARGS[2]>>/3 -700)/2'
  290. else
  291. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] = 1000 + (((fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] +<<ARGS[2]>>/3 -700)/2 -300)*3)/5'
  292. end
  293. end
  294. else
  295. if $ARGS[2] = 'tiny':
  296. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(1,4)'
  297. elseif $ARGS[2] = 'small':
  298. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(6,12)'
  299. elseif $ARGS[2] = 'medium':
  300. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(10,24)'
  301. elseif $ARGS[2] = 'large':
  302. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(20,50)'
  303. elseif $ARGS[2] = 'huge':
  304. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(40,70)'
  305. elseif $ARGS[2] = 'GoldMedal':
  306. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(350,450)'
  307. elseif $ARGS[2] = 'SilverMedal':
  308. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(250,350)'
  309. elseif $ARGS[2] = 'BronzeMedal':
  310. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += rand(150,250)'
  311. else
  312. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] + <<ARGS[2]>>') < 400:
  313. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] += (<<ARGS[2]>>)'
  314. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] + <<ARGS[2]>>') < 1300:
  315. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] = 400 + (fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local'']+<<ARGS[2]>> - 400)/3'
  316. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] + <<ARGS[2]>>') < 3100:
  317. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] = 700 + ((fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] +<<ARGS[2]>> - 400)/3 - 300)/2'
  318. else
  319. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] = 1000 + ((((fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_local''] +<<ARGS[2]>> - 400)/3 -300)/2 - 300)*3)/5'
  320. end
  321. end
  322. end
  323. else
  324. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core'']') > 1000:
  325. if $ARGS[2] = 'tiny':
  326. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += 0'
  327. elseif $ARGS[2] = 'small':
  328. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += 0'
  329. elseif $ARGS[2] = 'medium':
  330. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(0,1)'
  331. elseif $ARGS[2] = 'large':
  332. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(1,2)'
  333. elseif $ARGS[2] = 'huge':
  334. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(1,4)'
  335. elseif $ARGS[2] = 'GoldMedal':
  336. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(35,45)'
  337. elseif $ARGS[2] = 'SilverMedal':
  338. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(25,35)'
  339. elseif $ARGS[2] = 'BronzeMedal':
  340. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(15,25)'
  341. else
  342. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += (<<ARGS[2]>>)/10'
  343. end
  344. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core'']') > 700:
  345. if $ARGS[2] = 'tiny':
  346. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(0,1)'
  347. elseif $ARGS[2] = 'small':
  348. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(1,2)'
  349. elseif $ARGS[2] = 'medium':
  350. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(1,4)'
  351. elseif $ARGS[2] = 'large':
  352. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(6,12)'
  353. elseif $ARGS[2] = 'huge':
  354. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(10,24)'
  355. elseif $ARGS[2] = 'GoldMedal':
  356. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(100,150)'
  357. elseif $ARGS[2] = 'SilverMedal':
  358. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(60,100)'
  359. elseif $ARGS[2] = 'BronzeMedal':
  360. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(25,60)'
  361. else
  362. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] + <<ARGS[2]>>/6') < 1000:
  363. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += (<<ARGS[2]>>)/6'
  364. else
  365. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] = 1000 + ((fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] +<<ARGS[2]>>/6 -1000)*3)/5'
  366. end
  367. end
  368. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core'']') > 400:
  369. if $ARGS[2] = 'tiny':
  370. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(1,2)'
  371. elseif $ARGS[2] = 'small':
  372. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(1,4)'
  373. elseif $ARGS[2] = 'medium':
  374. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(6,12)'
  375. elseif $ARGS[2] = 'large':
  376. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(10,24)'
  377. elseif $ARGS[2] = 'huge':
  378. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(20,50)'
  379. elseif $ARGS[2] = 'GoldMedal':
  380. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(150,200)'
  381. elseif $ARGS[2] = 'SilverMedal':
  382. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(100,150)'
  383. elseif $ARGS[2] = 'BronzeMedal':
  384. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(50,100)'
  385. else
  386. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] + <<ARGS[2]>>/3') < 700:
  387. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += (<<ARGS[2]>>)/3'
  388. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] + <<ARGS[2]>>/3') < 1300:
  389. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] = 700 + (fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] +<<ARGS[2]>>/3 -700)/2'
  390. else
  391. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] = 1000 + (((fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] +<<ARGS[2]>>/3 -700)/2 -300)*3)/5'
  392. end
  393. end
  394. else
  395. if $ARGS[2] = 'tiny':
  396. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(1,4)'
  397. elseif $ARGS[2] = 'small':
  398. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(6,12)'
  399. elseif $ARGS[2] = 'medium':
  400. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(10,24)'
  401. elseif $ARGS[2] = 'large':
  402. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(20,50)'
  403. elseif $ARGS[2] = 'huge':
  404. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(40,70)'
  405. elseif $ARGS[2] = 'GoldMedal':
  406. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(350,450)'
  407. elseif $ARGS[2] = 'SilverMedal':
  408. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(250,350)'
  409. elseif $ARGS[2] = 'BronzeMedal':
  410. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += rand(150,250)'
  411. else
  412. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] + <<ARGS[2]>>') < 400:
  413. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] += (<<ARGS[2]>>)'
  414. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] + <<ARGS[2]>>') < 1300:
  415. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] = 400 + (fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core'']+<<ARGS[2]>> - 400)/3'
  416. elseif dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] + <<ARGS[2]>>') < 3100:
  417. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] = 700 + ((fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] +<<ARGS[2]>> - 400)/3 - 300)/2'
  418. else
  419. dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] = 1000 + ((((fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] +<<ARGS[2]>> - 400)/3 -300)/2 - 300)*3)/5'
  420. end
  421. end
  422. end
  423. end
  424. if dyneval('RESULT = fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core'']') < 0: dynamic 'fame[''<<$ARGS[0]>>_<<$ARGS[1]>>_core''] = 0'
  425. gs 'fame', 'calculate', '<<$ARGS[1]>>'
  426. end
  427. end
  428. if $ARGS[0] = 'calculate':
  429. !! Calculates the fame after it has been modified.
  430. !!First we calculate the value of fame taking the spread of fame from the different localtions into account.
  431. !!The formulas generally works such that a little fame in one location do not effect the fame in other locations much, on the other hands if you start to become fameous in on location it will be noticed in the others.
  432. !!Especially fame in the city will be dominating if it is high. If you are a star in the city you are a star everywhere. Fame in the village on the other hand is not noticed anywhere outside Gadukino.
  433. !!First we calculate the contributions the fame in one plave will have in an other region.
  434. !!Fame from pav will spread slowly to the city, and since St. Petersburg is a very big city even being a star in pav will not get you very noticed in city.
  435. if dyneval('RESULT = fame[''pav_<<$ARGS[1]>>_core'']') >= 2000:
  436. dynamic 'fame[''pav_<<$ARGS[1]>>_contribution_low''] = 525'
  437. else
  438. dynamic 'fame[''pav_<<$ARGS[1]>>_contribution_low''] = 1050 - (42000000/((fame[''pav_<<$ARGS[1]>>_core'']/10)*(fame[''pav_<<$ARGS[1]>>_core'']/10) + 40000))'
  439. end
  440. !! Fame in the pav will spread by the same level as fame from pav spread to old town. (The formula is +(fame_pushkin*(1050-525000000/(500000+(fame_pushkin/10)^4)))/1050
  441. if dyneval('RESULT = fame[''pav_<<$ARGS[1]>>_core'']') >= 1005:
  442. dynamic 'fame[''pav_<<$ARGS[1]>>_contribution_high''] = 1005'
  443. else
  444. dynamic 'fame[''pav_<<$ARGS[1]>>_contribution_high''] = (fame[''pav_<<$ARGS[1]>>_core'']*(1050 - 525000000/(500000 + (fame[''pav_<<$ARGS[1]>>_core'']/10)*(fame[''pav_<<$ARGS[1]>>_core'']/10)*(fame[''pav_<<$ARGS[1]>>_core'']/10)*(fame[''pav_<<$ARGS[1]>>_core'']/10))))/1050'
  445. end
  446. !!The fame from pav takes even longer before it starts being noticed in the village, but after that it spread just as fast as from the city.
  447. if dyneval('RESULT = fame[''pav_<<$ARGS[1]>>_core'']') >= 2000:
  448. dynamic 'fame[''pav_<<$ARGS[1]>>_contribution_medium''] = 1050'
  449. elseif dyneval('RESULT = fame[''pav_<<$ARGS[1]>>_core'']') >= 400:
  450. dynamic 'fame[''pav_<<$ARGS[1]>>_contribution_medium''] = 1050 - (672000000/((fame[''pav_<<$ARGS[1]>>_core'']/10 -40)*(fame[''pav_<<$ARGS[1]>>_core'']/10 - 40)*(fame[''pav_<<$ARGS[1]>>_core'']/10 -40)*(fame[''pav_<<$ARGS[1]>>_core'']/10 -40) +640000))'
  451. else
  452. dynamic 'fame[''pav_<<$ARGS[1]>>_contribution_medium''] = 0'
  453. end
  454. !! Fame in the city will take a little while before it start being noticed in other places. But the it will start spreading much faster than in the city. (The formula is +1050-52500000/(50000+(fame_city/10)^3 if the palyer is Sveta, but will spread a little slower for non Sveta starts using the formula +fame_city^2/1000)
  455. if dyneval('RESULT = fame[''city_<<$ARGS[1]>>_core'']') >= 2000:
  456. dynamic 'fame[''city_<<$ARGS[1]>>_contribution_high''] = 1050'
  457. else
  458. dynamic 'fame[''city_<<$ARGS[1]>>_contribution_high''] = 1050 - (52500000/((fame[''city_<<$ARGS[1]>>_core'']/10)*(fame[''city_<<$ARGS[1]>>_core'']/10)*(fame[''city_<<$ARGS[1]>>_core'']/10) +50000))'
  459. end
  460. !!The below is the code used for a non Sveta start, but since the unification of the starts this is not used. Leaving it here out comented for the case non Sveta starts are reintroduced.
  461. !!else
  462. !! if dyneval('RESULT = fame[''city_<<$ARGS[1]>>_core'']') >= 1000:
  463. !! dynamic 'fame[''city_<<$ARGS[1]>>_contribution_high''] = 1000'
  464. !! else
  465. !! dynamic 'fame[''city_<<$ARGS[1]>>_contribution_high''] = ((fame[''city_<<$ARGS[1]>>_core''])*(fame[''city_<<$ARGS[1]>>_core'']))/1000'
  466. !! end
  467. !!end
  468. !! Fame in the in city will spread spread to old town wit a little delay, but cath up as you reach star status. (The formula is +fame_city^2/1000)
  469. if dyneval('RESULT = fame[''city_<<$ARGS[1]>>_core'']') >= 1000:
  470. dynamic 'fame[''city_<<$ARGS[1]>>_contribution_medium''] = 1000'
  471. else
  472. dynamic 'fame[''city_<<$ARGS[1]>>_contribution_medium''] = ((fame[''city_<<$ARGS[1]>>_core''])*(fame[''city_<<$ARGS[1]>>_core'']))/1000'
  473. end
  474. !!The fame from city takes sometime before it starts being noticed in the village, but after that it spread very fast (the formula is +1050 -672000000/(640000+(fame_city/10-20)^4) is player is Svata and +1050 -672000000/(640000+(fame_city/10-40)^4) in other starts).
  475. if dyneval('RESULT = fame[''city_<<$ARGS[1]>>_core'']') >= 2000:
  476. dynamic 'fame[''city_<<$ARGS[1]>>_contribution_low''] = 1050'
  477. elseif dyneval('RESULT = fame[''city_<<$ARGS[1]>>'']') >= 200:
  478. dynamic 'fame[''city_<<$ARGS[1]>>_contribution_low''] = 1050 - (672000000/((fame[''city_<<$ARGS[1]>>_core'']/10 -20)*(fame[''city_<<$ARGS[1]>>_core'']/10 - 20)*(fame[''city_<<$ARGS[1]>>_core'']/10 -20)*(fame[''city_<<$ARGS[1]>>_core'']/10 -20) +640000))'
  479. else
  480. dynamic 'fame[''city_<<$ARGS[1]>>_contribution_low''] = 0'
  481. end
  482. !!The below is the code used for a non Sveta start, but since the unification of the starts this is not used. Leaving it here out comented for the case non Sveta starts are reintroduced.
  483. !!else
  484. !! if dyneval('RESULT = fame[''pav_<<$ARGS[1]>>_core'']') >= 2000:
  485. !! dynamic 'fame[''city_<<$ARGS[1]>>_contribution_low''] = 1050'
  486. !! elseif dyneval('RESULT = fame[''city_<<$ARGS[1]>>_core'']') >= 400:
  487. !! dynamic 'fame[''city_<<$ARGS[1]>>_contribution_low''] = 1050 - (672000000/((fame[''pav_<<$ARGS[1]>>_core'']/10 -40)*(fame[''pav_<<$ARGS[1]>>_core'']/10 - 40)*(fame[''pav_<<$ARGS[1]>>_core'']/10 -40)*(fame[''pav_<<$ARGS[1]>>_core'']/10 -40) +640000))'
  488. !! else
  489. !! dynamic 'fame[''city_<<$ARGS[1]>>_contribution_low''] = 0'
  490. !! end
  491. !!end
  492. !! Fame in the old town will spread fast to pav, at almost the same level. (The formula is +(fame_pushkin*(1050-525000000/(500000+(fame_pushkin/10)^4)))/1050)
  493. if dyneval('RESULT = fame[''pushkin_<<$ARGS[1]>>_core'']') >= 1005:
  494. dynamic 'fame[''pushkin_<<$ARGS[1]>>_contribution_high''] = 1050'
  495. else
  496. dynamic 'fame[''pushkin_<<$ARGS[1]>>_contribution_high''] = (fame[''pushkin_<<$ARGS[1]>>_core'']*(1050 - 525000000/(500000 + (fame[''pushkin_<<$ARGS[1]>>_core'']/10)*(fame[''pushkin_<<$ARGS[1]>>_core'']/10)*(fame[''pushkin_<<$ARGS[1]>>_core'']/10)*(fame[''pushkin_<<$ARGS[1]>>_core'']/10))))/1050'
  497. end
  498. !!Fame fram old town spread to city witht same rate as the spread form pav.
  499. if dyneval('RESULT = fame[''pushkin_<<$ARGS[1]>>_core'']') >= 2000:
  500. dynamic 'fame[''pushkin_<<$ARGS[1]>>_low''] = 525'
  501. else
  502. dynamic 'fame[''pushkin_<<$ARGS[1]>>_low''] = 1050 - (42000000/((fame[''pushkin_<<$ARGS[1]>>_core'']/10)*(fame[''pushkin_<<$ARGS[1]>>_core'']/10) + 40000))'
  503. end
  504. !!The fame from old town spreads as the fame from pav.
  505. if dyneval('RESULT = fame[''pushkin_<<$ARGS[1]>>_core'']') >= 2000:
  506. dynamic 'fame[''pushkin_<<$ARGS[1]>>_contribution_medium''] = 1050'
  507. elseif dyneval('RESULT = fame[''pushkin_<<$ARGS[1]>>_core'']') >= 400:
  508. dynamic 'fame[''pushkin_<<$ARGS[1]>>_contribution_medium''] = 1050 - (672000000/((fame[''pushkin_<<$ARGS[1]>>_core'']/10 -40)*(fame[''pushkin_<<$ARGS[1]>>_core'']/10 - 40)*(fame[''pushkin_<<$ARGS[1]>>_core'']/10 -40)*(fame[''pushkin_<<$ARGS[1]>>_core'']/10 -40) +640000))'
  509. else
  510. dynamic 'fame[''pushkin_<<$ARGS[1]>>_contribution_medium''] = 0'
  511. end
  512. !!Village fame do not matter much anywhere outside the viallage.
  513. dynamic 'fame[''village_<<$ARGS[1]>>_contribution''] = fame[''village_<<$ARGS[1]>>_core'']/100'
  514. !!This calculates fame in Pavlovks. Adding the core and local and the contributions trom other places. Each time we add two numbers we do it weigthed by the formula (1000*pav_fame+(1000-pav_fame)*contribution) with a chech such that pav_fame never decrease in a step. Excepte in the first if pav_fame_local is negative).
  515. if dyneval ('RESULT = fame[''pav_<<$ARGS[1]>>_core'']') >= 1000:
  516. dynamic 'fame[''pav_<<$ARGS[1]>>''] = fame[''pav_<<$ARGS[1]>>_core'']+ fame[''pav_<<$ARGS[1]>>_local'']/1000'
  517. else
  518. dynamic 'fame[''pav_<<$ARGS[1]>>''] = (1000*fame[''pav_<<$ARGS[1]>>_core'']+ (1000-fame[''pav_<<$ARGS[1]>>_core''])*fame[''pav_<<$ARGS[1]>>_local''])/1000'
  519. end
  520. if dyneval ('RESULT = fame[''pav_<<$ARGS[1]>>'']') >= 1000:
  521. dynamic 'fame[''pav_<<$ARGS[1]>>''] += fame[''city_<<$ARGS[1]>>_contribution_high'']/1000'
  522. else
  523. dynamic 'fame[''pav_<<$ARGS[1]>>''] = (1000*fame[''pav_<<$ARGS[1]>>'']+ (1000-fame[''pav_<<$ARGS[1]>>''])*fame[''city_<<$ARGS[1]>>_contribution_high''])/1000'
  524. end
  525. if dyneval ('RESULT = fame[''pav_<<$ARGS[1]>>'']') >= 1000:
  526. dynamic 'fame[''pav_<<$ARGS[1]>>''] += fame[''pushkin_<<$ARGS[1]>>_contribution_high'']/1000'
  527. else
  528. dynamic 'fame[''pav_<<$ARGS[1]>>''] = (1000*fame[''pav_<<$ARGS[1]>>'']+ (1000-fame[''pav_<<$ARGS[1]>>''])*fame[''pushkin_<<$ARGS[1]>>_contribution_high''])/1000'
  529. end
  530. if dyneval ('RESULT = fame[''pav_<<$ARGS[1]>>'']') >= 1000:
  531. dynamic 'fame[''pav_<<$ARGS[1]>>''] = fame[''pav_<<$ARGS[1]>>''] + fame[''village_<<$ARGS[1]>>_contribution'']/1000'
  532. else
  533. dynamic 'fame[''pav_<<$ARGS[1]>>''] = (1000*fame[''pav_<<$ARGS[1]>>'']+ (1000-fame[''pav_<<$ARGS[1]>>''])*fame[''village_<<$ARGS[1]>>_contribution''])/1000'
  534. end
  535. if dyneval('RESULT = fame[''pav_<<$ARGS[1]>>'']') < 0: dynamic 'fame[''pav_<<$ARGS[1]>>''] = 0'
  536. if dyneval('RESULT = fame[''pav_<<$ARGS[1]>>'']') > 1200: dynamic 'fame[''pav_<<$ARGS[1]>>''] = 1200'
  537. !!This calculates fame city.
  538. if dyneval ('RESULT = fame[''city_<<$ARGS[1]>>_core'']') >= 1000:
  539. dynamic 'fame[''city_<<$ARGS[1]>>''] = fame[''city_<<$ARGS[1]>>_core'']+ fame[''city_<<$ARGS[1]>>_local'']/1000'
  540. else
  541. dynamic 'fame[''city_<<$ARGS[1]>>''] = (1000*fame[''city_<<$ARGS[1]>>_core'']+ (1000-fame[''city_<<$ARGS[1]>>_core''])*fame[''city_<<$ARGS[1]>>_local''])/1000'
  542. end
  543. if dyneval ('RESULT = fame[''city_<<$ARGS[1]>>'']') >= 1000:
  544. dynamic 'fame[''city_<<$ARGS[1]>>''] += fame[''pav_<<$ARGS[1]>>_contribution_low'']/1000'
  545. else
  546. dynamic 'fame[''city_<<$ARGS[1]>>''] = (1000*fame[''city_<<$ARGS[1]>>'']+ (1000-fame[''city_<<$ARGS[1]>>''])*fame[''pav_<<$ARGS[1]>>_contribution_low''])/1000'
  547. end
  548. if dyneval ('RESULT = fame[''city_<<$ARGS[1]>>'']') >= 1000:
  549. dynamic 'fame[''city_<<$ARGS[1]>>''] += fame[''pushkin_<<$ARGS[1]>>_contribution_low'']/1000'
  550. else
  551. dynamic 'fame[''city_<<$ARGS[1]>>''] = (1000*fame[''city_<<$ARGS[1]>>'']+ (1000-fame[''city_<<$ARGS[1]>>''])*fame[''pushkin_<<$ARGS[1]>>_contribution_low''])/1000'
  552. end
  553. if dyneval ('RESULT = fame[''city_<<$ARGS[1]>>'']') >= 1000:
  554. dynamic 'fame[''city_<<$ARGS[1]>>''] += fame[''village_<<$ARGS[1]>>_contribution'']/1000'
  555. else
  556. dynamic 'fame[''city_<<$ARGS[1]>>''] = (1000*fame[''city_<<$ARGS[1]>>'']+ (1000-fame[''city_<<$ARGS[1]>>''])*fame[''village_<<$ARGS[1]>>_contribution''])/1000'
  557. end
  558. if dyneval('RESULT = fame[''city_<<$ARGS[1]>>'']') < 0: dynamic 'fame[''city_<<$ARGS[1]>>''] = 0'
  559. if dyneval('RESULT = fame[''city_<<$ARGS[1]>>'']') > 1200: dynamic 'fame[''ctiy_<<$ARGS[1]>>''] = 1200'
  560. !!This calculates fame in Old Town.
  561. if dyneval ('RESULT = fame[''pushkin_<<$ARGS[1]>>_core'']') >= 1000:
  562. dynamic 'fame[''pushkin_<<$ARGS[1]>>''] = fame[''pushkin_<<$ARGS[1]>>_core'']+ fame[''pushkin_<<$ARGS[1]>>_local'']/1000'
  563. else
  564. dynamic 'fame[''pushkin_<<$ARGS[1]>>''] = (1000*fame[''pushkin_<<$ARGS[1]>>_core'']+ (1000-fame[''pushkin_<<$ARGS[1]>>_core''])*fame[''pushkin_<<$ARGS[1]>>_local''])/1000'
  565. end
  566. if dyneval ('RESULT = fame[''pushkin_<<$ARGS[1]>>'']') >= 1000:
  567. dynamic 'fame[''pushkin_<<$ARGS[1]>>''] += fame[''pav_<<$ARGS[1]>>_contribution_high'']/1000'
  568. else
  569. dynamic 'fame[''pushkin_<<$ARGS[1]>>''] = (1000*fame[''pushkin_<<$ARGS[1]>>'']+ (1000-fame[''pushkin_<<$ARGS[1]>>''])*fame[''pav_<<$ARGS[1]>>_contribution_high''])/1000'
  570. end
  571. if dyneval ('RESULT = fame[''pushkin_<<$ARGS[1]>>'']') >= 1000:
  572. dynamic 'fame[''pushkin_<<$ARGS[1]>>''] += fame[''city_<<$ARGS[1]>>_contribution_high'']/1000'
  573. else
  574. dynamic 'fame[''pushkin_<<$ARGS[1]>>''] = (1000*fame[''pushkin_<<$ARGS[1]>>'']+ (1000-fame[''pushkin_<<$ARGS[1]>>''])*fame[''city_<<$ARGS[1]>>_contribution_high''])/1000'
  575. end
  576. if dyneval ('RESULT = fame[''pushkin_<<$ARGS[1]>>'']') >= 1000:
  577. dynamic 'fame[''pushkin_<<$ARGS[1]>>''] += fame[''village_<<$ARGS[1]>>_contribution'']/1000'
  578. else
  579. dynamic 'fame[''pushkin_<<$ARGS[1]>>''] = (1000*fame[''pushkin_<<$ARGS[1]>>'']+ (1000-fame[''pushkin_<<$ARGS[1]>>''])*fame[''village_<<$ARGS[1]>>_contribution''])/1000'
  580. end
  581. if dyneval('RESULT = fame[''pushkin_<<$ARGS[1]>>'']') < 0: dynamic 'fame[''pushkin_<<$ARGS[1]>>''] = 0'
  582. if dyneval('RESULT = fame[''pushkin_<<$ARGS[1]>>'']') > 1200: dynamic 'fame[''pushkin_<<$ARGS[1]>>''] = 1200'
  583. !!This calculates fame in Gadukino.
  584. if dyneval ('RESULT = fame[''village_<<$ARGS[1]>>_core'']') >= 1000:
  585. dynamic 'fame[''village_<<$ARGS[1]>>''] = fame[''village_<<$ARGS[1]>>_core'']+ fame[''village_<<$ARGS[1]>>_local'']/1000'
  586. else
  587. dynamic 'fame[''village_<<$ARGS[1]>>''] = (1000*fame[''village_<<$ARGS[1]>>_core'']+ (1000-fame[''village_<<$ARGS[1]>>_core''])*fame[''village_<<$ARGS[1]>>_local''])/1000'
  588. end
  589. if dyneval ('RESULT = fame[''village_<<$ARGS[1]>>'']') >= 1000:
  590. dynamic 'fame[''village_<<$ARGS[1]>>''] += fame[''pav_<<$ARGS[1]>>_contribution_medium'']/1000'
  591. else
  592. dynamic 'fame[''village_<<$ARGS[1]>>''] = (1000*fame[''village_<<$ARGS[1]>>'']+ (1000-fame[''village_<<$ARGS[1]>>''])*fame[''pav_<<$ARGS[1]>>_contribution_medium''])/1000'
  593. end
  594. if dyneval ('RESULT = fame[''village_<<$ARGS[1]>>'']') >= 1000:
  595. dynamic 'fame[''village_<<$ARGS[1]>>''] += fame[''city_<<$ARGS[1]>>_contribution_low'']/1000'
  596. else
  597. dynamic 'fame[''village_<<$ARGS[1]>>''] = (1000*fame[''village_<<$ARGS[1]>>'']+ (1000-fame[''village_<<$ARGS[1]>>''])*fame[''city_<<$ARGS[1]>>_contribution_low''])/1000'
  598. end
  599. if dyneval ('RESULT = fame[''village_<<$ARGS[1]>>'']') >= 1000:
  600. dynamic 'fame[''village_<<$ARGS[1]>>''] += fame[''pushkin_<<$ARGS[1]>>_contribution_medium'']/1000'
  601. else
  602. dynamic 'fame[''village_<<$ARGS[1]>>''] = (1000*fame[''village_<<$ARGS[1]>>'']+ (1000-fame[''village_<<$ARGS[1]>>''])*fame[''pushkin_<<$ARGS[1]>>_contribution_medium''])/1000'
  603. end
  604. if dyneval('RESULT = fame[''village_<<$ARGS[1]>>'']') < 0: dynamic 'fame[''village_<<$ARGS[1]>>''] = 0'
  605. if dyneval('RESULT = fame[''village_<<$ARGS[1]>>'']') > 1200: dynamic 'fame[''village_<<$ARGS[1]>>''] = 1200'
  606. !!Next we calculate the fame in the large fame groups.
  607. $fametown = 'pav'
  608. :fametownloop
  609. dynamic 'fame[''<<$fametown>>_performer''] = 0'
  610. if dyneval('RESULT = fame[''<<$fametown>>_acting'']') > 30: dynamic 'fame[''<<$fametown>>_performer''] += fame[''<<$fametown>>_acting'']/3'
  611. if dyneval('RESULT = fame[''<<$fametown>>_dance'']') > 30: dynamic 'fame[''<<$fametown>>_performer''] += fame[''<<$fametown>>_dance'']/3'
  612. if dyneval('RESULT = fame[''<<$fametown>>_painting'']') > 30: dynamic 'fame[''<<$fametown>>_performer''] += fame[''<<$fametown>>_painting'']/3'
  613. if dyneval('RESULT = fame[''<<$fametown>>_music'']') > 30: dynamic 'fame[''<<$fametown>>_performer''] += fame[''<<$fametown>>_music'']/3'
  614. if dyneval('RESULT = fame[''<<$fametown>>_ballet'']') > 30: dynamic 'fame[''<<$fametown>>_performer''] += fame[''<<$fametown>>_ballet'']/3'
  615. if dyneval('RESULT = fame[''<<$fametown>>_modelling'']') > 30: dynamic 'fame[''<<$fametown>>_performer''] += fame[''<<$fametown>>_modelling'']/3'
  616. dynamic 'fame[''<<$fametown>>_sexind''] = 0'
  617. if dyneval('RESULT = fame[''<<$fametown>>_porn'']') > 30: dynamic 'fame[''<<$fametown>>_sexind''] += fame[''<<$fametown>>_porn'']/2'
  618. if dyneval('RESULT = fame[''<<$fametown>>_stripping'']') > 30: dynamic 'fame[''<<$fametown>>_sexind''] += fame[''<<$fametown>>_stripping'']/2'
  619. dynamic 'fame[''<<$fametown>>_sport''] = 0'
  620. if dyneval('RESULT = fame[''<<$fametown>>_kickboxing'']') > 30: dynamic 'fame[''<<$fametown>>_sport''] += fame[''<<$fametown>>_kickboxing'']/3'
  621. if dyneval('RESULT = fame[''<<$fametown>>_running'']') > 30: dynamic 'fame[''<<$fametown>>_sport''] += fame[''<<$fametown>>_running'']/3'
  622. if dyneval('RESULT = fame[''<<$fametown>>_volleyball'']') > 30: dynamic 'fame[''<<$fametown>>_sport''] += fame[''<<$fametown>>_volleyball'']/3'
  623. dynamic 'fame[''<<$fametown>>_int''] = 0'
  624. if dyneval('RESULT = fame[''<<$fametown>>_chess'']') > 30: dynamic 'fame[''<<$fametown>>_int''] += fame[''<<$fametown>>_chess'']/2'
  625. if dyneval('RESULT = fame[''<<$fametown>>_teaching'']') > 30: dynamic 'fame[''<<$fametown>>_int''] += fame[''<<$fametown>>_teaching'']/3'
  626. dynamic 'fame[''<<$fametown>>_social''] = 0'
  627. if dyneval('RESULT = fame[''<<$fametown>>_media'']') > 30: dynamic 'fame[''<<$fametown>>_social''] += fame[''<<$fametown>>_media'']/2'
  628. if $fametown = 'pav':
  629. $fametown = 'city'
  630. jump 'fametownloop'
  631. elseif $fametown = 'city':
  632. $fametown = 'village'
  633. jump 'fametownloop'
  634. elseif $fametown = 'village':
  635. $fametown = 'pushkin'
  636. jump 'fametownloop'
  637. end
  638. end
  639. if $ARGS[0] = 'calculateSlut':
  640. !! Calculates the slut fame after sex or prostitution has been modified.
  641. $fametown = 'pav'
  642. :fametownloopSlut
  643. dynamic 'fame[''<<$fametown>>_slut''] = 0'
  644. if dyneval('RESULT = fame[''<<$fametown>>_sex'']') > 30: dynamic 'fame[''<<$fametown>>_slut''] += fame[''<<$fametown>>_sex'']/2'
  645. if dyneval('RESULT = fame[''<<$fametown>>_prostitute'']') > 30: dynamic 'fame[''<<$fametown>>_slut''] += fame[''<<$fametown>>_prostitute'']/2'
  646. if $fametown = 'pav':
  647. $fametown = 'city'
  648. jump 'fametownloopSlut'
  649. elseif $fametown = 'city':
  650. $fametown = 'village'
  651. jump 'fametownloopSlut'
  652. elseif $fametown = 'village':
  653. $fametown = 'pushkin'
  654. jump 'fametownloopSlut'
  655. end
  656. if fame['pav_slut'] < 25:
  657. $gnikname = ''
  658. elseif fame['pav_slut'] < 50:
  659. $gnikname = 'flirt'
  660. elseif fame['pav_slut'] < 75:
  661. $gnikname = 'tease'
  662. elseif fame['pav_slut'] < 100:
  663. $gnikname = 'minx'
  664. elseif fame['pav_slut'] < 125:
  665. $gnikname = 'vixen'
  666. elseif fame['pav_slut'] < 150:
  667. $gnikname = 'temptress'
  668. elseif fame['pav_slut'] < 175:
  669. $gnikname = 'cocklover'
  670. elseif fame['pav_slut'] < 200:
  671. $gnikname = 'boytoy'
  672. elseif fame['pav_slut'] < 225:
  673. $gnikname = 'slut'
  674. elseif fame['pav_slut'] < 250:
  675. $gnikname = 'nympho'
  676. elseif fame['pav_slut'] < 275:
  677. $gnikname = 'whore'
  678. elseif fame['pav_slut'] < 300:
  679. $gnikname = 'town bicycle'
  680. else
  681. $gnikname = 'cum dumpster'
  682. end
  683. end
  684. if $ARGS[0] = 'church_reduction':
  685. !! Special gs for reducing sex and prostitution fame by doing activities at the local church
  686. dynamic 'fame[''<<$ARGS[1]>>_sex''] += <<ARGS[2]>>'
  687. dynamic 'fame[''<<$ARGS[1]>>_prostitute''] += <<ARGS[2]>>'
  688. if dyneval('RESULT = fame[''<<$ARGS[1]>>_sex'']') < 0: dynamic 'fame[''<<$ARGS[1]>>_sex''] = 0'
  689. if dyneval('RESULT = fame[''<<$ARGS[1]>>_prostitute'']') < 0: dynamic 'fame[''<<$ARGS[1]>>_prostitute''] = 0'
  690. gs 'fame', 'calculateSlut'
  691. end
  692. --- fame ---------------------------------