Trigger save: Difference between revisions

From Sven Co-op
Jump to navigation Jump to search
Outerbeast (talk | contribs)
Created page with "{{Entity_Infobox | title= }} 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..."
 
Outerbeast (talk | contribs)
m Added links
 
(One intermediate revision by the same user not shown)
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 ==
Line 15: Line 15:
== Issues ==
== 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.
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.
{{entity_title}}
[[Category:Entities]]
[[Category:Point entities]]

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.

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.

Notes

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

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.