//:://///////////////////////////////////////////// //:: 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); }