generated from Jaysyn/ModuleTemplate
25 lines
701 B
Plaintext
25 lines
701 B
Plaintext
//
|
|
//
|
|
//
|
|
void main()
|
|
{
|
|
object oPc = GetItemActivator();
|
|
location lPc = GetLocation(oPc);
|
|
location lWyrmling = GetItemActivatedTargetLocation();
|
|
object oWyrmling = CreateObject(OBJECT_TYPE_CREATURE, "henchman_ponysp", lPc, TRUE);
|
|
|
|
/////////////////////////////////////// name the horse //////////////
|
|
SetName (oWyrmling, GetName(GetItemActivator()) + "'s " + " Pony");
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
if (GetIsObjectValid(oWyrmling))
|
|
{
|
|
AddHenchman(oPc, oWyrmling);
|
|
}/* end then (valid owyrmling) */
|
|
else
|
|
{
|
|
AssignCommand(oPc, ActionSpeakString("Invalid Pony"));
|
|
}/* end else (valid owyrmling) */
|
|
}
|
|
|