佳丽云

英雄无敌3-WoG中文站

 找回密码
 英雄注册|Register
查看: 3995|回复: 4

wog相关的erm 地图 mod

[复制链接]
  • TA的每日心情

    2023-8-26 12:35
  • 签到天数: 6 天

    连续签到: 1 天

    [LV.2]野猪

    39

    回帖

    7532

    金币

    1

    精华

    1级 Hired Hero

    Rank: 1

    积分
    178

    社区QQ达人

    发表于 2009-12-14 19:20:02 | 显示全部楼层 |阅读模式
    erm用途求翻译
    1. _WARNING_#1=IMPORTANT! This file is not in a plain text format. NEVER use any editor except [wiki]ERM[/wiki]_S for making any kind of changes!
    2. ERMS_PoweredBy=ERM Scripter v. 2004.6.29.918
    3. [ daily growth ]

    4. !#VRv9433:S0;

    5. !#TM91:S8/255/7/255;
    6. !#TM92:S9/255/7/255;

    7. !?TM92;
    8. !!VRv9433:S0; set as not decreased

    9. !?TM91; fires every population - decrease population
    10. !!FU&v4933=1:E; population has been already decreased
    11. !!UN:U98/-1/?y-1;
    12. !!VRv1:S-1;
    13. !!VRv2:S-1;
    14. !!VRv3:S-1;
    15. !!DO28116/1/y-1/1&v9433=0:P;
    16. !!VRv9433:S1; set as decreased

    17. !?FU28116;
    18. !!UN:U98/-1/-1/1;
    19. !!CA1:O?y1;
    20. !!CA1:T?y-1;

    21. !!CA1:N?z1;

    22. !!FU28112:Py-1/0; get 1st lvl monster
    23. !!FU&v10=-1:E; exit if no monster found ?
    24. !!FU28117:P0/v10; get prod to v360
    25. !!CA1:M1/0/?v364/?v365; get recruits
    26. !!VRv364:-v360; sub by growth
    27. !!VRv365:-v360; sub by growth
    28. !!CA1&y1<>-1:M1/0/v364/v365; update recruits

    29. !!FU28112:Py-1/1; get 2nd lvl monster
    30. !!FU&v10=-1:E; exit if no monster found ?
    31. !!FU28117:P1/v10; get prod to v360
    32. !!CA1:M1/1/?v364/?v365; get recruits
    33. !!VRv364:-v360; sub by growth
    34. !!VRv365:-v360; sub by growth
    35. !!CA1&y1<>-1:M1/1/v364/v365; update recruits

    36. !!FU28112:Py-1/2; get 3rd lvl monster
    37. !!FU&v10=-1:E; exit if no monster found ?
    38. !!FU28117:P2/v10; get prod to v360
    39. !!CA1:M1/2/?v364/?v365; get recruits
    40. !!VRv364:-v360; sub by growth
    41. !!VRv365:-v360; sub by growth
    42. !!CA1&y1<>-1:M1/2/v364/v365; update recruits

    43. !!FU28112:Py-1/3; get 4th lvl monster
    44. !!FU&v10=-1:E; exit if no monster found ?
    45. !!FU28117:P3/v10; get prod to v360
    46. !!CA1:M1/3/?v364/?v365; get recruits
    47. !!VRv364:-v360; sub by growth
    48. !!VRv365:-v360; sub by growth
    49. !!CA1&y1<>-1:M1/3/v364/v365; update recruits

    50. !!FU28112:Py-1/4; get 5th lvl monster
    51. !!FU&v10=-1:E; exit if no monster found ?
    52. !!FU28117:P4/v10; get prod to v360
    53. !!CA1:M1/4/?v364/?v365; get recruits
    54. !!VRv364:-v360; sub by growth
    55. !!VRv365:-v360; sub by growth
    56. !!CA1&y1<>-1:M1/4/v364/v365; update recruits

    57. !!FU28112:Py-1/5; get 6th lvl monster
    58. !!FU&v10=-1:E; exit if no monster found ?
    59. !!FU28117:P5/v10; get prod to v360
    60. !!CA1:M1/5/?v364/?v365; get recruits
    61. !!VRv364:-v360; sub by growth
    62. !!VRv365:-v360; sub by growth
    63. !!CA1&y1<>-1:M1/5/v364/v365; update recruits

    64. !!FU28112:Py-1/6; get 7th lvl monster
    65. !!FU&v10=-1:E; exit if no monster found ?
    66. !!FU28117:P6/v10; get prod to v360
    67. !!CA1:M1/6/?v364/?v365; get recruits
    68. !!VRv364:-v360; sub by growth
    69. !!VRv365:-v360; sub by growth
    70. !!CA1&y1<>-1:M1/6/v364/v365; update recruits

    71. !?FU28117; get castle creature production (x1 = creature level, x2 = creature number , castle at v1/v2/v3)
    72. !!MA:Gx2/?v360; get growth to v360

    73. !!FU28115:Px1; check if correct lvl built
    74. !!VRv360&-2:S0; set to 0 if not built
    75. !!FU&-2:E; exit (return 0)

    76. !!VRv361:Sv360 :2;

    77. !!CA1:B3/9; check if castle is built
    78. !!VRv360&1:+v360; double production if castle
    79. !!CA1:B3/8; check if citadel is built
    80. !!VRv360&1:+v361; 50% production if citadel
    81. !!CA1:B3/26; check if grail is built
    82. !!VRv360&1:*2;

    83. !?TM35; fires every day for every color
    84. !!OW:C?y-2;
    85. !!UN:U98/-1/?y-1;
    86. !!DO28111/1/y-1/1:Py-2; for every castle with y-2 color

    87. !?FU28111;
    88. !!UN:U98/-1/x16/1; store coors to v1/v2/v3
    89. !!CA1:O?y-1; store castle owner to y-1
    90. !!FU28114&y-1=x1:P;

    91. !?FU28114; add daily prod

    92. !!VRv4:Sv1 -1; po4 stores first 4 lvl
    93. !!VRv5:Sv2;
    94. !!VRv6:Sv3;

    95. !!VRv7:Sv1 +1; po7 stores last 3 lvls
    96. !!VRv8:Sv2;
    97. !!VRv9:Sv3;

    98. !!CA1:T?y-1;

    99. !!CA1:N?z1;

    100. !!FU28112:Py-1/0;
    101. !!FU&v10=-1:E; exit if no monster found ?
    102. !!UN:N3/2/v10/0;
    103. !!MA:Gv10/?y-2;
    104. !!VRy-3:Sy-2 :2;

    105. !!FU28115:P0; check if 1lvl built
    106. !!VRy-2&-2:S0; set to 0 if not built
    107. !!CA1:B3/9; check if castle is built
    108. !!VRy-2&1:+y-2; double production if castle
    109. !!CA1:B3/8; check if citadel is built
    110. !!VRy-2&1:+y-3; 50% production if citadel
    111. !!PO4:V0/?y-4;
    112. !!VRy-2:*100 :7;
    113. !!VRy-4:+y-2; add daily production
    114. !!VRy-5:Sy-4 :100;
    115. !!PO4&y-5<=0:V0/y-4; set new value to city
    116. !!CA1:M1/0/dy-5/dy-5; add new monsters to city
    117. !!VRy-5:*100; x100 it
    118. !!VRy-4:-y-5; sub y-5 from y-4
    119. !!PO4:V0/y-4; set new value

    120. !!FU28112:Py-1/1;
    121. !!FU&v10=-1:E; exit if no monster found ?
    122. !!UN:N3/2/v10/0;
    123. !!MA:Gv10/?y-2;
    124. !!VRy-3:Sy-2 :2;

    125. !!FU28115:P1; check if 2lvl built
    126. !!VRy-2&-2:S0; set to 0 if not built
    127. !!CA1:B3/9; check if castle is built
    128. !!VRy-2&1:+y-2; double production if castle
    129. !!CA1:B3/8; check if citadel is built
    130. !!VRy-2&1:+y-3; 50% production if citadel
    131. !!PO4:V1/?y-4;
    132. !!VRy-2:*100 :7;
    133. !!VRy-4:+y-2; add daily production
    134. !!VRy-5:Sy-4 :100;
    135. !!PO4&y-5<=0:V1/y-4; set new value to city
    136. !!CA1:M1/1/dy-5/dy-5; add new monsters to city
    137. !!VRy-5:*100; x100 it
    138. !!VRy-4:-y-5; sub y-5 from y-4
    139. !!PO4:V1/y-4; set new value

    140. !!FU28112:Py-1/2; *** edit ***
    141. !!FU&v10=-1:E; exit if no monster found ?
    142. !!UN:N3/2/v10/0;
    143. !!MA:Gv10/?y-2;
    144. !!VRy-3:Sy-2 :2;

    145. !!FU28115:P2; check if 3lvl built *** edit ***
    146. !!VRy-2&-2:S0; set to 0 if not built
    147. !!CA1:B3/9; check if castle is built
    148. !!VRy-2&1:+y-2; double production if castle
    149. !!CA1:B3/8; check if citadel is built
    150. !!VRy-2&1:+y-3; 50% production if citadel
    151. !!PO4:V2/?y-4; *** edit ***
    152. !!VRy-2:*100 :7;
    153. !!VRy-4:+y-2; add daily production
    154. !!VRy-5:Sy-4 :100;
    155. !!PO4&y-5<=0:V2/y-4; set new value to city *** edit ***
    156. !!CA1:M1/2/dy-5/dy-5; add new monsters to city *** edit ***
    157. !!VRy-5:*100; x100 it
    158. !!VRy-4:-y-5; sub y-5 from y-4
    159. !!PO4:V2/y-4; set new value *** edit ***

    160. !!FU28112:Py-1/3; *** edit ***
    161. !!FU&v10=-1:E; exit if no monster found ?
    162. !!UN:N3/2/v10/0;
    163. !!MA:Gv10/?y-2;
    164. !!VRy-3:Sy-2 :2;

    165. !!FU28115:P3; check if 4lvl built *** edit ***
    166. !!VRy-2&-2:S0; set to 0 if not built
    167. !!CA1:B3/9; check if castle is built
    168. !!VRy-2&1:+y-2; double production if castle
    169. !!CA1:B3/8; check if citadel is built
    170. !!VRy-2&1:+y-3; 50% production if citadel
    171. !!PO4:V3/?y-4; *** edit ***
    172. !!VRy-2:*100 :7;
    173. !!VRy-4:+y-2; add daily production
    174. !!VRy-5:Sy-4 :100;
    175. !!PO4&y-5<=0:V3/y-4; set new value to city *** edit ***
    176. !!CA1:M1/3/dy-5/dy-5; add new monsters to city *** edit ***
    177. !!VRy-5:*100; x100 it
    178. !!VRy-4:-y-5; sub y-5 from y-4
    179. !!PO4:V3/y-4; set new value *** edit ***

    180. !!FU28112:Py-1/4; *** edit ***
    181. !!FU&v10=-1:E; exit if no monster found ?
    182. !!UN:N3/2/v10/0;
    183. !!MA:Gv10/?y-2;
    184. !!VRy-3:Sy-2 :2;

    185. !!FU28115:P4; check if 5lvl built *** edit ***
    186. !!VRy-2&-2:S0; set to 0 if not built
    187. !!CA1:B3/9; check if castle is built
    188. !!VRy-2&1:+y-2; double production if castle
    189. !!CA1:B3/8; check if citadel is built
    190. !!VRy-2&1:+y-3; 50% production if citadel
    191. !!PO7:V0/?y-4; *** edit ***
    192. !!VRy-2:*100 :7;
    193. !!VRy-4:+y-2; add daily production
    194. !!VRy-5:Sy-4 :100;
    195. !!PO7&y-5<=0:V0/y-4; set new value to city *** edit ***
    196. !!CA1:M1/4/dy-5/dy-5; add new monsters to city *** edit ***
    197. !!VRy-5:*100; x100 it
    198. !!VRy-4:-y-5; sub y-5 from y-4
    199. !!PO7:V0/y-4; set new value *** edit ***

    200. !!FU28112:Py-1/5; *** edit ***
    201. !!FU&v10=-1:E; exit if no monster found ?
    202. !!UN:N3/2/v10/0;
    203. !!MA:Gv10/?y-2;
    204. !!VRy-3:Sy-2 :2;

    205. !!FU28115:P5; check if 5lvl built *** edit ***
    206. !!VRy-2&-2:S0; set to 0 if not built
    207. !!CA1:B3/9; check if castle is built
    208. !!VRy-2&1:+y-2; double production if castle
    209. !!CA1:B3/8; check if citadel is built
    210. !!VRy-2&1:+y-3; 50% production if citadel
    211. !!PO7:V1/?y-4; *** edit ***
    212. !!VRy-2:*100 :7;
    213. !!VRy-4:+y-2; add daily production
    214. !!VRy-5:Sy-4 :100;
    215. !!PO7&y-5<=0:V1/y-4; set new value to city *** edit ***
    216. !!CA1:M1/5/dy-5/dy-5; add new monsters to city *** edit ***
    217. !!VRy-5:*100; x100 it
    218. !!VRy-4:-y-5; sub y-5 from y-4
    219. !!PO7:V1/y-4; set new value *** edit ***

    220. !!FU28112:Py-1/6; *** edit ***
    221. !!FU&v10=-1:E; exit if no monster found ?
    222. !!UN:N3/2/v10/0;
    223. !!MA:Gv10/?y-2;
    224. !!VRy-3:Sy-2 :2;

    225. !!FU28115:P6; check if 5lvl built *** edit ***
    226. !!VRy-2&-2:S0; set to 0 if not built
    227. !!CA1:B3/9; check if castle is built
    228. !!VRy-2&1:+y-2; double production if castle
    229. !!CA1:B3/8; check if citadel is built
    230. !!VRy-2&1:+y-3; 50% production if citadel
    231. !!PO7:V2/?y-4; *** edit ***
    232. !!VRy-2:*100 :7;
    233. !!VRy-4:+y-2; add daily production
    234. !!VRy-5:Sy-4 :100;
    235. !!PO7&y-5<=0:V2/y-4; set new value to city *** edit ***
    236. !!CA1:M1/6/dy-5/dy-5; add new monsters to city *** edit ***
    237. !!VRy-5:*100; x100 it
    238. !!VRy-4:-y-5; sub y-5 from y-4
    239. !!PO7:V2/y-4; set new value *** edit ***

    240. !?FU28112; get monster number to v10 (x1 = town type, x2 = level)
    241. !!VRv10:S-1;s
    242. !!DO28113/0/173/1:Px1/x2;

    243. !?FU28113; ...
    244. !!MA:Lx16/?y-1;
    245. !!MA:Ox16/?y-2;
    246. !!VRv10&x1=y-2/x2=y-1:Sx16;

    247. !?FU28115; check if x1 level dwelling (upgraded or not) is built
    248. !!IF:V2/0; not built initially
    249. !!VRy1:Sx1 +30;
    250. !!CA1:B3/y1; check if unupg is built
    251. !!IF&1:V2/1; set flag if yes
    252. !!FU&1:E; exit if yes
    253. !!VRy1:+7;
    254. !!CA1:B3/y1; check if upg is built
    255. !!IF&1:V2/1; set flag if yes
    256. !!FU&1:E; exit if yes
    复制代码
    1. _WARNING_#1=IMPORTANT! This file is not in a plain text format. NEVER use any editor except ERM_S for making any kind of changes!
    2. ERMS_PoweredBy=ERM Scripter v. 2004.6.29.918
    3. [turn events]

    4. [FU28101 : Store random current owner's hero in V1]

    5. !?FU28101; store random owner hero in v1
    6. !!VRv1:S-1;
    7. !!VRv5:S0;
    8. !!VRv6:S0;
    9. !!DO28102/0/155/1:P;
    10. !!VRv5:-1;
    11. !!VRv7:S1 Rv5;
    12. !!DO28103/0/155/1:Pv7;

    13. !?FU28102; get heroes count
    14. !!HEx16:O?y1;
    15. !!OW:C?y2;
    16. !!VRv5&y1=y2:+1;

    17. !?FU28103; select hero with count = x1
    18. !!HEx16:O?y1;
    19. !!OW:C?y2;
    20. !!VRv6&y1=y2:+1;
    21. !!VRv1&v6=x1/y1=y2:Sx16;

    22. !?FU28120; store specified owner hero in v1 (x1)
    23. !!VRv1:S-1;
    24. !!VRv5:S0;
    25. !!VRv6:S0;
    26. !!DO28121/0/155/1:Px1;
    27. !!VRv5:-1;
    28. !!VRv7:S1 Rv5;
    29. !!DO28122/0/155/1:Pv7/x1;

    30. !?FU28121; get heroes count
    31. !!HEx16:O?y1;
    32. !!VRv5&y1=x1:+1;

    33. !?FU28122; select hero with count = x1
    34. !!HEx16:O?y1;
    35. !!VRv6&y1=x2:+1;
    36. !!VRv1&v6=x1/y1=x2:Sx16;

    37. [FU28104 : Store random current owner's castle in V1]

    38. !?FU28104; store random owner castle in v1
    39. !!VRv1:S-1;
    40. !!VRv2:S-1;
    41. !!VRv3:S-1;
    42. !!VRv8:S-1;
    43. !!VRv9:S-1;
    44. !!VRv10:S-1;
    45. !!VRv5:S0;
    46. !!VRv6:S0;
    47. !!UN:U98/-1/?v7;
    48. !!DO28105/1/v7/1:P;
    49. !!VRv5:-1;
    50. !!VRv4:S1 Rv5;
    51. !!DO28106/1/v7/1:Pv4;

    52. !?FU28105; get castle count
    53. !!UN:U98/-1/x16/8; store castle coors in v8/v9/v10
    54. !!CAv8/v9/v10:O?y1;
    55. !!OW:C?y2;
    56. !!VRv5&y1=y2:+1; inc counter if its his castle

    57. !?FU28106; select castle with number x1
    58. !!UN:U98/-1/x16/8; store castle coors in v8/v9/v10
    59. !!CAv8/v9/v10:O?y1;
    60. !!OW:C?y2;
    61. !!VRv6&y1=y2:+1; inc counter if its his castle
    62. !!VRv1&v6=x1/y1=y2:Sv8;
    63. !!VRv2&v6=x1/y1=y2:Sv9;
    64. !!VRv3&v6=x1/y1=y2:Sv10;

    65. !?FU28107; equip x1 hero with random artifact
    66. !!VRy-1:S7 R133;
    67. !!HEx1:A4/y-1;

    68. !?FU28108; discover castle for rnd player with chance of 30%
    69. !!UN:U98/-1/x16/8;
    70. !!OW:C?y-1;
    71. !!UN:Sv8/v9/v10/y-1/6;
    72. !!UN:Lv8/v9/v10/500;

    73. !#TM95:S1/300/1/255;

    74. !?TM95;
    75. !!VRv9432:S0; assassins = 0
    76. !!VRv9434:S0; grem. bombers = 0
    77. !!VRv9435:S-1; headhunter type = -1
    78. !!VRv9436:S-1; headhunter count = -1
    79. !!VRv9444:S0; god help = 0
    80. !!VRv9446:S0; necro help = 0
    81. !!VRv9429:S1 R2600;
    82. !!VRv9430:S0 T100;

    83. !!VRv9429&v9430>25:S0;

    84. !!OW:I-1/?v9431; get ai to v9431 (1 = ai)

    85. !?TM95&v9429>=2500/v9429<2600; [ 26. god help ]
    86. !!FU28104:P; select random city
    87. !!FU&v1=-1:E;
    88. !!UN:Lv1/v2/v3/2000;
    89. !!CA1:N?z1;
    90. !!OW:C?y-65;
    91. !!IF&v9431=1:Q1/10/y-65/4^{GOD OF WRATH}^;
    92. !!IF&v9431=0:M^{GOD OF WRATH}

    93. A gods are willing to help you with your journey today. They will destroy enemy stacks with divine lightnings in battle.^;
    94. !!VRv9444:S1;

    95. !?BA0;
    96. !!BA:A?y-99;
    97. !!FU&y-99=1:E; exit if ai
    98. !!FU&v9444=0:E; exit if not godwrath
    99. !!BA:B22; change background

    100. !?BG0;
    101. !!BA:A?y-99;
    102. !!FU&y-99=1:E; exit if ai
    103. !!FU&v9444=0:E; exit if not godwrath
    104. !!VRy-1:S0 R1000;
    105. !!FU&y-1>300:E; exit if not 30%
    106. !!FU$RandomStack$:P1/1/0;
    107. !!FU&y-100=-1:E; exit if not valid stack
    108. !!BG:N?y-3;
    109. !!FU&y-3=y-100:E; exit if striking current stack to move
    110. !!VRz1:S^Sorry, I did it^;
    111. !!VRz2:S^LIGHTBLT.WAV^;
    112. !!BU:Mz1;
    113. !!SN:Pz2;
    114. !!VRy-2:Sc *20;
    115. !!VRy-2:+125;
    116. !!BMy-100:V37;
    117. !!BMy-100:Ky-2;
    118. !!BU:R;

    119. !?TM95&v9429>=2400/v9429<2500; [ 25. headhunters ]
    120. !!FU28104:P;
    121. !!FU&v1=-1:E;
    122. !!UN:Lv1/v2/v3/2000;
    123. !!CA1:N?z1;
    124. !!VRv361:S0 T173; [ generate random unit ]

    125. !!VRv361&v361=145:S192; [ catapult ]
    126. !!VRv361&v361=146:S193; [ ballista ]
    127. !!VRv361&v361=147:S194; [ ammo cart ]
    128. !!VRv361&v361=148:S195; [ arrow tower woot ]
    129. !!VRv361&v361=149:S196; [ first aid tent ]
    130. !!VRv361&v361=122:S192; [ placeholder ]
    131. !!VRv361&v361=124:S194; [ placeholder ]
    132. !!VRv361&v361=128:S196; [ placeholder ]

    133. !!MA:Lv361/?v362; get creature level to v362
    134. !!MA:Cv361/6/?v5; get cost to v5

    135. !!VRy-2:S7 -v362;
    136. !!VRy-1:Sc +10 :5;
    137. !!VRy-1&y-1<1:S1;
    138. !!VRy-1:*y-2;
    139. !!VRy-1:Ty-1;

    140. !!VRv5:*y-1 :12; cost x count / 20

    141. !!OW:C?y-65;
    142. !!IF&v9431=1:Q1/10/y-65/4^{HEADHUNTERS}^;
    143. !!IF:V1/0;
    144. !!IF&v9431=0:Q1/6/v5/21/v361/2^{HEADHUNTERS}

    145. A pack of headhunters (%Y-1 total) came to your city %Z1. They don't want to join your army, but they can hunt down one enemy hero for you. Do you want to use their services?^;
    146. !!IF&v9431=1:V1/1; always yes for ai
    147. !!FU&-1:E; exit if clicked no
    148. !!OW:R-1/6/?y-2;
    149. !!VRy-2:-v5;
    150. !!IF&y-2<0&v9431=0:M^You dont have enough gold!^;
    151. !!FU&y-2<0:E; exit if dont have enough cash
    152. !!OW:R-1/6/y-2;
    153. !!VRv9435:Sv361; set v9435 to type
    154. !!VRv9436:Sy-1; set v9436 to count
    155. !!IF&v9431=0:M^{HEADHUNTERS}

    156. You have recruited headhunters. They are ready to attack one of your enemies but they MUST be used in this turn. Just CTRL+Click enemy hero and watch as it dies.^;
    157. !!FU&v9431=0:E; exit if not AI
    158. !!VRv5:S-1;
    159. !!DO28119/1/32/1:P;
    160. !!FU&v5=-1:E; exit if cannot select
    161. !!FU28120:Pv5; select random hero in owner
    162. !!FU&v1=-1:E; exit if cannot select
    163. !!HEv1:P?v8/?v9/?v10;
    164. !!HEv1:Pv8/v9/v10/1;
    165. !!HEv1:O?y-20;
    166. !!HEv1:B0/?z1;
    167. !!UN:Lv8/v9/v10/2000;
    168. !!OW:Iy-20/?y-21;
    169. !!IF&y-21=0:M^{HEADHUNTERS}

    170. %Z1 has been attacked by headhunters!^;
    171. !!HEv1:Tv8/v9/v10/v9435/v9436;

    172. !?FU28119; select random owner that i am not in team with
    173. !!OW:T-1/?y-1; get my team to y-1
    174. !!VRy-2:S0 R6;
    175. !!OW:Ty-2/?y-3; get his team to y-3
    176. !!OW:Iy-2/d/?y-4; get isalive to y-4
    177. !!VRv5&y-1<>y-3/y-4=0:Sy-2; select if its not in same team and alive

    178. !?CM5;
    179. !!FU&v9435=-1:E; exit if cannot headhunt
    180. !!CM:F?y-1;
    181. !!FU&y-1<>4:E; exit if not ctrl+click
    182. !!CM:P?v1/?v2/?v3; get position to v1/v2/v3
    183. !!OBv1/v2/v3:T?y-7;
    184. !!FU&y-7<>34:E;
    185. !!HEv1/v2/v3:N?y-6;
    186. !!FU&y-6<0:E; exit if no hero
    187. !!HEy-6:O?y-10;
    188. !!HEy-6:B0/?z1;
    189. !!FU&y-10=y-11:E; exit if attacking yourself (no exping)
    190. !!IF:V1/0;
    191. !!IF:Q1/21/v9435/2^{Headhunters}
    192. Do you want headhunters to attack that hero?^;
    193. !!FU&-1:E; exit if not
    194. !!IF:Q1/10/y-10/1^{Headhunters}
    195. %Z1 will be defending himself now...^;
    196. !!UN:Lv1/v2/v3/1000;
    197. !!VRv360:Sv1;
    198. !!VRv361:Sv2;
    199. !!VRv362:Sv3;
    200. !!HEy-6:Tv1/v2/v3/v9435/v9436; fight
    201. !!VRv9435:S-1;
    202. !!VRv9436:S-1; disable head hunters
    203. !!UN:Lv360/v361/v362/1000;

    204. !?TM95&v9429>=2300/v9429<2400; [ 24. gremlin bombers ]
    205. !!FU28104:P;
    206. !!FU&v1=-1:E;
    207. !!UN:Lv1/v2/v3/2000;
    208. !!CA1:N?z1;
    209. !!OW:C?y-65;
    210. !!IF&v9431=1:Q1/10/y-65/4^{GREMLIN BOMBER}^;
    211. !!FU&v9431=1:E;
    212. !!VRz2:S^Gremlin Bombers^;
    213. !!UN:G1/28/1/2;
    214. !!IF:V1/0;
    215. !!IF&v9431=0:Q1/6/5000/21/28/2^{GREMLIN BOMBER}

    216. A pack of Gremlin bombers came to %Z1 town. They are asking if you would want to hire them. Their specialization is blowing up castles. They can destroy choosen enemy castle entirely, but its hard job and success is not guaranted. Chance of success is 40% in castle with Capitol, 70% in castle with City Hall and 90% in castle with Town Hall. Do you want to hire them for 5000 gold coins?^;
    217. !!UN:G1/28/1/0;
    218. !!FU&-1:E; exit if no
    219. !!IF:M^{GREMLIN BOMBER}

    220. Gremlin Bombers are ready. You MUST use it in this turn or they will be lost. To use Gremlin Bombers just CTRL+Click on any of enemy town.^;
    221. !!VRv9434:S1;

    222. !?CM5; clicking on map
    223. !!FU&v9434=0:E; exit if cannot bomb
    224. !!CM:F?y-1;
    225. !!FU&y-1<>4:E; exit if not ctrl+click
    226. !!CM:P?v1/?v2/?v3; get position to v1/v2/v3
    227. !!OBv1/v2/v3:T?y-6;
    228. !!FU&y-6<>98:E; exit if not clicked a town

    229. !!CA1:O?y-3;
    230. !!OW:C?y-4;
    231. !!FU&y-3=y-4:E; dont destroy ourselves

    232. !!CA1:N?z1;
    233. !!IF:V1/0;
    234. !!IF:Q1^{Gremlin Bombers}

    235. Do you want to try blow up %Z1 city?^;
    236. !!FU&-1:E; exit if no

    237. !!VRy-1:S1000; 100% for bare city
    238. !!CA1:B3/11;
    239. !!VRy-1&1:S900; 90% if town hall
    240. !!CA1:B3/12;
    241. !!VRy-1&1:S700; 70% if city hall
    242. !!CA1:B3/13;
    243. !!VRy-1&1:S400; 40% if capitol
    244. !!VRy-2:S0 T1000;
    245. !!IF&y-2>y-1:M^{Gremlin Bombers}

    246. Your Gremlin Bombers have trying to sneak to %Z1 but they have been sighted and killed, thus no explosions today.^;
    247. !!FU&y-2>y-1:E;
    248. !!IF:M^{Gremlin Bombers}

    249. Your Gremlin Bombers have trying to sneak to %Z1 and they have successed.^;
    250. !!UN:Lv1/v2/v3/2000;
    251. !!CA1:I-1;
    252. !!CA1:O-1;
    253. !!OB1:S;
    254. !!TRv1/v2/v3:E1 P0;
    255. !!UN:Lv1/v2/v3/300;
    256. !!IF:M^{Boom!}

    257. After a while, city is up in smokes and explosions!^;
    258. !!VRv9434:S0;

    259. !?TM95&v9429>=2200/v9429<2300; [ 23. ghost ]
    260. !!FU:E; disable
    261. !!FU28101:P;
    262. !!FU&v1=-1:E;
    263. !!VRv360:Sc;
    264. !!FU&v360<2:E; exit if day 1
    265. !!VRv360:S12 R4 Tc;
    266. !!HEv1:P?v8/?v9/?v10;
    267. !!HEv1:Pv8/v9/v10;
    268. !!UN:Lv8/v9/v10/2000;
    269. !!OW:C?y-65;
    270. !!VRy-1:S-1 R2;
    271. !!VRv8:+y-1;
    272. !!VRy-1:S-1 R2;
    273. !!VRv9:+y-1;
    274. !!TRv8/v9/v10:P?y-50;
    275. !!FU&y-50=0:E; exit if cannot place here
    276. !!HEv1:P?y-30/?y-31/?y-31;
    277. !!FU&y-30=v8/y-31=v9:E; exit if wants to place on hero
    278. !!IF&v9431=1:Q1/10/y-65/4^{GHOST}^;
    279. !!HEv1:B0/?z1;
    280. !!IF&v9431=0:Q1/21/159/1^{GHOST}

    281. When {%Z1} was resting with army, noone have realized that they are sleeping on old graveyard. It looks like ghosts didnt enjoyed it and want to scare you from here.^;
    282. !!UN:Iv8/v9/v10/54/159;
    283. !!MOv8/v9/v10:Gv360;
    284. !!MOv8/v9/v10:R10/1;
    285. !!MOv8/v9/v10:U1;

    286. !?TM95&v9429>=2100/v9429<2200; [ 22. dragon ]
    287. !!FU28101:P;
    288. !!FU&v1=-1:E;
    289. !!VRv360:Sc;
    290. !!FU&v360<2:E; exit if day 1
    291. !!HEv1:P?v8/?v9/?v10;
    292. !!HEv1:Pv8/v9/v10;
    293. !!UN:Lv8/v9/v10/2000;
    294. !!OW:C?y-65;
    295. !!IF&v9431=1:Q1/10/y-65/4^{DRAGON SHADE}^;
    296. !!HEv1:B0/?z1;
    297. !!IF&v9431=0:Q1/21/196/1^{DRAGON SHADE}

    298. When %Z1 was travelling with his army, large dragon-shaped shadow appeared on ground. You have looked upwards and you saw powerful dracolich flying towards you and your army!^;
    299. !!VRv360:Sv1;
    300. !!HEv1:Tv8/v9/v10/196/1; battle with 1 dracolich
    301. !!HEv360:O?y-1;
    302. !!OW&y-1=y-65:R-1/6/d20000;
    303. !!FU&v9431=1:E; exit if ai
    304. !!IF&y-1=y-65:Q1/6/20000/1^{Battle spoils}

    305. After defeating that magical creature, you loot it and found large amounts of gold!^;


    306. !?TM95&v9429>=2000/v9429<2100; [ 21. stat boost ]
    307. !!FU28101:P;
    308. !!FU&v1=-1:E;
    309. !!HEv1:P?v8/?v9/?v10;
    310. !!HEv1:Pv8/v9/v10;
    311. !!UN:Lv8/v9/v10/2000;

    312. !!VRy-1:S1 R3; 1-4

    313. !!OW:C?y-65;
    314. !!IF&v9431=1/y-1=1:Q1/10/y-65/4^{GODLIKE STRENGTH}^;
    315. !!IF&v9431=1/y-1=2:Q1/10/y-65/4^{ULTIMATE DEFENSE}^;
    316. !!IF&v9431=1/y-1=3:Q1/10/y-65/4^{WRATHFUL SPELLPOWER}^;
    317. !!IF&v9431=1/y-1=4:Q1/10/y-65/4^{DIVINE KNOWLEDGE}^;
    318. !!HEv1:B0/?z1;
    319. !!VRv2:S1 T2;
    320. !!HEv1&y-1=1:Fdv2/d/d/d;
    321. !!HEv1&y-1=2:Fd/dv2/d/d;
    322. !!HEv1&y-1=3:Fd/d/dv2/d;
    323. !!HEv1&y-1=4:Fd/d/d/dv2;
    324. !!FU&v9431=1:E; exit if ai
    325. !!IF&y-1=1:Q1/31/v2/1^{GODLIKE STRENGTH}

    326. %Z1 has meet a monk which is superior in hand to hand combat and offered him a rest for night. In thanks, monk have teached %Z1 and his army some good fighting techniques.^;
    327. !!IF&y-1=2:Q1/32/v2/1^{ULTIMATE DEFENSE}

    328. %Z1 has meet a monk which is superior in evading attacks and offered him a rest for night. In thanks, monk have teached %Z1 and his army some good defending techniques.^;
    329. !!IF&y-1=3:Q1/33/v2/1^{WRATHFUL SPELLPOWER}

    330. %Z1 has meet a monk which is superior in spellcasting and offered him a rest for night. In thanks, monk have teached %Z1 how to use his spells more effectively.^;
    331. !!IF&y-1=4:Q1/34/v2/1^{DIVINE KNOWLEDGE}

    332. %Z1 has meet a monk which is superior in concentration and offered him a rest for night. In thanks, monk have teached %Z1 and his army how to concentrate more about magic.^;


    333. !?TM95&v9429>=1900/v9429<2000; [ 20. death ]
    334. !!FU28101:P; random hero
    335. !!FU&v1=-1:E; exit if no hero
    336. !!HEv1:P?v8/?v9/?v10;
    337. !!UN:Lv8/v9/v10/2000;
    338. !!HEv1:Pv8/v9/v10;
    339. !!OW:C?y-65;
    340. !!IF&v9431=1:Q1/10/y-65/4^{FINGER OF DEATH}^;
    341. !!HEv1:B0/?z1;
    342. !!IF&v9431=0:M^{FINGER OF DEATH}

    343. It looks like angry god is casting magical spell on %Z1. If it connects, your hero will die with his all army.^;
    344. !!UN:Lv8/v9/v10/500;
    345. !!HEv1:Ed/?v360; get hero level
    346. !!VRv360:T20 +2; +random 1-20
    347. !!VRv361:S0 R20; random 1-20
    348. !!IF&v9431=0/v360>=v361:Q1/11/3/1^{FINGER OF DEATH}

    349. Your hero successfully resisted spell!^;
    350. !!FU&v360>=v361:E; exit
    351. !!IF&v9431=0:Q1/13/3/1^{FINGER OF DEATH}

    352. Spell-resist failed, it means that %Z1 is out of here.^;
    353. !!HEv1&v9431=0:K;
    354. !!HEv1&v9431=1:Tv8/v9/v10/196/9999;
    355. !!VRv360:S0 T1000;
    356. !!FU&v360<500:E;
    357. !!OW:V-1/v1/d;

    358. !?TM95&v9429>=1800/v9429<1900; [ 19. storm ]
    359. !!FU28101:P; random hero
    360. !!FU&v1=-1:E; exit if no hero present
    361. !!HEv1:P?v8/?v9/?v10;
    362. !!UN:Lv8/v9/v10/2000;
    363. !!HEv1:Pv8/v9/v10;
    364. !!OW:C?y-65;
    365. !!IF&v9431=1:Q1/10/y-65/4^{STORM}^;
    366. !!HEv1:B0/?z1;
    367. !!VRy-2:S25 R20 *c;
    368. !!VRy-1:Sy-2 :2 Ty-2;
    369. !!VRz2:S^{STORM}

    370. Lightnings are striking %Z1 ^;
    371. !!VRv360:S0; initialize variable
    372. !!FU28118:P0/y-1;
    373. !!FU28118:P1/y-1;
    374. !!FU28118:P2/y-1;
    375. !!FU28118:P3/y-1;
    376. !!FU28118:P4/y-1;
    377. !!FU28118:P5/y-1;
    378. !!FU28118:P6/y-1;
    379. !!VRz2&v360=0:+^but you suffer no losses.^;
    380. !!VRz2&v360=1:+^it looks like gods turned angry on you!^;
    381. !!IF&v9431=0:Q1/13/3/1^%Z2^;

    382. !?FU28118; strike hero creature x1 with x2 damage points
    383. !!HEv1:C0/x1/?v361/?v362; [v361 = creature type, v362 = creature count]
    384. !!FU&v361=-1|v362<=0:E; exit if no creature here
    385. !!MA:Pv361/?v363; [v363 = signle creature hp]
    386. !!VRv364:Sx2 :v363; [ get kill count ]
    387. !!FU&v364<=0:E; [ exit if havent killed anything ]
    388. !!VRv362:-v364;
    389. !!VRv361&v362<=0:S-1;
    390. !!VRv362&v362<=0:S0;
    391. !!HEv1:C0/x1/v361/v362;
    392. !!VRz2&v360=0:+^killing ^; add killing if killed something
    393. !!VRv360:S1; set killed flag
    394. !!UN&v364>1/v361>=0:N3/3/v361/1;
    395. !!UN&v364=1/v361>=0:N3/3/v361/0;
    396. !!VRz2:+^%V364 %Z3, ^;

    397. !?TM95&v9429>=1700/v9429<1800; [ 18. out of mana ]
    398. !!FU28101:P; random hero
    399. !!FU&v1=-1:E; exit if no hero
    400. !!HEv1:P?v8/?v9/?v10;
    401. !!HEv1:Pv8/v9/v10;
    402. !!UN:Lv8/v9/v10/2000;
    403. !!HEv1:I0;
    404. !!HEv1:B0/?z1;
    405. !!OW:C?y-66;
    406. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{OUT OF MANA}^;
    407. !!IF&v9431=0:Q1/35/0/1^{OUT OF MANA}

    408. %Z1 felt and hit large stone with his head. It affected all of his today concentration making %Z1 to lose all spell points.^;

    409. !?TM95&v9429>=1600/v9429<1700; [ 17. move ]
    410. !!FU28101:P; random hero
    411. !!FU&v1=-1:E; exit if no hero
    412. !!HEv1:P?v8/?v9/?v10;
    413. !!HEv1:Pv8/v9/v10;
    414. !!UN:Lv8/v9/v10/2000;
    415. !!HEv1:W?y-1;
    416. !!HEv1:Wdy-1; add 100% of move points
    417. !!HEv1:B0/?z1;
    418. !!OW:C?y-66;
    419. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{MOVE IT!}^;
    420. !!FU&v9431=1:E; exit if ai
    421. !!IF:M^{MOVE IT!}

    422. Your troops have received great morale watching you as great leader. %Z1 and his army can move as twice as far in this round.^;

    423. !?TM95&v9429>=1500/v9429<1600; [ 16. mana ]
    424. !!FU28101:P; random hero
    425. !!FU&v1=-1:E; exit if no hero
    426. !!HEv1:P?v8/?v9/?v10;
    427. !!HEv1:Pv8/v9/v10;
    428. !!UN:Lv8/v9/v10/2000;
    429. !!HEv1:B0/?z1;
    430. !!HEv1:Fd/d/d/?y-1;
    431. !!HEv1:S24/?v6;
    432. !!VRv5&v6=0:S10;
    433. !!VRv5&v6=1:S12;
    434. !!VRv5&v6=2:S15;
    435. !!VRv5&v6=3:S20;
    436. !!VRy-1:*v5;
    437. !!HEv1:Iy-1;
    438. !!OW:C?y-66;
    439. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{ALCHEMIST}^;
    440. !!IF&v9431=0:Q1/35/y-1/1^{ALCHEMIST}

    441. %Z1 has meet an alchemist. After some kindly talk, alchemist have given you a magical potion that restored full of your mana points.^;

    442. !?TM95&v9429>=1400/v9429<1500; [ 15. challenge ]
    443. !!FU28101:P;
    444. !!FU&v1=-1:E; exit if no hero
    445. !!VRy-1:Sc;
    446. !!FU&y-1<=20:E; exit if day <= 20
    447. !!FU28110:P;
    448. !!HEv1:P?v8/?v9/?v10;
    449. !!HEv1:Pv8/v9/v10;
    450. !!UN:Lv8/v9/v10/2000;
    451. !!UN:N3/1/v5/0;
    452. !!OW:A-1/v1;
    453. !!IF&v9431=0:Q1/21/v5/1^{AVENGER}

    454. You and your army were attacked by %Z1!^;
    455. !!OW:C?y-66;
    456. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{AVENGER}^;
    457. !!VRy-5:Sv1;
    458. !!HEv1:Tv8/v9/v10/v5/1;
    459. !!HEy-5:O?v6;
    460. !!FU&v6=-1:E; exit if he lost
    461. !!VRy-1:S4 R9 *1000;
    462. !!IF&v9431=0:Q1/6/y-1/1^{Battle Spoils}

    463. After defeating creature, you loot from him %Y-1 gold coins!^;
    464. !!OW:R-1/6/dy-1;

    465. !?FU28110; create 7LVL monster
    466. !!VRy-2:S0 R9;
    467. !!VRy-1&y-2=0:S12; ** ange **
    468. !!VRy-1&y-2=1:S26; ** green/gold draggy **
    469. !!VRy-1&y-2=2:S40; ** titan **
    470. !!VRy-1&y-2=3:S54; ** devils **
    471. !!VRy-1&y-2=4:S68; ** bones **
    472. !!VRy-1&y-2=5:S82; ** draggy **
    473. !!VRy-1&y-2=6:S96; ** behe **
    474. !!VRy-1&y-2=7:S110; ** hydre **
    475. !!VRy-1&y-2=8:S130; ** birds **
    476. !!VRy-1&y-2=9:S132; ** neut dragons **
    477. !!VRy-1&y-2=9:R3;
    478. !!VRy-1&y-2<>9:T1; ** randomly upgrade
    479. !!VRv5:Sy-1;

    480. !?TM95&v9429>=1300/v9429<1400; [ 14. illness ]
    481. !!FU28101:P; select hero
    482. !!FU&v1=-1:E; exit if no hero
    483. !!HEv1:P?v8/?v9/?v10;
    484. !!HEv1:Pv8/v9/v10;
    485. !!UN:Lv8/v9/v10/2000;
    486. !!HEv1:W0; set move to 0
    487. !!FU&v9431=1:E;
    488. !!HEv1:B0/?z1;
    489. !!OW:C?y-66;
    490. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{ILLNESS}^;
    491. !!IF:M^{ILLNESS}

    492. It looks like %Z1 is ill. He must rest one day and recouperate in order to walk again.^;

    493. !?TM95&v9429>=1200/v9429<1300; [ 13. plague ]
    494. !!FU28104:P; select castle
    495. !!FU&v1=-1:E; exit if no castle
    496. !!UN:Lv1/v2/v3/2000;
    497. !!CAv1/v2/v3:N?z1;
    498. !!IF&v9431=0:M^{PLAGUE}

    499. The %Z1 town is under plague! All population from %Z1 is halved!^;
    500. !!OW:C?y-66;
    501. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{PLAGUE}^;
    502. !!CAv1/v2/v3:M1/0/?v4/?v5;
    503. !!VRv4: :2;
    504. !!VRv5: :2;
    505. !!CAv1/v2/v3:M1/0/v4/v5;
    506. !!CAv1/v2/v3:M1/1/?v4/?v5;
    507. !!VRv4: :2;
    508. !!VRv5: :2;
    509. !!CAv1/v2/v3:M1/1/v4/v5;
    510. !!CAv1/v2/v3:M1/2/?v4/?v5;
    511. !!VRv4: :2;
    512. !!VRv5: :2;
    513. !!CAv1/v2/v3:M1/2/v4/v5;
    514. !!CAv1/v2/v3:M1/3/?v4/?v5;
    515. !!VRv4: :2;
    516. !!VRv5: :2;
    517. !!CAv1/v2/v3:M1/3/v4/v5;
    518. !!CAv1/v2/v3:M1/4/?v4/?v5;
    519. !!VRv4: :2;
    520. !!VRv5: :2;
    521. !!CAv1/v2/v3:M1/4/v4/v5;
    522. !!CAv1/v2/v3:M1/5/?v4/?v5;
    523. !!VRv4: :2;
    524. !!VRv5: :2;
    525. !!CAv1/v2/v3:M1/5/v4/v5;
    526. !!CAv1/v2/v3:M1/6/?v4/?v5;
    527. !!VRv4: :2;
    528. !!VRv5: :2;
    529. !!CAv1/v2/v3:M1/6/v4/v5;

    530. !?TM95&v9429>=1100/v9429<1200; [ 12. recruits ]
    531. !!FU28104:P; select castle
    532. !!FU&v1=-1:E; exit if no castle
    533. !!VRy-1:S0 R6; set monster level
    534. !!VRy-2:S30 +y-1; set building
    535. !!VRv6:S1; exit = 1
    536. !!VRv360:S0;
    537. !!CAv1/v2/v3:B3/y-2; check if its built
    538. !!VRv6&1:S0;
    539. !!VRy-2:+7;
    540. !!CAv1/v2/v3:B3/y-2; check if its built
    541. !!VRv6&1:S0;
    542. !!VRv360&1:S1; v7 = upgraded
    543. !!FU&v6=1:E; exit if not built
    544. !!VRy-5&y-1=0:S15 R15; level1: 15-30
    545. !!VRy-5&y-1=1:S10 R15; level2: 10-25
    546. !!VRy-5&y-1=2:S8 R10; level3: 8-18
    547. !!VRy-5&y-1=3:S6 R6; level4: 6-12
    548. !!VRy-5&y-1=4:S4 R6; level5: 4-10
    549. !!VRy-5&y-1=5:S2 R4; level6: 2-6
    550. !!VRy-5&y-1=6:S1 R2; level7: 1-3
    551. !!CAv1/v2/v3:M1/y-1/dy-5/dy-5; add creatures
    552. !!CAv1/v2/v3:T?y-6; get town type to y-6
    553. !!FU&v9431=1:E; exit if ai
    554. !!CAv1/v2/v3:N?z1; Z1 = name
    555. !!VRv5:S-1;
    556. !!DO28109/0/131/1:Py-6/y-1;
    557. !!FU&v5=-1:E; exit if cannot find monster (though should be impossible)
    558. !!VRv5&v360=0:-1;
    559. !!UN:N3/2/v5/1; Z2 = monster name
    560. !!UN:Lv1/v2/v3/2000;
    561. !!OW:C?y-66;
    562. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{RECRUITS}^;
    563. !!IF:Q1/21/v5/1^{RECRUITS}

    564. There are new recruits in %Z1 town! You can now recruit addtional %Y-5 %Z2 from %Z1!^;

    565. !?FU28109; get monster from castle type (x1) and level (x2) into v5
    566. !!MA:Lx16/?y-1;
    567. !!MA:Ox16/?y-2;
    568. !!VRv5&y-1=x2/y-2=x1:Sx16;

    569. !?TM95&v9429>=1000/v9429<1100; [ 11. rebellion ]
    570. !!FU28104:P; select castle
    571. !!FU&v1=-1:E; exit if no castle
    572. !!VRv5:Sc;
    573. !!FU&v5<18:E; exit if day is less than 28th
    574. !!CAv1/v2/v3:B3/13;
    575. !!FU&1:E; exit if he has capitol
    576. !!UN:Lv1/v2/v3/2000;
    577. !!OW:C?y-66;
    578. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{REBELLION}^;
    579. !!IF&v9431=0:M^{REBELLION}

    580. It looks like your city is in rebellion! You are losing control of your own city!^;
    581. !!UN:Lv1/v2/v3/500;
    582. !!CAv1/v2/v3:O-1; release owner
    583. !!UN:Lv1/v2/v3/1000;

    584. !?TM95&v9429>=900/v9429<1000; [ 10. sabotage ]
    585. !!FU28104:P; select castle
    586. !!FU&v1=-1:E; exit if no castle
    587. !!FU&v9431=1:E; exit if ai
    588. !!UN:Lv1/v2/v3/2000;
    589. !!CAv1/v2/v3:N?z1;
    590. !!IF:V1/0;
    591. !!VRz2:S^Assassins^;
    592. !!UN:G1/143/1/2;
    593. !!IF&v9431=0:Q1/6/1000/21/143/2^{ASSASSINS}

    594. Assassins have come to %Z1 castle. They are offering you their services. They can kill some of wandering monster stack for gold. Do you want to pay them 1000 gold coins for that?^;
    595. !!UN:G1/143/1/0;
    596. !!FU&-1:E; exit if no
    597. !!OW:R-1/6/?y-1;
    598. !!IF&y-1<1000:M^You don't have enough gold!^;
    599. !!FU&y-1<1000:E; exit if no cash
    600. !!OW:R-1/6/d-1000; decrease gold
    601. !!IF:M^You have paid assassins and they are ready. You must choose a wandering stack {IN THIS TURN} and Ctrl+Click them.^;
    602. !!VRv9432:S1; set assassins

    603. !?CM5; clicking on map
    604. !!FU&v9432=0:E; exit if cannot assassinate
    605. !!CM:F?y-1;
    606. !!FU&y-1<>4:E; exit if not ctrl+click
    607. !!CM:P?v1/?v2/?v3; get position to v1/v2/v3
    608. !!OBv1/v2/v3:T?y-6;
    609. !!FU&y-6<>54:E; exit if not clicked a monster
    610. !!MOv1/v2/v3:G?y-1; get number of monsters to y-1
    611. !!FU&y-1<=0|y-1>4000:E; exit if no monster or 4096 monsters
    612. !!VRy-2:S40 T50; set y-2 to 40~90
    613. !!VRy-3:S100 -y-2; set y-3 to 100-(y-2)
    614. !!VRy-1:*y-3 :100;
    615. !!VRy-1&y-1<=0:S1;
    616. !!MOv1/v2/v3:G?y-4;
    617. !!OBv1/v2/v3:U?y-5;
    618. !!UN:N3/1/y-5/1;
    619. !!VRy-4:-y-1;
    620. !!IF:V1/0;
    621. !!IF:Q1^{Assassins}

    622. Do you want to assassinate %Z1?^;
    623. !!FU&-1:E; exit if no
    624. !!IF:M^{Assassins}

    625. Good job! Now %Z1 are going down by %Y-4. You should take then down now easily!^;
    626. !!MOv1/v2/v3:Gy-1;
    627. !!VRv9432:S0; turn off assassination

    628. !?TM95&v9429>=800/v9429<900; [ 09. trainer ]
    629. !!FU28101:P;
    630. !!FU&v1=-1:E;
    631. !!HEv1:P?v8/?v9/?v10;
    632. !!HEv1:Pv8/v9/v10;
    633. !!HEv1:B0/?z1;
    634. !!UN:Lv8/v9/v10/2000;
    635. !!VRy-1:S1 R14 *1000;
    636. !!IF:V1/0;
    637. !!OW:C?y-66;
    638. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{TRAINER}^;
    639. !!IF&v9431=0:Q1/6/y-1/17/y-1/2^{TRAINER}

    640. While adventuring, {%Z1} has meet a trainer. He trains heroes very rapidly, but his services cost very much. He offers you %Y-1 experience for %Y-1 gold coins. Do you want to train?^;
    641. !!IF&v9431=1:V1/1; always yes for ai
    642. !!FU&-1:E; exit if no
    643. !!OW:R-1/6/?y-2; get cash
    644. !!IF&y-2<y-1/v9431=0:M^You don't have enough gold!^;
    645. !!FU&y-2<y-1:E; exit if no cash
    646. !!HEv1:Edy-1; give exp
    647. !!VRy-2:-y-1; reduce cash
    648. !!OW:R-1/6/y-2; set cash

    649. !?TM95&v9429>=700/v9429<800; [ 08. map ]
    650. !!FU28104:P; [ select rnd castle ]
    651. !!FU&v1=-1:E; [ exit if no castle ]
    652. !!UN:Lv1/v2/v3/2000;
    653. !!CAv1/v2/v3:N?z1;
    654. !!UN:X?v360/?v361;
    655. !!VRv1:S0 Rv360;
    656. !!VRv2:S0 Rv360;
    657. !!VRv3:S0 Tv361;
    658. !!VRv4:S6;
    659. !!VRv5:S2 +c;
    660. !!VRv4:Rv5;
    661. !!VRv5:S325 *v4 +2000;
    662. !!IF:V1/0;
    663. !!OW:C?y-66;
    664. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{CARTOGRAPHER}^;
    665. !!IF&v9431=0:Q1/6/v5/8/52/2^{CARTOGRAPHER}

    666. An experienced Cartographer approached to {%Z1} city. He want to sell you some maps of this land, and that all for %V5 gold coins. Do you want to buy maps?^;
    667. !!IF&v9431=1:V1/1;

    668. !!FU&-1:E; exit if clicked no

    669. !!OW:R-1/6/?v6;
    670. !!IF&v6<v5/v9431=0:M^You don't have enough gold!^;
    671. !!FU&v6<v5:E; exit if not got the cash
    672. !!VRv6:-v5;
    673. !!OW:R-1/6/v6; deduct cash
    674. !!OW:C?y-2;
    675. !!UN:Lv1/v2/v3/100; show it
    676. !!UN:Sv1/v2/v3/y-2/v4; open area
    677. !!UN:Lv1/v2/v3/2000; center screen and thats all

    678. !?TM95&v9429>=600/v9429<700/v9431=0; [ 07. summoner ]
    679. !!FU28101:P; [v1 = our random hero]
    680. !!FU&v1=-1:E; [ exit if no hero ]
    681. !!HEv1:P?v8/?v9/?v10;
    682. !!HEv1:Pv8/v9/v10;
    683. !!HEv1:B0/?z1;
    684. !!UN:Lv8/v9/v10/2000;
    685. !!IF:V1/0;
    686. !!OW:C?y-66;
    687. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{SUMMONER}^;
    688. !!IF&v9431=0:Q1^{SUMMONER}

    689. %Z1 meets a magic summoner. He is very kindly and he wants to make you a favor. He offers you teleport to one of your cities for free. Do you want to use his service?^;

    690. !!VRy-1:S0 T1000;
    691. !!IF&v9431=1/y-1<1200:V1/1;
    692. !!FU&-1:E; exit if choosen "no"
    693. !!OW&v9431=0:A-1/v1;
    694. !!HEv1&v9431=0:S17/?y-2;
    695. !!HEv1&v9431=0:S17/3; set master earth magic
    696. !!OW&v9431=0:S1/9; cast town portal
    697. !!HEv1&v9431=0:S17/y-2; bring his skill back
    698. !!FU&v9431=0:E; exit if no ai
    699. !!FU28104:P; select city
    700. !!FU&v1=-1:E; exit if no city
    701. !!HEv1:Pv1/v2/v3/1; tp to city

    702. !?TM95&v9429>=500/v9429<600; [ 06. artifact ]
    703. !!FU28101:P; [v1 = our random hero]

    704. !?TM95&v9429>=500/v9429<600/v1<>-1; continue only if hero specified
    705. !!VRy-1:S7 T121;
    706. !!UN:Ay-1/3/?y-2; store art level in y-2
    707. !!VRv5&y-2=1:S100;
    708. !!VRv5&y-2=2:S300;
    709. !!VRv5&y-2=4:S2500;
    710. !!VRv5&y-2=8:S8000;
    711. !!VRv5&y-2=16:S15000;
    712. !!VRv6:Sv5 Rv5;
    713. !!HEv1:B0/?z1;
    714. !!HEv1:P?v8/?v9/?v10;
    715. !!HEv1:Pv8/v9/v10;
    716. !!UN:Lv8/v9/v10/2000;
    717. !!OW:C?y-66;
    718. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{ARTIFACT SELLER}^;
    719. !!IF:V1/0;
    720. !!IF&v9431=0:Q1/6/v6/8/y-1/2^{ARTIFACT SELLER}

    721. An artifact seller comes to %Z1 hero. He wants to sell you an artifact for %V6 gold coins. Do you agree?^;
    722. !!IF&v9431=1:V1/1;
    723. !!FU&-1:E; exit if no
    724. !!OW:R-1/6/?v4;
    725. !!VRv4:-v6;
    726. !!OW&v4>=0:R-1/6/v4;
    727. !!HEv1&v4>=0:A4/y-1;
    728. !!IF&v4<0/v9431=0:M^You don't have enough gold!^;

    729. !?TM95&v9429>=400/v9429<500; [ 05. scout ]
    730. !!FU28104:P;

    731. !?TM95&v9429>=400/v9429<500/v1<>-1; he has city
    732. !!CAv1/v2/v3:N?z1;
    733. !!UN:Lv1/v2/v3/2000;
    734. !!OW:C?y-66;
    735. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{SCOUT}^;
    736. !!IF:V1/0;
    737. !!IF&v9431=0:Q1/6/4000/8/53/2^{SCOUT}

    738. An freelancer scout comes to your town %Z1. He offers you an information about some of enemy and neutral towns for 4000 gold apiece. Do you agree?^;
    739. !!IF&v9431=1:V1/1;

    740. !?TM95&v9429>=400/v9429<500/v1<>-1/1;
    741. !!OW:R-1/6/?v360;
    742. !!VRv360:-4000;
    743. !!OW&v360>=0:R-1/6/v360;
    744. !!IF&v9431=0/v360<0:M^You don't have enough money!^;

    745. !?TM95&v9429>=400/v9429<500/v1<>-1/1/v360>=0;
    746. !!UN:U98/-1/?v7;
    747. !!DO28108/1/v7/1:P;

    748. !?TM95&v9429>=300/v9429<400; [ 04. random hero ]
    749. !!VRv8:S-1;
    750. !!VRv9:S-1;
    751. !!VRv10:S-1;
    752. !!FU28104:P;

    753. !?TM95&v9429>=300/v9429<400/v1<>-1; if he has castle
    754. !!OW:H-1/360/0;

    755. !?TM95&v9429>=300/v9429<400/v1<>-1/v360<8; if he has hero-slot
    756. !!VRv361:S0 T155;
    757. !!HEv361:O?v362;

    758. !?TM95&v9429>=300/v9429<400/v1<>-1/v360<8/v362=-1; if that hero is free
    759. !!UN:Lv1/v2/v3/1000;
    760. !!IF:V1/0;
    761. !!HEv361:B0/?z2;
    762. !!UN:Lv1/v2/v3/1000;
    763. !!CAv1/v2/v3:N?z1;
    764. !!IF&v9431=0:Q1^{HERO}

    765. Suddenly a hero named %Z2 comes to %Z1 town. He is offering his services for you. Do you want to hire him?^;
    766. !!IF&v9431=1:V1/1;

    767. !?TM95&v9429>=300/v9429<400/v1<>-1/v360<8/v362=-1/1;
    768. !!OW:C?y2;
    769. !!VRy-1:Sv1 +1;
    770. !!VRy1:S200 T20000;
    771. !!VRy3:S0 R4;
    772. !!VRy4:S0 R4;
    773. !!VRy5:S0 R4;
    774. !!VRy6:S0 R4;
    775. !!VRy7:Sy1 :3000;
    776. !!HEv361:Ey1;
    777. !!HEv361:Fdy3/dy4/dy5/dy6;
    778. !!HEv361:Py-1/v2/v3;
    779. !!HEv361:Oy2;
    780. !!VRy7:T3;
    781. !!HEv361:Py-1/v2/v3;
    782. !!UN:Ly-1/v2/v3/500;
    783. !!OW:C?y-66;
    784. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{HERO}^;

    785. !?TM95&v9429>=200/v9429<300; [ 03. resources ]
    786. !!FU28104:P; [ get random castle ]

    787. !?TM95&v9429>=200/v9429<300/v1<>-1; [ if castle is present ]
    788. !!VRy1:S0 T7;
    789. !!VRy2:S1 T12;
    790. !!VRy2&y1=6:*400;
    791. !!UN:Lv1/v2/v3/2000;
    792. !!CAv1/v2/v3:N?z1;
    793. !!OW:C?y-66;
    794. !!IF&v9431=1:Q1/10/y-66/-1/-1/4^{TREASURY}^;
    795. !!IF&v9431=0/y1<>6:Q1/y1/y2/1^{TREASURY}

    796. Your workers from %Z1 town have managed to get addtional resources.^;
    797. !!IF&v9431=0/y1=6:Q1/y1/y2/1^{TAXES}

    798. Your are dealing with taxes in %Z1 town, and you have earned %Y2 gold coins from that.^;

    799. !!OW:R-1/y1/dy2;

    800. !?TM95&v9429>=100/v9429<200; [ 02. spell ]
    801. !!FU$spell$:P0/0/0/0/1/0; [ generate random spell ]
    802. !!FU7779:Py-99; y-99 is spell
    803. !!FU28101:P;
    804. !!VRv5&y-96=1:S200;
    805. !!VRv5&y-96=2:S600;
    806. !!VRv5&y-96=3:S1500;
    807. !!VRv5&y-96=4:S4000;
    808. !!VRv5&y-96=5:S9000;
    809. !!VRv5:Tv5; v5 is cost
    810. !!VRv7:Sy-99;

    811. !?TM95&v9429>=100/v9429<200/v1<>-1; if hero selected
    812. !!VRy-99:Sv7;
    813. !!HEv1:B0/?z1;
    814. !!HEv1:P?v8/?v9/?v10;
    815. !!HEv1:Pv8/v9/v10;
    816. !!UN:Lv8/v9/v10/500;
    817. !!UN:N1/2/y-99;
    818. !!OW:C?y-66;
    819. !!IF&v9431=1:Q8/10/y-66/-1/-1/4^{SCHOLAR}^;

    820. !!IF:V1/0; clear flag
    821. !!IF&v9431=0:Q1/6/v5/9/y-99/2^{SCHOLAR}

    822. A scholar came to %Z1. He says that he is walking over world and teaching spells. He can teach you %Z2 spell for %V5 gold coins. Do you agree?^;
    823. !!IF&v9431=1:V1/1;

    824. !?TM95&v9429>=100/v9429<200/v1<>-1/1; if clicked yes
    825. !!VRy-99:Sv7;
    826. !!OW:R-1/6/?v6;
    827. !!VRv7:Sv6 -v5;
    828. !!IF&v7<0/v9431=0:M^You don't have enought money!^;
    829. !!FU&v7<0:E;
    830. !!HEv1&v7>=0:My-99/1;
    831. !!OW:R-1/6/v7;

    832. !?TM95&v9429>0/v9429<100; [ 01. troops ]
    833. !!VRv361:S0 T173; [ generate random unit ]

    834. !!VRv361&v361=145:S192; [ catapult ]
    835. !!VRv361&v361=146:S193; [ ballista ]
    836. !!VRv361&v361=147:S194; [ ammo cart ]
    837. !!VRv361&v361=148:S195; [ arrow tower woot ]
    838. !!VRv361&v361=149:S196; [ first aid tent ]
    839. !!VRv361&v361=122:S192; [ placeholder ]
    840. !!VRv361&v361=124:S194; [ placeholder ]
    841. !!VRv361&v361=128:S196; [ placeholder ]

    842. !!MA:Lv361/?v362; get creature level to v362
    843. !!VRy1:Sc;
    844. !!VRy2:Sy1 :7 +1;
    845. !!VRy3:S7 -v362 *y2;
    846. !!VRv363:S1 Ry3;

    847. !?TM95&v9429>0/v9429<100; [place units to hero]
    848. !!FU28101:P; [v1 = our random hero]

    849. !?TM95&v9429>0/v9429<100/v1<>-1;
    850. !!MA:Cv361/6/?y3;
    851. !!VRv364:Sy3 *v363;

    852. !!HEv1:P?v365/?v366/?v367;
    853. !!HEv1:B0/?z2;
    854. !!UN:Lv365/v366/v367/500;
    855. !!HEv1:Pv365/v366/v367/1;

    856. !!OW:C?y-66;
    857. !!IF&v9431=1:Q8/10/y-66/-1/-1/4^{FREELANCERS}^;

    858. !!UN:N3/1/v361/1;

    859. [ cost v364 gold , deduct money, add to v1 hero creature #v361 with count v363 ]
    860. !!IF:V1/0;
    861. !!VRy5:S65536 *v363 +v361;
    862. !!IF&v9431=0:Q1/6/v364/21/y5/2^{FREELANCERS}

    863. Attention of {%Z2} was attracted with walking %V363 %Z1. They are freelancers looking for new job and would join to you for %V364 gold. Do you want to hire them?^;
    864. !!IF&v9431=1:V1/1;

    865. !!OW:R-1/6/?v365;
    866. !!IF&1/v9431=0/v365<v364:M^You don't have enough gold!^;

    867. !!VRv5:Sv365 -v364;
    868. !!OW&1/v365>=v364:R-1/6/v5;
    869. !!HEv1&1/v9431=0/v365=>v364:C2/v361/v363/1;
    870. !!HEv1&1/v9431=1/v365=>v364:C2/v361/v363/0;
    复制代码
    转帖http://www.celestialheavens.com/forums/viewtopic.php?t=10546  Daily growth script
    http://www.celestialheavens.com/forums/viewtopic.php?t=10548 Random Events script
    桌面.rar (9.87 KB, 下载次数: 8)
    在这贴更新 地图 xl地图和部分wog mod
    此处头5副 http://www.maps4heroes.com/heroe ... possible&sort=2
    新指挥者.rar (3.39 MB, 下载次数: 15)

    [ 本帖最后由 nwljy 于 2009-12-14 20:15 编辑 ]

    ditu.rar

    4.38 MB, 下载次数: 7, 下载积分: 金币 -2

    评分

    1

    查看全部评分

    该用户从未签到

    564

    回帖

    7307

    金币

    0

    精华

    4级 Famous Hero

    Rank: 4

    积分
    1247
    发表于 2009-12-14 19:33:42 | 显示全部楼层
    很有趣的脚本,可以使生物每天生长,不必等一周一次的生长周期,像h4一样。
    体验下,谢谢提供!
  • TA的每日心情

    2023-8-26 12:35
  • 签到天数: 6 天

    连续签到: 1 天

    [LV.2]野猪

    39

    回帖

    7532

    金币

    1

    精华

    1级 Hired Hero

    Rank: 1

    积分
    178

    社区QQ达人

     楼主| 发表于 2009-12-14 20:29:06 | 显示全部楼层
    版主向我反映erm无效 能人可否帮忙看看那出错了 xianwo(每周生物成长)
    zz007大大我不是说你 ............. yexian大问我那erm无效啊 .............
    还有更新记得备份,我悲剧啊,指挥官描述变英文的

    [ 本帖最后由 nwljy 于 2009-12-15 22:26 编辑 ]

    该用户从未签到

    1551

    回帖

    1万

    金币

    4

    精华

    4级 Famous Hero

    Rank: 4

    积分
    2102

    退役版主论坛元老

    发表于 2009-12-14 21:31:10 | 显示全部楼层

    该用户从未签到

    15

    回帖

    7505

    金币

    0

    精华

    1级 Hired Hero

    Rank: 1

    积分
    93
    发表于 2010-3-20 07:56:45 | 显示全部楼层
    ,。。。。
    ahome_bigavatar:guest
    ahome_bigavatar:welcomelogin
    您需要登录后才可以回帖 登录 | 英雄注册|Register

    本版积分规则

    捐赠
    关注我们,英3Mod一网打尽!

    WoG中文站 ( 辽B2-20210485-10 )|辽公网安备 21128202000228 号

    GMT+8, 2025-4-21 00:34 , Processed in 1.500965 second(s), 20 queries , Gzip On, File On.

    Powered by Discuz! X3.4

    Copyright © 2004-2022, Beijing Second Sight Technology Co., LTD.

    快速回复 返回顶部 返回列表