Initial commit
Initial commit [v9.7]
This commit is contained in:
26
_module/nss/myrra13.nss
Normal file
26
_module/nss/myrra13.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "x0_i0_partywide"
|
||||
|
||||
void main()
|
||||
|
||||
{
|
||||
//Move individual to new location
|
||||
location lNewLocation = GetLocation(GetObjectByTag("WP_Cash"));
|
||||
object oTarget;
|
||||
|
||||
// Get the PC who is in this conversation.
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
// Give 5 experience (to party) to the PC.
|
||||
GiveXPToAll(oPC, 5);
|
||||
|
||||
//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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user