AOC_PRC8/_module/nss/cm_onmodload.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

24 lines
633 B
Plaintext

// Module : OnModuleLoad by Brian "spilth" Kelly
// For Neverwinter Nights - Bleeding Tutorial
#include "spawner"
void main() {
// Everybody is assumed to be living when the module loads
object oModule = GetModule();
object oPC = GetFirstPC();
int oAlign = GetAlignmentGoodEvil(oPC);
SetLocalInt(oModule, "cutscene_flag", 1);
DelayCommand(2.0, SetPlotFlag(GetObjectByTag("starfall"), TRUE));
if (oAlign==ALIGNMENT_EVIL)
{
SetLocalInt(oModule, "gamemode",1);
spawner (oPC, "mephisto", 2);
}
else
{
SetLocalInt(oModule, "gamemode",0);
spawner (oPC, "starfall", 2);
}
}