mahlendur/_work/Data/Scripts/Content/Spine/Spine_Statistics.d
Daniel Heße 892a40ff0f Initial commit with Subversion-codebase from 13/05/2022.
Cleaned up the mess, at this time, only viable data get synced (_work directory for Gothic-data, miranda for mdc-scripts.
Need to symlink files to a working directory.
2022-05-13 17:38:52 +02:00

14 lines
566 B
D

var int Spine_UpdateStatisticFunc;
// updates a statistic value with given identifier, guild, name and value
// general usage case for this is to create statistics that will help to balance the mod
// that's why identifier is intended to be the chapter
func void Spine_UpdateStatistic(var int identifier, var int guild, var string name, var int value) {
if (Spine_Initialized && Spine_UpdateStatisticFunc) {
CALL_IntParam(value);
CALL_cStringPtrParam(name);
CALL_IntParam(guild);
CALL_IntParam(identifier);
CALL__cdecl(Spine_UpdateStatisticFunc);
};
};