Difference between revisions of "Trigger save"

From Sven Co-op
Jump to navigation Jump to search
m (Category)
m (Added links)
 
Line 3: Line 3:
 
}}
 
}}
  
trigger_save allows to save an entity's keyvalue to external map-data stored in mapname.save in the "maps"-folder, which is stored on the server running the map. Its counterpart is [[trigger_load]]. Supports custom keyvalues.
+
trigger_save allows to save an entity's keyvalue to external map-data stored in mapname.save in the "maps"-folder, which is stored on the server running the map. Its counterpart is [[trigger_load]]. Supports [[Mapping/Custom Keyvalues|custom keyvalues]].
  
 
== Keyvalues ==
 
== Keyvalues ==

Latest revision as of 21:40, 19 March 2023

trigger_save
Type

point

Status

supported

 


trigger_save allows to save an entity's keyvalue to external map-data stored in mapname.save in the "maps"-folder, which is stored on the server running the map. Its counterpart is trigger_load. Supports custom keyvalues.

1 Keyvalues

Label to store in : netname

A label under which data is to be stored.

Source Entity : target

Entity to read value from.

Source Keyvalue : message

Name of the keyvalue of the source entity to read value from.

Trigger after saving : m_iszTrigger

This is triggered after the save-operation, even if nothing was loaded.

2 Notes

If the entity to read from is not found, the save-file won't be touched.

3 Issues

Trying to write strings containing line breaks (this does e.g. apply to game_text message-keyvalues containing the "\n"-character sequence) or colons will corrupt the save-file. This is because of how the feature was implemented and is simply not supported.