MarkScriptOnLoad

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Marks calling script in a script list that ran after user loaded savegame.

Syntax

[help]
(int) MarkScriptOnLoad 

Notes

  • This functions is useful when you want to make sure that script B runs after script A after loading a savegame.
  • This functions is simmilar to GetGameLoaded and can be used as a condition which will return 1 only the first time script run after ran after game load. However it's recommended to place it under GetGameLoaded block because if SUP plugin is not installed - script will not be processed further.
  • The difference between GetGameLoaded and this function is that you can check if script ran after loading from another script with IsScriptMarkedOnLoad thus using TempCloneForm method is no longer needed.
  • This functions doesn't have any connection with GetGameLoaded array. You can't place a script there using this function and you also can't check if script in the GetGameLoaded using IsScriptMarkedOnLoad.

See Also