239_mirror 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # mirror
  2. if $ARGS[0] = 'start':
  3. cla
  4. clr
  5. gs 'stat'
  6. gs 'portmirror'
  7. set $goto1 = 'mirror'
  8. set $goto2 = 'fin'
  9. dynamic $portmirror
  10. act 'Move away from the mirror':
  11. cla
  12. gt '<<$goto1>>','<<$goto2>>'
  13. end
  14. end
  15. if $ARGS[0] = 'fin':
  16. cla
  17. gt $locM, $metkaM
  18. !'if housr = 1 and housrA = 1 and housrMir = 0 and fitMir = 0 and saunaYouRoom = 0:
  19. set housrA = 0
  20. gt 'korr'
  21. end
  22. if housr = 1 and housrA = 1 and housrMir = 1 and fitMir = 0 and saunaYouRoom = 0:
  23. set housrA = 0
  24. set housrMir = 0
  25. gt 'bedr'
  26. end
  27. if housrA = 0 and fitMir = 1 and saunaYouRoom = 0:
  28. set fitMir = 0
  29. gt 'fit','razd'
  30. end
  31. if housrA = 0 and stripMir = 1 and saunaYouRoom = 0:
  32. set stripMir = 0
  33. gt 'stwork','start'
  34. end
  35. if housrA = 0 and palMir = 1 and saunaYouRoom = 0:
  36. set palMir = 0
  37. gt 'palatka','start'
  38. end
  39. if saunaYouRoom = 1:
  40. saunaYouRoom = 0
  41. gt $locBroom, $metkaBroom
  42. end
  43. if housrA = 0 and obMir = 1:
  44. set obMir = 0
  45. gt 'obroom','start'
  46. end
  47. if housrA = 0 and borMir = 1:
  48. set borMir = 0
  49. gt 'bordel','start'
  50. end
  51. if housrA = 0 and tanhouse1 = 1:
  52. set tanhouse1 = 0
  53. gt 'spalnya'
  54. end'
  55. end
  56. --- mirror ---------------------------------