Initial commit
Initial commit [v9.7]
This commit is contained in:
38
_module/nss/conv_move_speel2.nss
Normal file
38
_module/nss/conv_move_speel2.nss
Normal file
@@ -0,0 +1,38 @@
|
||||
void main()
|
||||
{
|
||||
//Move individual to new location
|
||||
location lNewLocation = GetLocation(GetObjectByTag("WP_SPEEL"));
|
||||
object oTarget;
|
||||
|
||||
|
||||
//Since the script is called from a conversation
|
||||
//determine who is moved by calling the GetPCSpeaker function
|
||||
oTarget = GetPCSpeaker();
|
||||
|
||||
if (GetIsObjectValid(oTarget) == TRUE){
|
||||
AssignCommand(oTarget,ActionJumpToLocation(lNewLocation));
|
||||
}
|
||||
else if (GetIsObjectValid(oTarget) == FALSE) {
|
||||
SpeakString("Problem here");
|
||||
}
|
||||
|
||||
object oSpawn;
|
||||
location lTarget;
|
||||
int nInt;
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
oTarget = GetObjectByTag("Fell");
|
||||
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Fell")));
|
||||
|
||||
oTarget = GetObjectByTag("Fell");
|
||||
nInt = GetObjectType(oTarget);
|
||||
oTarget = GetObjectByTag("Fell");
|
||||
DestroyObject(oTarget, 5.0);
|
||||
|
||||
oTarget = GetWaypointByTag("WP_Spn_Fell2");
|
||||
lTarget = GetLocation(oTarget);
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "fell2", lTarget);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user