028_kid 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # kid
  2. if $ARGS[0] = 'start':
  3. clr
  4. gs 'stat'
  5. if kid > 0:
  6. set kidIteration = 1
  7. set kidSelected = 0
  8. !set kidLoops = 0
  9. :loop
  10. if polkid[kidIteration] = 0:
  11. $kidPosPro[kidIteration] = 'her'
  12. end
  13. else:
  14. $kidPosPro[kidIteration] = 'his'
  15. end
  16. "Your child, a <<$polreb[kidIteration]>> named <<$kidname[kidIteration]>>. The child's date of birth is <<daykid[kidIteration]>>-<<monthkid[kidSelected]>>-<<yearkid[kidSelected]>>. The child's age is <<kidage[kidIteration]>>"
  17. if kidage[kidIteration]<1: '<<$kidname[kidIteration]>> is a baby lying in <<$kidPosPro[kidIteration]>> crib.'
  18. if kidage[kidIteration] >= 1 and kidage[kidIteration]<7:
  19. if hour >= 9 and hour <= 21:
  20. '<<$kidname[kidIteration]>> is playing with toys.'
  21. end
  22. else
  23. '<<$kidname[kidIteration]>> is alseep in <<$kidPosPro[kidIteration]>> crib.'
  24. end
  25. end
  26. if kidage[kidIteration] >= 7 and kidage[kidIteration]<18:
  27. if hour >= 21 or hour <= 8:
  28. '<<$kidname[kidIteration]>> is alseep in <<$kidPosPro[kidIteration]>> bed.'
  29. end
  30. else
  31. '<<$kidname[kidIteration]>> watching TV.'
  32. end
  33. end
  34. ''
  35. set kidIteration += 1
  36. !set kidLoops += 1
  37. if kidIteration <= numkid:
  38. jump 'loop'
  39. end
  40. end
  41. act 'Leave.':
  42. cla
  43. gt 'sitr'
  44. end
  45. end
  46. --- kid ---------------------------------