24 lines
633 B
Plaintext
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);
|
|
}
|
|
|
|
}
|
|
|