btw if anyone wants to use my engine i dont mind
all you have to do is change the variables at the top and the engine works the rest out!
oh btw if u press a key it will give you the results if you were defending and press again and it will go back to attacking
Rem Project: systemf
Rem Created: 23/06/2008 20:10:15
Rem ***** Main Source File *****
defending:
cls
INPUT "How many Clubmen? ",clubmen
INPUT "How many enemies? ",enemies
INPUT "How Good at attacking will your Clubmen be? ",clubmenA
INPUT "How Good at defending will your Clubmen be? ",ClubmenD
INPUT "How Good at attacking will your Enemies be? ",EnemyA
INPUT "How Good at defending will your Clubmen be? ",EnemyD
clubmen#=clubmen
enemy#=enemies
clubattack = clubmenA
clubdefence = ClubmenD
enemyattack = EnemyA
enemydefence = EnemyD
PlayerAttacking#=2
If PlayerAttacking#=1
Print "You are Attacking."
clubattack2#=clubattack*clubmen#
clubdefence2#=clubdefence*clubmen#
enemyattack2#=enemyattack*enemy#
enemydefence2#=enemydefence*enemy#
percentage1#=enemydefence2#/clubattack2#*100.0
percentage2#=clubmen#*percentage1#/100.0
remaining#=clubmen#-percentage2#
endif
If PlayerAttacking#=2
Print "You are Defending."
clubattack2#=clubattack*clubmen#
clubdefence2#=clubdefence*clubmen#
enemyattack2#=enemyattack*enemy#
enemydefence2#=enemydefence*enemy#
percentage1#=enemyattack2#/clubdefence2#*100.0
percentage2#=clubmen#*percentage1#/100.0
remaining#=clubmen#-percentage2#
endif
Print "Troops:"
Print clubmen#
Print ""
Print ""
Print "Unit Stats:"
Print "Attacking:"
Print clubattack
Print "Defending:"
Print clubdefence
Print ""
Print ""
Print "Overall Army Strength:"
Print "Attack:"
Print clubattack2#
Print "Defence:"
Print clubdefence2#
Print ""
Print ""
print "<<<<<<<<<<<<<Enemy:>>>>>>>>>>>>>>>>"
print "Enemy Troops:"
print enemy#
print ""
print ""
print "Unit Stats:"
print "Attacking:"
print enemyattack
print "Defending:"
print enemydefence
Print ""
Print ""
Print "Overall Army Strength:"
Print "Attack:"
Print enemyattack2#
Print "Defence:"
Print enemydefence2#
Print ""
Print ""
Print "<<<<<<<<<<<LOSSES>>>>>>>>>>>>>"
Print "Percentage lost"
Print percentage1#," %"
Print "Troops You Lost"
print percentage2#
Print ""
Print ""
Print "Your Remaining Troops"
Print Remaining#
wait key
gosub attacking
attacking:
PlayerAttacking#=1
If PlayerAttacking#=1
Print "You are Attacking."
clubattack2#=clubattack*clubmen#
clubdefence2#=clubdefence*clubmen#
enemyattack2#=enemyattack*enemy#
enemydefence2#=enemydefence*enemy#
percentage1#=enemydefence2#/clubattack2#*100.0
percentage2#=clubmen#*percentage1#/100.0
remaining#=clubmen#-percentage2#
endif
If PlayerAttacking#=2
Print "You are Defending."
clubattack2#=clubattack*clubmen#
clubdefence2#=clubdefence*clubmen#
enemyattack2#=enemyattack*enemy#
enemydefence2#=enemydefence*enemy#
percentage1#=enemyattack2#/clubdefence2#*100.0
percentage2#=clubmen#*percentage1#/100.0
remaining#=clubmen#-percentage2#
endif
Print "Troops:"
Print clubmen#
Print ""
Print ""
Print "Unit Stats:"
Print "Attacking:"
Print clubattack
Print "Defending:"
Print clubdefence
Print ""
Print ""
Print "Overall Army Strength:"
Print "Attack:"
Print clubattack2#
Print "Defence:"
Print clubdefence2#
Print ""
Print ""
print "<<<<<<<<<<<<<Enemy:>>>>>>>>>>>>>>>>"
print "Enemy Troops:"
print enemy#
print ""
print ""
print "Unit Stats:"
print "Attacking:"
print enemyattack
print "Defending:"
print enemydefence
Print ""
Print ""
Print "Overall Army Strength:"
Print "Attack:"
Print enemyattack2#
Print "Defence:"
Print enemydefence2#
Print ""
Print ""
Print "<<<<<<<<<<<LOSSES>>>>>>>>>>>>>"
Print "Percentage lost"
Print percentage1#," %"
Print "Troops You Lost"
print percentage2#
Print ""
Print ""
Print "Your Remaining Troops"
Print Remaining#
wait 10000
end
Creators of Outscape