sleep_reflections.qsrc 899 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # sleep_reflections
  2. if $ARGS[0] = 'event_check':
  3. if test_var = 1: $sleep_events_priority[] = 'gs ''sleep_reflections'', ''test_reflection'' '
  4. end
  5. if $ARGS[0] = 'end':
  6. gs 'pre_sleep_events', 'event_end'
  7. end
  8. if $ARGS[0] = 'test_reflection':
  9. if ARGS[1] = 0: gt 'sleep_reflections', 'test_reflection', 1
  10. 'This is a test reflection!'
  11. 'Sveta is thinking deeply about "TEST_PERSON"'
  12. 'Wow, what interesting thoughts'
  13. act 'positive':
  14. *clr & cla
  15. test_var = 2
  16. 'You think positive things about "TEST_PERSON"!'
  17. act 'Go to sleep': killvar 'test_var' & gs 'sleep_reflections', 'end'
  18. end
  19. act 'negative':
  20. *clr & cla
  21. test_var = -1
  22. 'You think negative things about "TEST_PERSON"!'
  23. act 'Go to sleep': killvar 'test_var' & gs 'sleep_reflections', 'end'
  24. end
  25. act 'ignore': killvar 'test_var' & gs 'sleep_reflections', 'end'
  26. end
  27. --- sleep_reflections ---------------------------------