Requirements
- Ikarus script package: Thread @ World of Gothic
- LeGo script package: Thread @ World of Gothic
- Spine script package: Download @ GitHub
- Tutorial 1 – Initialization
Introduction
This tutorial covers filling and managing save data across multiple savegames. Required is the module SPINE_MODULE_OVERALLSAVE. It can be useful for achievements like “Complete the game with every guild” or “Defeat x enemies”.
The Functions
Here we want to explain the functions of this module.
Spine_OverallSaveSetString
With Spine_OverallSaveSetString you can save any string value. Therefor you need a key to identify the value. An example:
Spine_OverallSaveSetString("LastTalkedNpc", "Xardas");
Spine_OverallSaveGetString
With Spine_OverallSaveGetString saved string can be queried again. That means with
Spine_OverallSaveGetString("LastTalkedNpc");
you’ll get the value “Xardas” after executing the previous example.
Spine_OverallSaveSetInt
With Spine_OverallSaveSetInt you can save any integer value, so every number. That works similar to the strings. That means you can use
Spine_OverallSaveSetInt("MonstersKilled", 10);
to save the amount of killed monsters.
Spine_OverallSaveGetInt
With Spine_OverallSaveGetInt the value can be queried again easily. That means
Spine_OverallSaveGetInt("MonstersKilled");
will return the previously set 10.