1
1

boxing 726 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # boxing
  2. !Choosing a physical attack
  3. if weapon = 0:
  4. act 'Fist':
  5. cla
  6. !gs'atak'
  7. xgt'atak','player'
  8. end
  9. end
  10. if weapon > 0:
  11. if weaponTipe = 1:$weap = 'sword'
  12. if weaponTipe = 2:$weap = 'mace'
  13. if weaponTipe = 3:$weap = 'ax'
  14. act 'Hit <<$weap>>':
  15. cla
  16. !gs'atak'
  17. xgt'atak','player'
  18. end
  19. end
  20. if kunai > 0:
  21. 'You have <<kunai>> throwing knives.'
  22. act 'Throw the knife':
  23. cla
  24. knife = input ("How to throw a knife?")
  25. if knife > kunai:
  26. knife = kunai
  27. kunai = 0
  28. elseif knife <= kunai:
  29. kunai = kunai - knife
  30. end
  31. '<font color = green>You hurled <<knife>> knives.</font>'
  32. xgt'atak','player'
  33. end
  34. end
  35. if pcs_magik > 0:
  36. act 'Magic Attack':gt'magik'
  37. end
  38. --- boxing ---------------------------------