047_boxing 764 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # boxing
  2. !The choice of 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:set $weap = 'sword'
  12. if weaponTipe = 2:set $weap = 'mace'
  13. if weaponTipe = 3:set $weap = 'ax'
  14. act 'Strike <<$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 a knife':
  23. cla
  24. knife = input ("How to throw a knife?")
  25. if knife > kunai:
  26. set knife = kunai
  27. set kunai = 0
  28. end
  29. if knife <= kunai:
  30. set kunai -= knife
  31. end
  32. '<font color="green">You are flashed <<knife>> knives.</font>'
  33. xgt 'atak', 'player'
  34. end
  35. end
  36. if magik > 0:
  37. act 'Magical Attack':gt 'magik'
  38. end
  39. --- boxing ---------------------------------