Explorar o código

Make NCP fight be able to add multiple opponents.

KeyMasterOfGozer %!s(int64=4) %!d(string=hai) anos
pai
achega
745a565815
Modificáronse 2 ficheiros con 294 adicións e 253 borrados
  1. 8 8
      locations/fight.qsrc
  2. 286 245
      locations/fight_npcdata.qsrc

+ 8 - 8
locations/fight.qsrc

@@ -330,20 +330,20 @@ end
 
 if $ARGS[0] = 'statDisplay':
 	'<b>= = = = = = = = = = = O p p o n e n t s = = = = = = = = = = =</b>'
-	i = 0
+	j = 0
 	:OppLoopRC1
-	if i < arrsize('opp_health'):
-		gs 'fight', 'printStats', 'opp', i
-		i += 1
+	if j < arrsize('opp_health'):
+		gs 'fight', 'printStats', 'opp', j
+		j += 1
 		jump 'OppLoopRC1'
 	end
 	*nl
 	'<b>= = = = = = = = = = = = A l l i e s = = = = = = = = = = = = =</b>'
-	i = 0
+	j = 0
 	:PCSLoopRC1
-	if i < arrsize('pcs_health'):
-		gs 'fight', 'printStats', 'pcs', i
-		i += 1
+	if j < arrsize('pcs_health'):
+		gs 'fight', 'printStats', 'pcs', j
+		j += 1
 		jump 'PCSLoopRC1'
 	end
 end

+ 286 - 245
locations/fight_npcdata.qsrc

@@ -1,190 +1,225 @@
 # fight_npcdata
