1
0

fight_npcdata.qsrc 14 KB

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