Alangara_PRC8/_module/nss/farm_trig_enter.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

29 lines
885 B
Plaintext

//::///////////////////////////////////////////////
//:: Name: farm_trig_enter
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
OnEnter script for a plot of farmland.
*/
//:://////////////////////////////////////////////
//:: Created By: Adam Walenga
//:: Created On: September 3rd, 2004
//:://////////////////////////////////////////////
void main()
{
object oPlayer = GetEnteringObject ();
if (!GetIsPC (oPlayer)) //Check if a PC entered.
return;
string sTag = GetTag (OBJECT_SELF);
//Inform the PC he/she is on fertile farmland.
SendMessageToPC (oPlayer, "You have entered a plot of farmland suitable" +
"for growing crops.");
SetLocalInt (oPlayer, "Farm_Number", StringToInt (GetStringRight (sTag,
(GetStringLength (sTag) - 13))));
SetLocalInt (oPlayer, "Is_On_Farm", TRUE);
}