//////////////////////////////////////// // 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); }