generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
23
_module/nss/reset_hwarscores.nss
Normal file
23
_module/nss/reset_hwarscores.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
////////////////////////////////////////
|
||||
// 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user