write_property

Declaration

write_property (section, key, value: STRING)

Description

Writes value for property key under section in the project file. You can use this function to store properties that go with the project, not any individual user. These properties can also be edited outside of your project before the user runs it, so are an ideal way of making global preferences.

See Also

read_property
preferences functions

Example

script store_global_prefs is
  write_property ('general', 'full_screen', full_screen)
  write_property ('general', 'intro_movie', play_intro_movie)
end