27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
void main()
|
|
{
|
|
object oPC = GetEnteringObject();
|
|
|
|
|
|
SendMessageToPC(oPC, "Although there are no chickens to be seen, you see a trough full of chicken feed.");
|
|
|
|
SendMessageToPC(oPC, "There are hundreds of chicken tracks, and even a few feathers here and there, but no chickens.");
|
|
object Egg = GetItemPossessedBy(oPC, "Egg");
|
|
if (Egg == OBJECT_INVALID){return;}
|
|
object Feed = GetItemPossessedBy(oPC, "Feed");
|
|
if (Feed == OBJECT_INVALID){return;}
|
|
object Skull = GetItemPossessedBy(oPC, "Skull");
|
|
if (Skull == OBJECT_INVALID){return;}
|
|
object Feather = GetItemPossessedBy(oPC, "Feather");
|
|
if (Feather == OBJECT_INVALID){return;}
|
|
DestroyObject(Egg);
|
|
DestroyObject(Feed);
|
|
DestroyObject(Skull);
|
|
DestroyObject(Feather);
|
|
DelayCommand(1.2, SendMessageToPC(oPC, "Suddenly, a vortex opens underneath you, and you are sucked into it!"));
|
|
location vortex = GetLocation(oPC);
|
|
location chicken = GetLocation(GetWaypointByTag("chicken"));
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect( VFX_FNF_IMPLOSION), vortex);
|
|
DelayCommand(3.0, AssignCommand(oPC, JumpToLocation(chicken)));
|
|
}
|