Advanced Commands

Bandera española; enlace a la versión española de esta página Bandera de México, enlace a la versión española de esta página

Petting

All VKC animals allow you to pet them. Simply right-click on the animal and choose "Pet me". The traditional (Series I)pets have one petting animation and each breed has a unique animation.

There are at least three petting animations for each of the Pathfinding-enabled (Series II). When you use the setpet command, the petting animations will change accordingly. One of the following words should follow the setpet command:

  • stroke
  • hug
  • scratch
  • cuddle (available for some Series II pets)

Try them all. I am pretty sure you will find at least one you like. Remember, different animals have different petting animations. The animations for the Bloodhound II, for example, are different from those for the Yorkshire Terrier II.

With most of the VKC petting animations, you pet the animal for a while and then automatically stand up at the end of the animation. Selecting cuddle (available for some Series II pets) allows you to snuggle and caress your pet until you decide it is time to stand up and get on with your day.

Special Names for People

You can have a lot of fun just using the Direct Commands that I described in the last section. Fido has other commands which are either more complicated or especially used in training your dog (see the Training section). For example, there are five "special" people-names you can use with the movement commands which are especially useful in training:

  • owner — the dog's owner
  • speaker — the person or object that just command the dog
  • nearest — the person closest to the dog
  • farthest — the farthest person still within sensor range of the dog
  • random — a randomly selected person or active object near the dog

Controlling Movement

If you want finer control over how Fido moves, you can use the moveto command instead of go, run, or on. You follow the moveto command with a name and two numbers. These numbers define the range and speed of the movement of the dog. For example, 'fido moveto enrico 3 6' means that Fido will move to within 3 meters of a person, place or thing called "enrico' at a speed of 6 meters per second. In fact, the commands go, run, and on are just instrincts that use the moveto command. More on that later.

When we use this command, we must add at least three parameters to the command: target, range, and speed. The target is a person, place (mark or vector) or thing. The range is how close we want the dog to come to the target. And the speed is how fast we want the dog to go there. Here is a another example:

fido moveto redball 1.5 7

I made a variation of the moveto command mainly for dog accessories designers and professional trainers. Most people will never have need for it. But, if you're interested, you can add a fourth numeric parameter called "flags." Here are the basic values "flags" can contain:

    1 = Lock onto target (like in heel)

    2 = Do not turn toward target

    4 = No animation while moving

    8 = Move non-physically (llSetPos)

    16 = Use position offset (see "position" command)

    32 = Do not avoid obstacles

You can add these values up to get various combinations of behavior. For example, 14 means the dog will move non-physically, without animation, and without turning. I also supported vectors in the first parameter. So for example, let's say you want to move Fido to a specific point non-physically and without turning or walking. Say:

fido moveto <182,98,23> 0 0 14

First, notice there are no spaces in the vector. You cannot have spaces within the vector or the dog will interpret them as separate parameters. Since you are moving the dog non-physically, you can use zeroes for the range and speed parameters. The fourth parameter is the sum of 2 + 4 + 8, which means no turning, no animation and move non-physically. See? No? :)

Teleport

Another useful movement command is tp. This tells your pet to teleport to a person, mark, or active object that you name when you give the command. This command works only within a region, not from one region to the next.

For example:

fido tp owner — the pet, if he hears the command, promptly appears by his owner's side.

Forward and turn

Fido also has some simple movement commands that are mostly used in training:

  • turn
  • fwd

You can make Fido turn to any of eight compass points. Use your mini-map as a reference.

  • turn n (north)
  • turn ne (northeast)
  • turn e (east)
  • turn se (southeast)
  • turn s (south)
  • turn sw (southwest)
  • turn w (west)
  • turn nw (northwest)

In addition, you can have Fido turn 45 degrees to the right or the left, or turn around 180 degrees.

  • turn l (45° to the left)
  • turn r (45° to the right)
  • turn back (reverse direction)

To have your dog face you, say "turn toward" and to have your dog face away from you, say "turn away."

You can tell Fido to move forward a set distance. Say:

fido fwd 10

He'll walk forward 10 meters. You can also make Fido turn relative to his current rotation by saying

fido turn l

or

fido turn r

With these commands, Fido will turn left or right by 45 degrees.

Additional options for the turn command — The pathfinding-enabled dogs have some more options — they can turn to face avatars, other dogs, left, right, and angles in degrees!

For example:

fido turn enrico — fido turns to face enrico (an avatar)

fido turn rex — fido turns to face rex (another dog)

fido turn left — fido turns 90 degrees left

fido turn right — fido turns 90 degrees right

fido turn 130 — fido turns 130 degrees clockwise

fido turn -20 — fido turns 20 degrees counter-clockwise

Controlling Position for Heeling

You can also tell Fido to "heel" to a different position than on your left side with the command "position." (You may want to do this if you have more than one dog, for instance.)

fido position 270 1

