Es.stringtable
[edit] Method: stringtableModule: es [edit] Method Overview[edit] Table of Contents
[edit] DescriptionUpdate an entry in a stringtable This is the Python equivalent of: http://www.eventscripts.com/pages/es_stringtable [edit] Arguments
[edit] ExamplesThis will add a few sounds to the 'downloadables' stringtable. import es # Create a list of sounds... soundList = ['first.mp3','second.mp3','third.mp3'] # ...and specify their location within the 'sound/' directory (see note 1) soundDir = 'uniquedirectory/' # Change uniquedirectory accordingly # The function to add each song in the list to the downloadables stringtable def addSounds(): for soundTitle in soundList: es.stringtable('downloadables', 'sound/' + soundDir + soundTitle) # Re-add the sounds to the downloadables stringtable on each map load (see note 2) def es_map_start(event_var): addSounds() [edit] NotesNote 1: Note 2: [edit] See Also |
|
