System
The following functions and variables are defined in the phone.system namespace.
def get_battery_level()Returns the battery level. If the variable
battery_levelisNone, the value is taken from the player’s device.def get_internet_connection_state()Returns the state of the internet connection, represented by the following constants:
CONNECTEDwifi is on and connected to the internetNO_INTERNETwifi is on but no internet connectionNOT_CONNECTEDwifi is offAIRPLANE_MODEairplane mode is onCELLULAR_DATAwifi is off and cellular data is on
def get_date()Returns the date. If the variable
dateisNone, the date used isdatetime.datetime.now().date = NoneIf not
None, adatetime.datetimeobject.battery_level = NoneIf not
None, an integer.wifi = NoneIf not
None, a boolean.locked = FalseIf true, some
Actions (notably in the status bar screen) won’t do anything, preventing the player from changing variables when they’re not supposed to.at_list = []A transform or list of transforms applied to the phone screen (overlay screens excluded). Set back to
[]when exiting the phone.cellular_data = FalseIs cellular data on?
airplane_mode = FalseIs airplane mode on?
bluetooth = FalseIs bluetooth on?
internet_connection = TrueThis can be turned on/off for more a realistic gameplay (say the main character is in a very rural place, they won’t have access to the internet).
Other variables (flashlight, rotation_locked, dark_mode) currently don’t have any use and should not be used by creators.