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