1
0

fight_npcdata.qsrc 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. # fight_npcdata
  2. !2020/10/16
  3. !!{ Add an NPC of this type to a Team for a fight
  4. $ARGS[0] = The NPC Name or Type (e.g: tatiana, gustav, rapist, mugger)
  5. $ARGS[1] = Team to add the NPC to. Can be 'pcs' or 'opp'. Default is 'opp'
  6. $ARGS[2] = (Optional) Name to give the NPC, Overrides built in name
  7. Attributes that can be set:
  8. name = <<name of opponent>>
  9. image = opponent image ie. '<img <<$set_imgh>> src="images/characters/city/tobi/tobi.jpg">'
  10. def = opponent defence
  11. run = Opponent running skill used for player escape
  12. wrstlng = Wrestling skill
  13. kick = Kicking
  14. punch = Power punch
  15. jab = Light punch
  16. stren = Strengh
  17. agil = Agility
  18. vital = vitality
  19. react = Reactions
  20. health = Health
  21. willpwr = willpower
  22. shoot = opponent marksmanship (only required if they are armed)
  23. magik = only if they have magic
  24. mana = only if they have magic
  25. fog = (tuman): Obscures vision, makes hitting harder.
  26. clone = (klon): Copies of the char that absorb 1 hit and disappear. A char may have some number of them.
  27. shield = (defence): Shielding that absorbs damage before hitpoints.
  28. dambonus = (magweapbonus): damage added to melee attacks
  29. init = (initBonus): attack faster/first
  30. stun = (stunner): make target unable to act for some amount of time
  31. spells = comma delimited list of spell names
  32. }
  33. $NPCFS_Team = $ARGS[1]
  34. if $NPCFS_Team = '':
  35. $NPCFS_Team = 'opp'
  36. end
  37. NPCFS_TeamSlot=dyneval('result=arrsize(''$<<$NPCFS_Team>>_name'')')
  38. $setNPCFightStats = {
  39. !! $ARGS[0] = Attrib Name
  40. !! $ARGS[1]/ARGS[1] = Value to set the Attribute
  41. $NPCFS_Attrib = $ARGS[0]
  42. ! See if Value passed is String or Number
  43. $NPCFS_Value = $ARGS[1]
  44. NPCFS_Value = ARGS[1]
  45. if $NPCFS_Value = '':
  46. !Numeric type Array
  47. dynamic '<<$NPCFS_Team>>_<<$NPCFS_Attrib>>[<<NPCFS_TeamSlot>>] = <<NPCFS_Value>>'
  48. else
  49. !String type Array
  50. dynamic '$<<$NPCFS_Team>>_<<$NPCFS_Attrib>>[<<NPCFS_TeamSlot>>] = ''<<$NPCFS_Value>>'''
  51. !'''' colour fix for editing program
  52. end
  53. }
  54. $calcNPCFightHealth = {
  55. NPCFightStatStr = dyneval("result=<<$NPCFS_Team>>_stren[<<NPCFS_TeamSlot>>]")
  56. NPCFightStatVit = dyneval("result=<<$NPCFS_Team>>_vital[<<NPCFS_TeamSlot>>]")
  57. result = NPCFightStatStr*5 + NPCFightStatVit*5
  58. }
  59. if $args[0] = 'gustav':
  60. dynamic $setNPCFightStats, 'name', 'Gustav'
  61. dynamic $setNPCFightStats, 'image', 'images/characters/city/jugo/jugopre.jpg'
  62. dynamic $setNPCFightStats, 'def', 100
  63. dynamic $setNPCFightStats, 'run', 75
  64. dynamic $setNPCFightStats, 'wrstlng', 75
  65. dynamic $setNPCFightStats, 'kick', 75
  66. dynamic $setNPCFightStats, 'punch', 85
  67. dynamic $setNPCFightStats, 'jab', 75
  68. dynamic $setNPCFightStats, 'stren', 250
  69. dynamic $setNPCFightStats, 'agil', 60
  70. dynamic $setNPCFightStats, 'vital', 200
  71. dynamic $setNPCFightStats, 'react', 50
  72. dynamic $setNPCFightStats, 'willpwr', 50
  73. dynamic $setNPCFightStats, 'shoot', 100
  74. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  75. fightEnding = 2
  76. end
  77. if $args[0] = 'tatiana':
  78. dynamic $setNPCFightStats, 'name', 'Tatiana'
  79. dynamic $setNPCFightStats, 'image', 'images/characters/city/tatiana/magiclook.jpg'
  80. dynamic $setNPCFightStats, 'def', 30
  81. dynamic $setNPCFightStats, 'run', 75
  82. dynamic $setNPCFightStats, 'wrstlng', 10
  83. dynamic $setNPCFightStats, 'kick', 50
  84. dynamic $setNPCFightStats, 'punch', 50
  85. dynamic $setNPCFightStats, 'jab', 50
  86. dynamic $setNPCFightStats, 'stren', 30
  87. dynamic $setNPCFightStats, 'agil', 75
  88. dynamic $setNPCFightStats, 'vital', 100
  89. dynamic $setNPCFightStats, 'react', 60
  90. dynamic $setNPCFightStats, 'willpwr', 100
  91. dynamic $setNPCFightStats, 'shoot', 100
  92. dynamic $setNPCFightStats, 'magik', 1
  93. dynamic $setNPCFightStats, 'mana', 200
  94. dynamic $setNPCFightStats, 'spells', 'fog,clone,stun,energo'
  95. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  96. fightEnding = 3
  97. end
  98. if $args[0] = 'prostitute':
  99. dynamic $setNPCFightStats, 'name', 'Prostitute'
  100. dynamic $setNPCFightStats, 'image', 'images/locations/city/shared/streetwalker/working<<rand(1,4)>>.jpg'
  101. dynamic $setNPCFightStats, 'def', rand(25,35)
  102. dynamic $setNPCFightStats, 'run', rand(25,35)
  103. dynamic $setNPCFightStats, 'wrstlng', rand(5,15)
  104. dynamic $setNPCFightStats, 'kick', 5
  105. dynamic $setNPCFightStats, 'punch', rand(5,15)
  106. dynamic $setNPCFightStats, 'jab', rand(5,15)
  107. dynamic $setNPCFightStats, 'stren', rand(15,25)
  108. dynamic $setNPCFightStats, 'agil', rand(25,35)
  109. dynamic $setNPCFightStats, 'vital', rand(45,55)
  110. dynamic $setNPCFightStats, 'react', rand(25,35)
  111. dynamic $setNPCFightStats, 'willpwr', 50
  112. dynamic $setNPCFightStats, 'shoot', 10
  113. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  114. fightEnding = 4
  115. end
  116. if $args[0] = 'bandit':
  117. dynamic $setNPCFightStats, 'name', 'Bandit'
  118. dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/mugger.jpg'
  119. dynamic $setNPCFightStats, 'def', rand(5,15)
  120. dynamic $setNPCFightStats, 'run', 30
  121. dynamic $setNPCFightStats, 'wrstlng', rand(5,15)
  122. dynamic $setNPCFightStats, 'kick', 0
  123. dynamic $setNPCFightStats, 'punch', rand(5,15)
  124. dynamic $setNPCFightStats, 'jab', rand(5,15)
  125. dynamic $setNPCFightStats, 'stren', rand(95,115)
  126. dynamic $setNPCFightStats, 'agil', rand(15,25)
  127. dynamic $setNPCFightStats, 'vital', rand(65,75)
  128. dynamic $setNPCFightStats, 'react', rand(15,25)
  129. dynamic $setNPCFightStats, 'willpwr', 50
  130. dynamic $setNPCFightStats, 'shoot', 10
  131. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  132. fightEnding = 5
  133. end
  134. if $args[0] = 'prostitute2':
  135. dynamic $setNPCFightStats, 'name', 'Prostitute'
  136. dynamic $setNPCFightStats, 'image', 'images/locations/city/shared/streetwalker/working<<rand(1,4)>>.jpg'
  137. dynamic $setNPCFightStats, 'def', 10
  138. dynamic $setNPCFightStats, 'run', 50
  139. dynamic $setNPCFightStats, 'wrstlng', 10
  140. dynamic $setNPCFightStats, 'kick', 0
  141. dynamic $setNPCFightStats, 'punch', 10
  142. dynamic $setNPCFightStats, 'jab', 10
  143. dynamic $setNPCFightStats, 'stren', 50
  144. dynamic $setNPCFightStats, 'agil', 40
  145. dynamic $setNPCFightStats, 'vital', 60
  146. dynamic $setNPCFightStats, 'react', 30
  147. dynamic $setNPCFightStats, 'willpwr', 50
  148. dynamic $setNPCFightStats, 'shoot', 10
  149. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  150. fightEnding = 6
  151. end
  152. if $args[0] = 'kisame':
  153. dynamic $setNPCFightStats, 'name', 'Kisame'
  154. dynamic $setNPCFightStats, 'image', 'images/characters/city/kisame/kisamev.jpg'
  155. dynamic $setNPCFightStats, 'def', 100
  156. dynamic $setNPCFightStats, 'run', 100
  157. dynamic $setNPCFightStats, 'wrstlng', 75
  158. dynamic $setNPCFightStats, 'kick', 0
  159. dynamic $setNPCFightStats, 'punch', 100
  160. dynamic $setNPCFightStats, 'jab', 100
  161. dynamic $setNPCFightStats, 'stren', 150
  162. dynamic $setNPCFightStats, 'agil', 100
  163. dynamic $setNPCFightStats, 'vital', 150
  164. dynamic $setNPCFightStats, 'react', 100
  165. dynamic $setNPCFightStats, 'willpwr', 100
  166. dynamic $setNPCFightStats, 'shoot', 100
  167. dynamic $setNPCFightStats, 'magik', 1
  168. dynamic $setNPCFightStats, 'mana', 500
  169. dynamic $setNPCFightStats, 'spells', 'leechmana,flood,blister,sharkrockets'
  170. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  171. fightEnding = 7
  172. end
  173. if $args[0] = 'rapist':
  174. dynamic $setNPCFightStats, 'name', 'Rapist'
  175. dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/rapist.jpg'
  176. dynamic $setNPCFightStats, 'def', rand(40,60)
  177. dynamic $setNPCFightStats, 'run', rand(40,60)
  178. dynamic $setNPCFightStats, 'wrstlng', rand(5,15)
  179. dynamic $setNPCFightStats, 'kick', 0
  180. dynamic $setNPCFightStats, 'punch', rand(40,60)
  181. dynamic $setNPCFightStats, 'jab', rand(40,60)
  182. dynamic $setNPCFightStats, 'stren', rand(70,90)
  183. dynamic $setNPCFightStats, 'agil', rand(30,50)
  184. dynamic $setNPCFightStats, 'vital', rand(40,60)
  185. dynamic $setNPCFightStats, 'react', rand(30,50)
  186. dynamic $setNPCFightStats, 'willpwr', 100
  187. dynamic $setNPCFightStats, 'shoot', 100
  188. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  189. fightEnding = 8
  190. end
  191. if $args[0] = 'robber':
  192. dynamic $setNPCFightStats, 'name', 'Robber'
  193. dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/mugger.jpg'
  194. dynamic $setNPCFightStats, 'def', rand(40,60)
  195. dynamic $setNPCFightStats, 'run', rand(40,60)
  196. dynamic $setNPCFightStats, 'wrstlng', rand(5,15)
  197. dynamic $setNPCFightStats, 'kick', 0
  198. dynamic $setNPCFightStats, 'punch', rand(40,60)
  199. dynamic $setNPCFightStats, 'jab', rand(40,60)
  200. dynamic $setNPCFightStats, 'stren', rand(60,80)
  201. dynamic $setNPCFightStats, 'agil', rand(30,50)
  202. dynamic $setNPCFightStats, 'vital', rand(40,60)
  203. dynamic $setNPCFightStats, 'react', rand(30,50)
  204. dynamic $setNPCFightStats, 'willpwr', 100
  205. dynamic $setNPCFightStats, 'shoot', 100
  206. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  207. if rand(0,10) < 5:
  208. fightEnding = 8
  209. else
  210. fightEnding = 9
  211. end
  212. end
  213. if $args[0] = 'snatcher':
  214. dynamic $setNPCFightStats, 'name', 'Purse Snatcher'
  215. dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/pursesnatch.jpg'
  216. dynamic $setNPCFightStats, 'def', rand(40,60)
  217. dynamic $setNPCFightStats, 'run', rand(40,60)
  218. dynamic $setNPCFightStats, 'wrstlng', rand(5,15)
  219. dynamic $setNPCFightStats, 'kick', 0
  220. dynamic $setNPCFightStats, 'punch', rand(40,60)
  221. dynamic $setNPCFightStats, 'jab', rand(40,60)
  222. dynamic $setNPCFightStats, 'stren', rand(60,80)
  223. dynamic $setNPCFightStats, 'agil', rand(30,50)
  224. dynamic $setNPCFightStats, 'vital', rand(40,60)
  225. dynamic $setNPCFightStats, 'react', rand(30,50)
  226. dynamic $setNPCFightStats, 'willpwr', 100
  227. dynamic $setNPCFightStats, 'shoot', 100
  228. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  229. fightEnding = 9
  230. end
  231. if $args[0] = 'dimka':
  232. dynamic $setNPCFightStats, 'name', 'Dimka'
  233. dynamic $setNPCFightStats, 'image', 'images/characters/pavlovsk/school/head/1.jpg'
  234. dynamic $setNPCFightStats, 'def', 50
  235. dynamic $setNPCFightStats, 'run', 50
  236. dynamic $setNPCFightStats, 'wrstlng', 10
  237. dynamic $setNPCFightStats, 'kick', 0
  238. dynamic $setNPCFightStats, 'punch', 50
  239. dynamic $setNPCFightStats, 'jab', 50
  240. dynamic $setNPCFightStats, 'stren', 100
  241. dynamic $setNPCFightStats, 'agil', 40
  242. dynamic $setNPCFightStats, 'vital', 50
  243. dynamic $setNPCFightStats, 'react', 40
  244. dynamic $setNPCFightStats, 'willpwr', 100
  245. dynamic $setNPCFightStats, 'shoot', 100
  246. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  247. fightEnding = 10
  248. end
  249. if $args[0] = 'stranger':
  250. dynamic $setNPCFightStats, 'name', 'Stranger'
  251. dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/rapist.jpg'
  252. dynamic $setNPCFightStats, 'def', 10
  253. dynamic $setNPCFightStats, 'run', 20
  254. dynamic $setNPCFightStats, 'wrstlng', 10
  255. dynamic $setNPCFightStats, 'kick', 0
  256. dynamic $setNPCFightStats, 'punch', 10
  257. dynamic $setNPCFightStats, 'jab', 10
  258. dynamic $setNPCFightStats, 'stren', 100
  259. dynamic $setNPCFightStats, 'agil', 10
  260. dynamic $setNPCFightStats, 'vital', 50
  261. dynamic $setNPCFightStats, 'react', 10
  262. dynamic $setNPCFightStats, 'willpwr', 100
  263. dynamic $setNPCFightStats, 'shoot', 100
  264. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  265. fightEnding = 11
  266. end
  267. if $args[0] = 'christina':
  268. dynamic $setNPCFightStats, 'name', 'Christina'
  269. dynamic $setNPCFightStats, 'image', 'images/characters/shared/photos/18.jpg'
  270. dynamic $setNPCFightStats, 'def', 45
  271. dynamic $setNPCFightStats, 'run', 80
  272. dynamic $setNPCFightStats, 'wrstlng', 10
  273. dynamic $setNPCFightStats, 'kick', 10
  274. dynamic $setNPCFightStats, 'punch', 35
  275. dynamic $setNPCFightStats, 'jab', 35
  276. dynamic $setNPCFightStats, 'stren', 85
  277. dynamic $setNPCFightStats, 'agil', 75
  278. dynamic $setNPCFightStats, 'vital', 95
  279. dynamic $setNPCFightStats, 'react', 75
  280. dynamic $setNPCFightStats, 'willpwr', 45
  281. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  282. fightEnding = 12
  283. end
  284. if $args[0] = 'stallion':
  285. dynamic $setNPCFightStats, 'name', 'Naked Man'
  286. dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/rapist.jpg'
  287. dynamic $setNPCFightStats, 'def', 100
  288. dynamic $setNPCFightStats, 'run', 100
  289. dynamic $setNPCFightStats, 'wrstlng', 100
  290. dynamic $setNPCFightStats, 'kick', 100
  291. dynamic $setNPCFightStats, 'punch', 100
  292. dynamic $setNPCFightStats, 'jab', 100
  293. dynamic $setNPCFightStats, 'stren', 100
  294. dynamic $setNPCFightStats, 'agil', 300
  295. dynamic $setNPCFightStats, 'vital', 200
  296. dynamic $setNPCFightStats, 'react', 100
  297. dynamic $setNPCFightStats, 'willpwr', 100
  298. dynamic $setNPCFightStats, 'shoot', 10
  299. dynamic $setNPCFightStats, 'magik', 1
  300. dynamic $setNPCFightStats, 'mana', 200
  301. dynamic $setNPCFightStats, 'spells', 'clone,energo'
  302. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  303. fightEnding = 13
  304. end
  305. if $args[0] = 'ganggirl':
  306. dynamic $setNPCFightStats, 'name', 'Gang Girl'
  307. dynamic $setNPCFightStats, 'image', 'images/characters/shared/<<rand(31,60)>>.jpg'
  308. dynamic $setNPCFightStats, 'def', rand(5,15)
  309. dynamic $setNPCFightStats, 'run', rand(25,35)
  310. dynamic $setNPCFightStats, 'wrstlng', rand(5,15)
  311. dynamic $setNPCFightStats, 'kick', rand(5,15)
  312. dynamic $setNPCFightStats, 'punch', rand(5,15)
  313. dynamic $setNPCFightStats, 'jab', rand(5,15)
  314. dynamic $setNPCFightStats, 'stren', rand(15,30)
  315. dynamic $setNPCFightStats, 'agil', rand(25,35)
  316. dynamic $setNPCFightStats, 'vital', rand(25,35)
  317. dynamic $setNPCFightStats, 'react', rand(25,35)
  318. dynamic $setNPCFightStats, 'willpwr', 50
  319. dynamic $setNPCFightStats, 'shoot', rand(25,35)
  320. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  321. fightEnding = 14
  322. end
  323. if $args[0] = 'girls':
  324. dynamic $setNPCFightStats, 'name', 'The group of girls'
  325. dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/girlgang.jpg'
  326. dynamic $setNPCFightStats, 'def', 50
  327. dynamic $setNPCFightStats, 'run', 50
  328. dynamic $setNPCFightStats, 'wrstlng', 10
  329. dynamic $setNPCFightStats, 'kick', 0
  330. dynamic $setNPCFightStats, 'punch', 50
  331. dynamic $setNPCFightStats, 'jab', 50
  332. dynamic $setNPCFightStats, 'stren', 100
  333. dynamic $setNPCFightStats, 'agil', 60
  334. dynamic $setNPCFightStats, 'vital', 60
  335. dynamic $setNPCFightStats, 'react', 60
  336. dynamic $setNPCFightStats, 'willpwr', 100
  337. dynamic $setNPCFightStats, 'shoot', 100
  338. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  339. fightEnding = 14
  340. end
  341. if $args[0] = 'bitch squad':
  342. dynamic $setNPCFightStats, 'name', 'The bitch squad'
  343. dynamic $setNPCFightStats, 'image', 'images/characters/pavlovsk/school/girl/katja/KWT14.jpg'
  344. dynamic $setNPCFightStats, 'def', 50
  345. dynamic $setNPCFightStats, 'run', 50
  346. dynamic $setNPCFightStats, 'wrstlng', 10
  347. dynamic $setNPCFightStats, 'kick', 0
  348. dynamic $setNPCFightStats, 'punch', 50
  349. dynamic $setNPCFightStats, 'jab', 50
  350. dynamic $setNPCFightStats, 'stren', 100
  351. dynamic $setNPCFightStats, 'agil', 60
  352. dynamic $setNPCFightStats, 'vital', 60
  353. dynamic $setNPCFightStats, 'react', 60
  354. dynamic $setNPCFightStats, 'willpwr', 100
  355. dynamic $setNPCFightStats, 'shoot', 100
  356. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  357. fightEnding = 16
  358. end
  359. if $args[0] = 'btatiana':
  360. dynamic $setNPCFightStats, 'name', 'BTatiana'
  361. dynamic $setNPCFightStats, 'image', 'images/characters/city/btatiana/ST1.jpg'
  362. dynamic $setNPCFightStats, 'def', 55
  363. dynamic $setNPCFightStats, 'run', 100
  364. dynamic $setNPCFightStats, 'wrstlng', 1
  365. dynamic $setNPCFightStats, 'kick', 25
  366. dynamic $setNPCFightStats, 'punch', 25
  367. dynamic $setNPCFightStats, 'jab', 25
  368. dynamic $setNPCFightStats, 'stren', 5
  369. dynamic $setNPCFightStats, 'agil', 75
  370. dynamic $setNPCFightStats, 'vital', 75
  371. dynamic $setNPCFightStats, 'react', 85
  372. dynamic $setNPCFightStats, 'willpwr', 75
  373. dynamic $setNPCFightStats, 'shoot', 75
  374. dynamic $setNPCFightStats, 'magik', 1
  375. dynamic $setNPCFightStats, 'mana', 100
  376. dynamic $setNPCFightStats, 'spells', 'energo,dambonus,init'
  377. dynamic $setNPCFightStats, 'health', dyneval($calcNPCFightHealth)
  378. fightEnding = 17
  379. end
  380. if $ARGS[2] ! '':
  381. dynamic $setNPCFightStats, 'name', $ARGS[2]
  382. end
  383. --- fight_npcdata ---------------------------------