AOC_PRC8/_module/nss/reset_hwarscores.nss

24 lines
702 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:24:16 -04:00
////////////////////////////////////////
// Reset Player Score //
////////////////////////////////////////
#include "spawner"
void main()
{
object oPC = GetPCSpeaker();
object oMod = GetModule();
FloatingTextStringOnCreature("Success", oPC);
SetLocalInt (oMod,"heav_score", 0);
SetLocalInt (oMod,"hell_score", 0);
SetLocalInt(oMod, "heav_loss", 0);
SetLocalInt(oMod, "hell_loss", 0);
SetLocalInt(oMod, "iHvTotCas", 0);
SetLocalInt(oMod, "iHlTotCas", 0);
PlaySound("gui_select");
PCEffect(0.5, VFX_DUR_PIXIEDUST, oPC);
DelayCommand(0.5, PlaySound("sce_neutral"));
DelayCommand(2.0, PlaySound("sce_positive"));
Message(2.0, "*** The Holy War scores have now been reset ***", oPC);
}