+!!{  Add an NPC of this type to a Team for a fight
 
-!!{Template
-if $args[0] = '':
-	$opp_name[0] = <<name of opponent>>
-	$opp_image[0] = opponent image ie. '<img <<$set_imgh>> src="images/characters/city/tobi/tobi.jpg">'
-	opp_def[0] = opponent defence
-	opp_run[0] = Opponent running skill used for player escape
-	opp_wrstlng[0] = Wrestling skill
-	opp_kick[0] = Kicking
-	opp_punch[0] = Power punch
-	opp_jab[0] = Ligth punch
-	opp_stren[0] = Strengh
-	opp_agil[0] = Agility
-	opp_vital[0] = vitality
-	opp_react[0] = Reactions
-	opp_health[0] = Health
-	opp_willpwr[0] = willpower
-	opp_shoot[0] = opponent marksmanship (only required if they are armed)
-	opp_magik[0] = only if they have magic
-	opp_mana[0] = only if they have magic
-	opp_fog[0] = (tuman): Obscures vision, makes hitting harder.
-	opp_clone[0] = (klon): Copies of the char that absorb 1 hit and disappear.  A char may have some number of them.
-	opp_shield[0] = (defence): Shielding that absorbs damage before hitpoints.
-	opp_dambonus[0] = (magweapbonus): damage added to melee attacks
-	opp_init[0] = (initBonus): attack faster/first
-	opp_stun[0] = (stunner): make target unable to act for some amount of time
-	opp_spells[0] = comma delimited list of spell names
-	fightEnding = number used for selecting the win/loss scene
+	$ARGS[0] = The NPC Name or Type (e.g: tatiana, gustav, rapist, mugger)
+	$ARGS[1] = Team to add the NPC to.  Can be 'pcs' or 'opp'.  Default is 'opp'
+
+	Attributes that can be set:
+		name	= <<name of opponent>>
+		image	= opponent image ie. '<img <<$set_imgh>> src="images/characters/city/tobi/tobi.jpg">'
+		def	= opponent defence
+		run	= Opponent running skill used for player escape
+		wrstlng	= Wrestling skill
+		kick	= Kicking
+		punch	= Power punch
+		jab	= Light punch
+		stren	= Strengh
+		agil	= Agility
+		vital	= vitality
+		react	= Reactions
+		health	= Health
+		willpwr	= willpower
+		shoot	= opponent marksmanship (only required if they are armed)
+		magik	= only if they have magic
+		mana	= only if they have magic
+		fog	= (tuman): Obscures vision, makes hitting harder.
+		clone	= (klon): Copies of the char that absorb 1 hit and disappear.  A char may have some number of them.
+		shield	= (defence): Shielding that absorbs damage before hitpoints.
+		dambonus	= (magweapbonus): damage added to melee attacks
+		init	= (initBonus): attack faster/first
+		stun	= (stunner): make target unable to act for some amount of time
+		spells	= comma delimited list of spell names
+
+}
+
+$NPCFS_Team = $ARGS[1]
+if $NPCFS_Team = '':
+	$NPCFS_Team = 'opp'
 end
+
+NPCFS_TeamSlot=dyneval('result=arrsize(''$<<$NPCFS_Team>>_name'')')
+
+$setNPCFightStats = {
+!! $ARGS[0] = Attrib Name
+!! $ARGS[1]/ARGS[1] = Value to set the Attribute
+	$NPCFS_Attrib = $ARGS[0]
+
+	! See if Value passed is String or Number
+	$NPCFS_Value = $ARGS[1]
+	 NPCFS_Value =  ARGS[1]
+
+	if $NPCFS_Value = '':
+		!Numeric type Array
+		dynamic '<<$NPCFS_Team>>_<<$NPCFS_Attrib>>[<<NPCFS_TeamSlot>>] = <<NPCFS_Value>>'
+	else
+		!String type Array
+		dynamic '$<<$NPCFS_Team>>_<<$NPCFS_Attrib>>[<<NPCFS_TeamSlot>>] = ''<<$NPCFS_Value>>'''
+	end
 }
 
 if $args[0] = 'gustav':
-	$opp_name[0] = 'Gustav'
-	$opp_image[0] = 'images/characters/city/jugo/jugopre.jpg'
-	opp_def[0] = 100
-	opp_run[0] = 75
-	opp_wrstlng[0] = 75
-	opp_kick[0] = 75
-	opp_punch[0] = 85
-	opp_jab[0] = 75
-	opp_stren[0] = 250
-	opp_agil[0] = 60
-	opp_vital[0] = 200
-	opp_react[0] = 50
-	opp_health[0] = (opp_vital * 10 + opp_stren * 5)
-	opp_willpwr[0] = 50
-	opp_shoot[0] = 100
+	dynamic $setNPCFightStats, 'name', 'Gustav'
+	dynamic $setNPCFightStats, 'image', 'images/characters/city/jugo/jugopre.jpg'
+	dynamic $setNPCFightStats, 'def', 100
+	dynamic $setNPCFightStats, 'run', 75
+	dynamic $setNPCFightStats, 'wrstlng', 75
+	dynamic $setNPCFightStats, 'kick', 75
+	dynamic $setNPCFightStats, 'punch', 85
+	dynamic $setNPCFightStats, 'jab', 75
+	dynamic $setNPCFightStats, 'stren', 250
+	dynamic $setNPCFightStats, 'agil', 60
+	dynamic $setNPCFightStats, 'vital', 200
+	dynamic $setNPCFightStats, 'react', 50
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 3250
+	dynamic $setNPCFightStats, 'willpwr', 50
+	dynamic $setNPCFightStats, 'shoot', 100
 	fightEnding = 2
 end
 
 if $args[0] = 'tatiana':
-	$opp_name[0] = 'Tatiana'
-	$opp_image[0] = 'images/characters/city/tatiana/magiclook.jpg'
-	opp_def[0] = 100
-	opp_run[0] = 75
-	opp_wrstlng[0] = 50
-	opp_kick[0] = 75
-	opp_punch[0] = 100
-	opp_jab[0] = 100
-	opp_stren[0] = 60
-	opp_agil[0] = 100
-	opp_vital[0] = 100
-	opp_react[0] = 60
-	opp_health[0] = (opp_vital * 10 + opp_stren * 5)
-	opp_willpwr[0] = 100
-	opp_shoot[0] = 100
-	opp_magik[0] = 1
-	opp_mana[0] = 200
-	$opp_spells[0] = 'fog,clone,stun,energo'
+	dynamic $setNPCFightStats, 'name', 'Tatiana'
+	dynamic $setNPCFightStats, 'image', 'images/characters/city/tatiana/magiclook.jpg'
+	dynamic $setNPCFightStats, 'def', 100
+	dynamic $setNPCFightStats, 'run', 75
+	dynamic $setNPCFightStats, 'wrstlng', 50
+	dynamic $setNPCFightStats, 'kick', 75
+	dynamic $setNPCFightStats, 'punch', 100
+	dynamic $setNPCFightStats, 'jab', 100
+	dynamic $setNPCFightStats, 'stren', 60
+	dynamic $setNPCFightStats, 'agil', 100
+	dynamic $setNPCFightStats, 'vital', 100
+	dynamic $setNPCFightStats, 'react', 60
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 1290
+	dynamic $setNPCFightStats, 'willpwr', 100
+	dynamic $setNPCFightStats, 'shoot', 100
+	dynamic $setNPCFightStats, 'magik', 1
+	dynamic $setNPCFightStats, 'mana', 200
+	dynamic $setNPCFightStats, 'spells', 'fog,clone,stun,energo'
 	fightEnding = 3
 end
 
 if $args[0] = 'prostitute':
-	$opp_name[0] = 'Prostitute'
-	$opp_image[0] = 'images/locations/city/shared/streetwalker/working1.jpg'
-	opp_def[0] = 30
-	opp_run[0] = 30
-	opp_wrstlng[0] = 20
-	opp_kick[0] = 0
-	opp_punch[0] = 10
-	opp_jab[0] = 10
-	opp_stren[0] = 20
-	opp_agil[0] = 30
-	opp_vital[0] = 50
-	opp_react[0] = 30
-	opp_health[0] = (opp_vital[0] * 10 + opp_stren[0] * 5)
-	opp_willpwr[0] = 50
-	opp_shoot[0] = 10
+	dynamic $setNPCFightStats, 'name', 'Prostitute'
+	dynamic $setNPCFightStats, 'image', 'images/locations/city/shared/streetwalker/working1.jpg'
+	dynamic $setNPCFightStats, 'def', 30
+	dynamic $setNPCFightStats, 'run', 30
+	dynamic $setNPCFightStats, 'wrstlng', 20
+	dynamic $setNPCFightStats, 'kick', 0
+	dynamic $setNPCFightStats, 'punch', 10
+	dynamic $setNPCFightStats, 'jab', 10
+	dynamic $setNPCFightStats, 'stren', 20
+	dynamic $setNPCFightStats, 'agil', 30
+	dynamic $setNPCFightStats, 'vital', 50
+	dynamic $setNPCFightStats, 'react', 30
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 600
+	dynamic $setNPCFightStats, 'willpwr', 50
+	dynamic $setNPCFightStats, 'shoot', 10
 	fightEnding = 4
 end
 
 if $args[0] = 'bandit':
-	$opp_name[0] = 'Bandit'
-	$opp_image[0] = 'images/locations/shared/street/mugger.jpg'
-	opp_def[0] = 10
-	opp_run[0] = 30
-	opp_wrstlng[0] = 10
-	opp_kick[0] = 0
-	opp_punch[0] = 10
-	opp_jab[0] = 10
-	opp_stren[0] = 200
-	opp_agil[0] = 20
-	opp_vital[0] = 150
-	opp_react[0] = 20
-	opp_health[0] = (opp_vital[0] * 10 + opp_stren[0] * 5)
-	opp_willpwr[0] = 100
-	opp_shoot[0] = 10
+	dynamic $setNPCFightStats, 'name', 'Bandit'
+	dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/mugger.jpg'
+	dynamic $setNPCFightStats, 'def', 10
+	dynamic $setNPCFightStats, 'run', 30
+	dynamic $setNPCFightStats, 'wrstlng', 10
+	dynamic $setNPCFightStats, 'kick', 0
+	dynamic $setNPCFightStats, 'punch', 10
+	dynamic $setNPCFightStats, 'jab', 10
+	dynamic $setNPCFightStats, 'stren', 200
+	dynamic $setNPCFightStats, 'agil', 20
+	dynamic $setNPCFightStats, 'vital', 150
+	dynamic $setNPCFightStats, 'react', 20
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 2500
+	dynamic $setNPCFightStats, 'willpwr', 100
+	dynamic $setNPCFightStats, 'shoot', 10
 	fightEnding = 5
 end
 
 if $args[0] = 'prostitute2':
-	$opp_name[0] = 'Prostitute'
-	$opp_image[0] = 'images/locations/city/shared/streetwalker/working1.jpg'
-	opp_def[0] = 10
-	opp_run[0] = 50
-	opp_wrstlng[0] = 10
-	opp_kick[0] = 0
-	opp_punch[0] = 10
-	opp_jab[0] = 10
-	opp_stren[0] = 50
-	opp_agil[0] = 40
-	opp_vital[0] = 60
-	opp_react[0] = 30
-	opp_health[0] = (opp_vital[0] * 10 + opp_stren[0] * 5)
-	opp_willpwr[0] = 50
-	opp_shoot[0] = 10
+	dynamic $setNPCFightStats, 'name', 'Prostitute'
+	dynamic $setNPCFightStats, 'image', 'images/locations/city/shared/streetwalker/working1.jpg'
+	dynamic $setNPCFightStats, 'def', 10
+	dynamic $setNPCFightStats, 'run', 50
+	dynamic $setNPCFightStats, 'wrstlng', 10
+	dynamic $setNPCFightStats, 'kick', 0
+	dynamic $setNPCFightStats, 'punch', 10
+	dynamic $setNPCFightStats, 'jab', 10
+	dynamic $setNPCFightStats, 'stren', 50
+	dynamic $setNPCFightStats, 'agil', 40
+	dynamic $setNPCFightStats, 'vital', 60
+	dynamic $setNPCFightStats, 'react', 30
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 950
+	dynamic $setNPCFightStats, 'willpwr', 50
+	dynamic $setNPCFightStats, 'shoot', 10
 	fightEnding = 6
 end
 
 if $args[0] = 'kisame':
-	$opp_name[0] = 'Kisame'
-	$opp_image[0] = 'images/characters/city/kisame/kisamev.jpg'
-	opp_def[0] = 100
-	opp_run[0] = 100
-	opp_wrstlng[0] = 75
-	opp_kick[0] = 0
-	opp_punch[0] = 100
-	opp_jab[0] = 100
-	opp_stren[0] = 200
-	opp_agil[0] = 100
-	opp_vital[0] = 200
-	opp_react[0] = 100
-	opp_health[0] = (opp_vital * 10 + opp_stren * 5)
-	opp_willpwr[0] = 100
-	opp_shoot[0] = 100
-	opp_magik[0] = 1
-	opp_mana[0] = 500
-	$opp_spells[0] = 'leechmana,flood,blister,sharkrockets'
+	dynamic $setNPCFightStats, 'name', 'Kisame'
+	dynamic $setNPCFightStats, 'image', 'images/characters/city/kisame/kisamev.jpg'
+	dynamic $setNPCFightStats, 'def', 100
+	dynamic $setNPCFightStats, 'run', 100
+	dynamic $setNPCFightStats, 'wrstlng', 75
+	dynamic $setNPCFightStats, 'kick', 0
+	dynamic $setNPCFightStats, 'punch', 100
+	dynamic $setNPCFightStats, 'jab', 100
+	dynamic $setNPCFightStats, 'stren', 200
+	dynamic $setNPCFightStats, 'agil', 100
+	dynamic $setNPCFightStats, 'vital', 200
+	dynamic $setNPCFightStats, 'react', 100
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 3000
+	dynamic $setNPCFightStats, 'willpwr', 100
+	dynamic $setNPCFightStats, 'shoot', 100
+	dynamic $setNPCFightStats, 'magik', 1
+	dynamic $setNPCFightStats, 'mana', 500
+	dynamic $setNPCFightStats, 'spells', 'leechmana,flood,blister,sharkrockets'
 	fightEnding = 7
 end
 
 if $args[0] = 'rapist':
-	$opp_name[0] = 'Rapist'
-	$opp_image[0] = 'images/locations/shared/street/rapist.jpg'
-	opp_def[0] = rand(40,60)
-	opp_run[0] = rand(40,60)
-	opp_wrstlng[0] = rand(5,15)
-	opp_kick[0] = 0
-	opp_punch[0] = rand(40,60)
-	opp_jab[0] = rand(40,60)
-	opp_stren[0] = rand(70,90)
-	opp_agil[0] = rand(30,50)
-	opp_vital[0] = rand(40,60)
-	opp_react[0] = rand(30,50)
-	opp_health[0] = (opp_vital[0] * 10 + opp_stren[0] * 5)
-	opp_willpwr[0] = 100
-	opp_shoot[0] = 100
+	dynamic $setNPCFightStats, 'name', 'Rapist'
+	dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/rapist.jpg'
+	dynamic $setNPCFightStats, 'def', rand(40,60)
+	dynamic $setNPCFightStats, 'run', rand(40,60)
+	dynamic $setNPCFightStats, 'wrstlng', rand(5,15)
+	dynamic $setNPCFightStats, 'kick', 0
+	dynamic $setNPCFightStats, 'punch', rand(40,60)
+	dynamic $setNPCFightStats, 'jab', rand(40,60)
+	dynamic $setNPCFightStats, 'stren', rand(70,90)
+	dynamic $setNPCFightStats, 'agil', rand(30,50)
+	dynamic $setNPCFightStats, 'vital', rand(40,60)
+	dynamic $setNPCFightStats, 'react', rand(30,50)
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', rand(400,600)+rand(350,450)
+	dynamic $setNPCFightStats, 'willpwr', 100
+	dynamic $setNPCFightStats, 'shoot', 100
 	fightEnding = 8
 end
 
 if $args[0] = 'robber':
-	$opp_name[0] = 'Robber'
-	$opp_image[0] = 'images/locations/shared/street/mugger.jpg'
-	opp_def[0] = 50
-	opp_run[0] = 50
-	opp_wrstlng[0] = 10
-	opp_kick[0] = 0
-	opp_punch[0] = 50
-	opp_jab[0] = 50
-	opp_stren[0] = 70
-	opp_agil[0] = 40
-	opp_vital[0] = 50
-	opp_react[0] = 40
-	opp_health[0] = (opp_vital[0] * 10 + opp_stren[0] * 5)
-	opp_willpwr[0] = 100
-	opp_shoot[0] = 100
+	dynamic $setNPCFightStats, 'name', 'Robber'
+	dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/mugger.jpg'
+	dynamic $setNPCFightStats, 'def', 50
+	dynamic $setNPCFightStats, 'run', 50
+	dynamic $setNPCFightStats, 'wrstlng', 10
+	dynamic $setNPCFightStats, 'kick', 0
+	dynamic $setNPCFightStats, 'punch', 50
+	dynamic $setNPCFightStats, 'jab', 50
+	dynamic $setNPCFightStats, 'stren', 70
+	dynamic $setNPCFightStats, 'agil', 40
+	dynamic $setNPCFightStats, 'vital', 50
+	dynamic $setNPCFightStats, 'react', 40
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 840
+	dynamic $setNPCFightStats, 'willpwr', 100
+	dynamic $setNPCFightStats, 'shoot', 100
 	if rand(0,10) < 5:
 		fightEnding = 8
 	else
@@ -193,118 +228,124 @@ if $args[0] = 'robber':
 end
 
 if $args[0] = 'snatcher':
-	$opp_name[0] = 'Purse Snatcher'
-	$opp_image[0] = 'images/locations/shared/street/pursesnatch.jpg'
-	opp_def[0] = 50
-	opp_run[0] = 50
-	opp_wrstlng[0] = 10
-	opp_kick[0] = 0
-	opp_punch[0] = 50
-	opp_jab[0] = 50
-	opp_stren[0] = 70
-	opp_agil[0] = 40
-	opp_vital[0] = 50
-	opp_react[0] = 40
-	opp_health[0] = (opp_vital[0] * 10 + opp_stren[0] * 5)
-	opp_willpwr[0] = 100
-	opp_shoot[0] = 100
+	dynamic $setNPCFightStats, 'name', 'Purse Snatcher'
+	dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/pursesnatch.jpg'
+	dynamic $setNPCFightStats, 'def', 50
+	dynamic $setNPCFightStats, 'run', 50
+	dynamic $setNPCFightStats, 'wrstlng', 10
+	dynamic $setNPCFightStats, 'kick', 0
+	dynamic $setNPCFightStats, 'punch', 50
+	dynamic $setNPCFightStats, 'jab', 50
+	dynamic $setNPCFightStats, 'stren', 70
+	dynamic $setNPCFightStats, 'agil', 40
+	dynamic $setNPCFightStats, 'vital', 50
+	dynamic $setNPCFightStats, 'react', 40
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 840
+	dynamic $setNPCFightStats, 'willpwr', 100
+	dynamic $setNPCFightStats, 'shoot', 100
 	fightEnding = 9
 end
 
 if $args[0] = 'dimka':
-	$opp_name[0] = 'Dimka'
-	$opp_image[0] = 'images/characters/pavlovsk/school/head/1.jpg'
-	opp_def[0] = 50
-	opp_run[0] = 50
-	opp_wrstlng[0] = 10
-	opp_kick[0] = 0
-	opp_punch[0] = 50
-	opp_jab[0] = 50
-	opp_stren[0] = 100
-	opp_agil[0] = 40
-	opp_vital[0] = 50
-	opp_react[0] = 40
-	opp_health[0] = (opp_vital[0] * 10 + opp_stren[0] * 5)
-	opp_willpwr[0] = 100
-	opp_shoot[0] = 100
+	dynamic $setNPCFightStats, 'name', 'Dimka'
+	dynamic $setNPCFightStats, 'image', 'images/characters/pavlovsk/school/head/1.jpg'
+	dynamic $setNPCFightStats, 'def', 50
+	dynamic $setNPCFightStats, 'run', 50
+	dynamic $setNPCFightStats, 'wrstlng', 10
+	dynamic $setNPCFightStats, 'kick', 0
+	dynamic $setNPCFightStats, 'punch', 50
+	dynamic $setNPCFightStats, 'jab', 50
+	dynamic $setNPCFightStats, 'stren', 100
+	dynamic $setNPCFightStats, 'agil', 40
+	dynamic $setNPCFightStats, 'vital', 50
+	dynamic $setNPCFightStats, 'react', 40
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 900
+	dynamic $setNPCFightStats, 'willpwr', 100
+	dynamic $setNPCFightStats, 'shoot', 100
 	fightEnding = 10
 end
 
 if $args[0] = 'stranger':
-	$opp_name[0] = 'Stranger'
-	$opp_image[0] = 'images/locations/shared/street/rapist.jpg'
-	opp_def[0] = 10
-	opp_run[0] = 20
-	opp_wrstlng[0] = 10
-	opp_kick[0] = 0
-	opp_punch[0] = 10
-	opp_jab[0] = 10
-	opp_stren[0] = 100
-	opp_agil[0] = 10
-	opp_vital[0] = 50
-	opp_react[0] = 10
-	opp_health[0] = (opp_vital[0] * 10 + opp_stren[0] * 5)
-	opp_willpwr[0] = 100
-	opp_shoot[0] = 100
+	dynamic $setNPCFightStats, 'name', 'Stranger'
+	dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/rapist.jpg'
+	dynamic $setNPCFightStats, 'def', 10
+	dynamic $setNPCFightStats, 'run', 20
+	dynamic $setNPCFightStats, 'wrstlng', 10
+	dynamic $setNPCFightStats, 'kick', 0
+	dynamic $setNPCFightStats, 'punch', 10
+	dynamic $setNPCFightStats, 'jab', 10
+	dynamic $setNPCFightStats, 'stren', 100
+	dynamic $setNPCFightStats, 'agil', 10
+	dynamic $setNPCFightStats, 'vital', 50
+	dynamic $setNPCFightStats, 'react', 10
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 900
+	dynamic $setNPCFightStats, 'willpwr', 100
+	dynamic $setNPCFightStats, 'shoot', 100
 	fightEnding = 11
 end
 
 if $args[0] = 'christina':
-	$opp_name[0] = 'Christina'
-	$opp_image[0] = 'images/characters/pavlovsk/school/head/18.jpg'
-	opp_def[0] = 45
-	opp_run[0] = 80
-	opp_wrstlng[0] = 10
-	opp_kick[0] = 10
-	opp_punch[0] = 35
-	opp_jab[0] = 35
-	opp_stren[0] = 85
-	opp_agil[0] = 75
-	opp_vital[0] = 95
-	opp_react[0] = 75
-	opp_health[0] = (opp_vital[0] * 10 + opp_stren[0] * 5)
-	opp_willpwr[0] = 45
+	dynamic $setNPCFightStats, 'name', 'Christina'
+	dynamic $setNPCFightStats, 'image', 'images/characters/pavlovsk/school/head/18.jpg'
+	dynamic $setNPCFightStats, 'def', 45
+	dynamic $setNPCFightStats, 'run', 80
+	dynamic $setNPCFightStats, 'wrstlng', 10
+	dynamic $setNPCFightStats, 'kick', 10
+	dynamic $setNPCFightStats, 'punch', 35
+	dynamic $setNPCFightStats, 'jab', 35
+	dynamic $setNPCFightStats, 'stren', 85
+	dynamic $setNPCFightStats, 'agil', 75
+	dynamic $setNPCFightStats, 'vital', 95
+	dynamic $setNPCFightStats, 'react', 75
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 1325
+	dynamic $setNPCFightStats, 'willpwr', 45
 	fightEnding = 12
 end
 
 if $args[0] = 'stallion':
-	$opp_name[0] = 'Naked Man'
-	$opp_image[0] = 'images/locations/shared/street/rapist.jpg'
-	opp_def[0] = 100
-	opp_run[0] = 100
-	opp_wrstlng[0] = 100
-	opp_kick[0] = 100
-	opp_punch[0] = 100
-	opp_jab[0] = 100
-	opp_stren[0] = 100
-	opp_agil[0] = 300
-	opp_vital[0] = 200
-	opp_react[0] = 100
-	opp_health[0] = (opp_vital * 10 + opp_stren * 5)
-	opp_willpwr[0] = 100
-	opp_shoot[0] = 10
-	opp_magik[0] = 1
-	opp_mana[0] = 200
-	$opp_spells[0] = 'clone,energo'
+	dynamic $setNPCFightStats, 'name', 'Naked Man'
+	dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/rapist.jpg'
+	dynamic $setNPCFightStats, 'def', 100
+	dynamic $setNPCFightStats, 'run', 100
+	dynamic $setNPCFightStats, 'wrstlng', 100
+	dynamic $setNPCFightStats, 'kick', 100
+	dynamic $setNPCFightStats, 'punch', 100
+	dynamic $setNPCFightStats, 'jab', 100
+	dynamic $setNPCFightStats, 'stren', 100
+	dynamic $setNPCFightStats, 'agil', 300
+	dynamic $setNPCFightStats, 'vital', 200
+	dynamic $setNPCFightStats, 'react', 100
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 2500
+	dynamic $setNPCFightStats, 'willpwr', 100
+	dynamic $setNPCFightStats, 'shoot', 10
+	dynamic $setNPCFightStats, 'magik', 1
+	dynamic $setNPCFightStats, 'mana', 200
+	dynamic $setNPCFightStats, 'spells', 'clone,energo'
 	fightEnding = 13
 end
 
 if $args[0] = 'girls':
-	$opp_name[0] = 'The group of girls'
-	$opp_image[0] = 'images/locations/shared/street/girlgang.jpg'
-	opp_def[0] = 50
-	opp_run[0] = 50
-	opp_wrstlng[0] = 10
-	opp_kick[0] = 0
-	opp_punch[0] = 50
-	opp_jab[0] = 50
-	opp_stren[0] = 100
-	opp_agil[0] = 60
-	opp_vital[0] = 60
-	opp_react[0] = 60
-	opp_health[0] = (opp_vital[0] * 10 + opp_stren[0] * 5)
-	opp_willpwr[0] = 100
-	opp_shoot[0] = 100
+	dynamic $setNPCFightStats, 'name', 'The group of girls'
+	dynamic $setNPCFightStats, 'image', 'images/locations/shared/street/girlgang.jpg'
+	dynamic $setNPCFightStats, 'def', 50
+	dynamic $setNPCFightStats, 'run', 50
+	dynamic $setNPCFightStats, 'wrstlng', 10
+	dynamic $setNPCFightStats, 'kick', 0
+	dynamic $setNPCFightStats, 'punch', 50
+	dynamic $setNPCFightStats, 'jab', 50
+	dynamic $setNPCFightStats, 'stren', 100
+	dynamic $setNPCFightStats, 'agil', 60
+	dynamic $setNPCFightStats, 'vital', 60
+	dynamic $setNPCFightStats, 'react', 60
+	!! Health is generally :: vital * 10 + stren * 5
+	dynamic $setNPCFightStats, 'health', 1100
+	dynamic $setNPCFightStats, 'willpwr', 100
+	dynamic $setNPCFightStats, 'shoot', 100
 	fightEnding = 14
 end