User Tools

Site Tools


set_day

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
set_day [2024/11/04 11:57] – created justinset_day [2024/11/04 14:34] (current) justin
Line 2: Line 2:
 ---- ----
  
-Sets the current in-game day. +Sets the current in-game day. Refer to the [[Set Time]] function for details about changing the in-game time.
  
 ====Signature:==== ====Signature:====
Line 10: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|time|Value to set the current day to.|[[Number]]|Yes|+|day|Value to set the current day to.|[[Number]]|Yes|
  
 ====Example:==== ====Example:====
Line 16: Line 16:
 set_day(global.day + 1); set_day(global.day + 1);
 </code> </code>
-//Results:// Sets the current in-game day to the next day.+//Results:// Advances the current in-game day to the next day.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Set Day** function to +Use the **Set Day** function in season-based games to progress time to another season once a certain point in the game's story has been reached.
 </WRAP> </WRAP>
  
Line 27: Line 27:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:wiki:set_day_node.png?nolink|}}+{{:set_day_node.png?nolink|}}
 </WRAP> </WRAP>
  
 <WRAP half column> <WRAP half column>
-====Visual Demo:==== +
-{{:wiki:set_day_demo.gif?nolink|}}+
 </WRAP> </WRAP>
 </WRAP> </WRAP>
  
 ~~NOTOC~~ ~~NOTOC~~
set_day.1730750247.txt.gz · Last modified: 2024/11/04 11:57 by justin