Day Night Cycle

Type: Game mechanic Brain
Level: 3 star
Pages: 1
Description: This brain cycles through the “Clear” sky boxes from Day – Night when you interact with it. It is used to fast forward the day, and is often placed on beds in RPG games. It uses a boom camera to show the world from the air as it does the transformation.

Kode

  1. WHEN [detect][player] DO [say][Interact with me…]
  2. WHEN [not][has power]
  3. …WHEN [interacted] DO [power on]
  4. WHEN [has power]
  5. …WHEN [duration timer][5]
  6. …/…WHEN DO [boom camera][Boom camera 2]
  7. …/…WHEN DO [sun angle][increment by][1]
  8. …WHEN [countdown timer][5] DO [power off]
  9. WHEN DO [sun angle][increment by][0.0130]
  10. WHEN [sky][equal to][sky:Morning clear]
  11. …WHEN [started to] DO [sun angle][equals][negative][90]
  12. …WHEN [sun angle][greater than or equal to][negative][30] DO [sky][equals][sky:Day clear]
  13. …WHEN [else][sky][equals][sky:Day Clear]
  14. …/…WHEN [started to] DO [sun angle][equals][negative][30]
  15. …/…WHEN [sun angle][greater than or equal to][30] DO [sky][equals][sky:Evening clear]
  16. …/…WHEN [else][sky][equals][sky:Evening Clear]
  17. …/…/…WHEN [started to] DO [sun angle][equals][30]
  18. …/…/…WHEN [sun angle][greater than or equal to][90] DO [sky][equals][sky:Night clear]
  19. …/…/…WHEN [else][sky][equals][sky:Night Clear]
  20. …/…/…/…WHEN [started to] DO [sun angle][equals][negative][90]
  21. …/…/…/…WHEN [sun angle][greater than or equals][90] DO [sky][equals][sky:Morning clear]
  22. …/…/…/…WHEN [else][sky][equals][sky:Morning Clear]

 

 

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: