Initial Commit
Initial Commit
This commit is contained in:
25
_module/nss/su_tourneyyellow.nss
Normal file
25
_module/nss/su_tourneyyellow.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "x4_inc_functions"
|
||||
#include "x3_inc_horse"
|
||||
|
||||
//Put this on action taken in the conversation editor
|
||||
void main()
|
||||
{
|
||||
// Important system variables
|
||||
string sChainTag = "ch_tourneyyellow";
|
||||
string sHorseResRef = "horse_tyellow";
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
location lTarget = GetLocation (oPC);
|
||||
|
||||
if (GetItemPossessedBy(oPC, sChainTag)!= OBJECT_INVALID)
|
||||
{
|
||||
object oSteed = CreateObject (OBJECT_TYPE_CREATURE, sHorseResRef, lTarget);
|
||||
SetLocalString(oSteed, "sOwner", CharacterDB(oPC));
|
||||
// Assigns the mount to oPC.
|
||||
HorseSetOwner(oSteed, oPC, TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
SendMessageToPC(oPC, "You don't have the required chain anymore!");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user