Initial commit
Initial commit [v9.7]
This commit is contained in:
28
_module/nss/opn_sen_crate_sp.nss
Normal file
28
_module/nss/opn_sen_crate_sp.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
void main()
|
||||
{
|
||||
object oActor;
|
||||
object oSpawn;
|
||||
|
||||
// Get the creature who triggered this event.
|
||||
object oPC = GetLastOpenedBy();
|
||||
|
||||
// Only fire once.
|
||||
if ( GetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF)) )
|
||||
return;
|
||||
SetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
// Cutscene functions:
|
||||
BlackScreen(oPC);
|
||||
|
||||
// Spawn some critters.
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "kyzik", GetLocation(oPC));
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "kyziksquasitf", GetLocation(oPC));
|
||||
|
||||
// Cutscene functions:
|
||||
DelayCommand(0.3, FadeFromBlack(oPC));
|
||||
|
||||
// Have "Kyzik1" strike up a conversation with the PC.
|
||||
oActor = GetNearestObjectByTag("Kyzik1", oPC);
|
||||
DelayCommand(1.0, AssignCommand(oActor, ActionStartConversation(oPC)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user