If you want Fido on your right instead, say:

fido position 90 1

If you say,

fido position 0 4

Fido will walk out in front of you. 

To restore the original position settings, say:

fido position -1 -1

Water Commands

You can also choose how you want Fido to handle water with the command water. One of the following words must follow the water command:

  • swim
  • avoid
  • sink

If you spend any time near the water, you'll really enjoy this new feature. My favorite is swim. Let's say you want Fido to swim behind you while you sail. Give him a command like this:

fido position 180 2

fido water swim

fido heel

Fido will swim along the surface of the water behind you!

Note: due to the contraints of pathfinding, your pet will not be able to enter the SL water, let alone swim, when he is in pathfinding mode. If you want your pet to enter the water, you must set him to traditional mode first. To set your pet to traditional mode, say,

fido pf off

When your pet is finished playing in the water, return him to pathfinding mode. Say,

fido pf on

Carrying Objects

All VKC Pets can pick up items and carry things in their mouths. You can use these commands to teach him to play fetch, or get his toy and bring it to you. The commands are:
  • take
  • drop

Use those commands followed by the special item you want Fido to take or drop. For example, say:

fido go redball take redball come drop redball

The redball and several other free toys are available from the Information Kiosk at any VKC Park. Additionally, you can also find other toys for Fido for sale by various vendors at the VKC Parks.

With the original VKC Dogs, it is perfectly normal for the toy to be in the dog's mouth when he is standing but to follow along behind the dog as he moves about.

New Toy Handling

Beginning with the dogs released in 2011, the VKC offers the most lifelike toy handling yet. The dog really does carry the toy in his mouth. VKC Toy System 2 toys are backward compatible so they work with the early VKC Dogs, too.

You can get a selection of new-system toys from the Information Kiosks in every VKC Dog Park and on the Marketplace. You'll find that some of the nearby shops that specialize in accessories for VKC Dogs also have free toys in stock in addition to a variety of excellent toys, bowls, houses, and games.

To design the new toy system, I got together with Chiva Vavoom who has coded her own VKC Toys for years. Among other things, we agreed upon a protocol for a Lost Toy Remover system that will clean up VKC Toy System 2 toys at the touch of a button. The Lost Toy Remover is available for free from all the same locations that offer the free VKC System 2 Toys.

Carrying Your Pet

There are several VKC Pets who will leap into your arms or onto your shoulders so you can teleport with them and carry them with you wherever you go. The Chihuahua, the Bichon Frise, the Jack Russell Terrier, the Dachshunds, the Puppies, the Polar Bear Cub, the Cats, and the Rabbits currently have this trick. The command for the trick is here.

Before you can give your VKC Pet the here command, you have to give them permission to animate your avatar. So, assuming in this example that Fido is one of the pets that can be held in your arms, you would first say:

fido attach

A dialog box will appear in your SL window to ask you for permission to animate your avatar. You should give this permission (you can revoke it later). After you click yes, you can then say:

fido here

Fido will coming running over to you and leap into your arms (or onto your shoulders, if he is a Jack Russell). To place your pet on the ground again, you simply right-click on Fido and select "drop." He will appear on the ground near you. You also can select "detach" to place him directly into inventory.

When the pet is picked up, it is necessary to suspend both his active behavior and his body script. Otherwise, he gets in a terrible mess while the avatar is carrying him. When you drop Fido again, he has no easy way of knowing how far he has travelled since you picked him up, so he assumes that he has moved outside of any stay or settle range you may have set. Based on these assumptions, Fido sets his mode to roaming when you drop him. If he didn't do this, it would cause unexpected and undesirable behavior when he was dropped somewhere outside the settle parcel or stay area

Similarly, Fido doesn't have an easy way to tell if he was active or passive before you picked him up, so he goes with active, that being the most likely setting for him to have had previously.

If you do not want your pet to be in active roaming mode when you put him down, be sure to tell him promptly what you want.

NOTE: It is a limitation of SL that only the owner can carry a pet.

If you decide you no longer want your pet to be able to leap into your arms, say,

fido attach no

After this, Fido no longer will perform the "here" trick. You, of course can later say "Fido attach" again and he will then be able to leap into your arms once more when you give him the "here" command. Remember, the only way to let go of your pet after he is in your arms is to right-click on him and select "Drop" from the menu. Some parcels do not allow this command, in which case, you must select "Detach" to return your pet to your inventory if you no longer wish to carry him.

You also can carry the larger pets, if you wish. Many people create a trick that tells the pet to assume a pose (like rest, for example) and to attach to a specific attachment point on the avatar.  Once the pet is attached, they edit the pet until it is in a suitable position.

Creating such a trick makes it easy to teleport with your pet or to engage in sports such a motorcycling or horseback riding with your pet. Of course, you may just tell your pet what to do without creating a trick by saying something like,

fido down attach 9

This command tells your pet to assume the down pose and then attach himself to your back.