logic_externaldata
logic_externaldata is a point entity available
with any version of Mapbase.Saves and reads keyvalue data from %mapname%_externaldata.txt. Useful for when you want to read and write data across multiple playthroughs.
KeyValues
- Block (Target) <string>
The key whose subkeys should be read from/written to. Using '!self' just uses this entity's name as the block name.
The key whose subkeys should be read from/written to. Using '!self' just uses this entity's name as the block name.
- Save after each change (SaveEachChange) <choices>
Saves each change without having to use the 'Save' input.
Saves each change without having to use the 'Save' input.
- Reload file before each action (ReloadBeforeEachAction) <choices>
Reloads the file before each change this entity makes. This is mostly useful when there is a possibility that the file could change by other means which could be overwritten, like another logic_externaldata somewhere.
Reloads the file before each change this entity makes. This is mostly useful when there is a possibility that the file could change by other means which could be overwritten, like another logic_externaldata somewhere.
- Map Name (Mapname) <string>
logic_externaldata normally uses ''<current map's name>_externaldata.txt'', but you could override the map name here to create/access external data intended for other maps. You could also just use this to write to additional external data files whether they're intended for another map or not.
logic_externaldata normally uses ''<current map's name>_externaldata.txt'', but you could override the map name here to create/access external data intended for other maps. You could also just use this to write to additional external data files whether they're intended for another map or not.
Inputs
- WriteKeyValue
<string>
Writes the specified keyvalue. If the keyvalue already exists, it will be overwritten. If not, it will be created. Format is ' ', like AddOutput. (Spaces after the first will still be incorporated into the value)</span>
</div>
Writes the specified keyvalue. If the keyvalue already exists, it will be overwritten. If not, it will be created. Format is '
- RemoveKeyValue
<string>
Removes the specified key.
Removes the specified key.
- ReadKey
<string>
Reads the specified key, firing OutValue with its value.
Reads the specified key, firing OutValue with its value.
- SetBlock
<string>
Sets the block of keyvalues the logic_externaldata reads from. Using !activator or !caller uses their respective entity names.
Sets the block of keyvalues the logic_externaldata reads from. Using !activator or !caller uses their respective entity names.
- Save
<void>
Saves to %mapname%_externaldata.txt.
Saves to %mapname%_externaldata.txt.
- Reload
<void>
Reloads %mapname%_externaldata.txt.
### Outputs
Reloads %mapname%_externaldata.txt.
- OutValue
<string>
Fires each time a key is read from. Passes the value.
Fires each time a key is read from. Passes the value.
