Initial commit
Initial commit [v9.7]
This commit is contained in:
54
_module/nss/cnv_dnk_mv_tmpl2.nss
Normal file
54
_module/nss/cnv_dnk_mv_tmpl2.nss
Normal file
@@ -0,0 +1,54 @@
|
||||
#include "x0_i0_partywide"
|
||||
|
||||
void ClearAndJumpToObject(object oDestination);
|
||||
void ClearAndJumpToObject(object oDestination)
|
||||
{
|
||||
ClearAllActions();
|
||||
JumpToObject(oDestination);
|
||||
}
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
int nHench;
|
||||
object oHench;
|
||||
object oTarget;
|
||||
effect eVFX;
|
||||
|
||||
// Get the PC who is in this conversation.
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
// Find the location to which to teleport.
|
||||
oTarget = GetWaypointByTag("WP_temple");
|
||||
|
||||
// Teleport the PC.
|
||||
DelayCommand(1.0, AssignCommand(oPC, ClearAndJumpToObject(oTarget)));
|
||||
|
||||
// Also teleport associates.
|
||||
oHench = GetAssociate(ASSOCIATE_TYPE_ANIMALCOMPANION, oPC);
|
||||
DelayCommand(1.0, AssignCommand(oHench, ClearAndJumpToObject(oTarget)));
|
||||
oHench = GetAssociate(ASSOCIATE_TYPE_DOMINATED, oPC);
|
||||
DelayCommand(1.0, AssignCommand(oHench, ClearAndJumpToObject(oTarget)));
|
||||
oHench = GetAssociate(ASSOCIATE_TYPE_FAMILIAR, oPC);
|
||||
DelayCommand(1.0, AssignCommand(oHench, ClearAndJumpToObject(oTarget)));
|
||||
oHench = GetAssociate(ASSOCIATE_TYPE_SUMMONED, oPC);
|
||||
DelayCommand(1.0, AssignCommand(oHench, ClearAndJumpToObject(oTarget)));
|
||||
|
||||
// Support for multiple henchmen (includes horses).
|
||||
nHench = 1;
|
||||
oHench = GetHenchman(oPC, 1);
|
||||
while ( oHench != OBJECT_INVALID )
|
||||
{
|
||||
DelayCommand(1.0, AssignCommand(oHench, ClearAndJumpToObject(oTarget)));
|
||||
// Next henchman.
|
||||
oHench = GetHenchman(oPC, ++nHench);
|
||||
}
|
||||
// Destroy an object (not fully effective until this script ends).
|
||||
DestroyObject(GetObjectByTag("ptnwtrfnl"));
|
||||
|
||||
object oSelf = OBJECT_SELF;
|
||||
|
||||
// Give 10 experience (to party) to the PC.
|
||||
GiveXPToAll(oPC, 10);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user