Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2025-04-03 11:24:16 -04:00
parent 3ba3cf1b81
commit 5e558169a0
6086 changed files with 1502996 additions and 1 deletions

22
_module/nss/pvote.nss Normal file
View File

@@ -0,0 +1,22 @@
#include "nw_i0_generic"
void main()
{
object oMod = GetModule();
object oCrystal1 = GetObjectByTag("crystal1");
object oCrystal2 = GetObjectByTag("crystal2");
object oCrystal3 = GetObjectByTag("crystal3");
int oVote = GetLocalInt(oMod, "pvote");
int oPlayers = GetLocalInt(oMod, "num_players");
oVote=oVote+1;
SetLocalInt(oMod, "pvote", oVote);
int oResult = GetLocalInt(oMod, "pvote");
if (oResult==oPlayers)
{
AssignCommand(oCrystal1, ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE));
AssignCommand(oCrystal2, ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE));
AssignCommand(oCrystal3, ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE));
SetLocalInt(oMod, "lever_state", 1);
RecomputeStaticLighting(GetArea(OBJECT_SELF));
}
}