VKC Manual - Advanced Commands

Commanding Your Pet Like a Pro

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 commanded 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 instincts 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

There is a fourth variation of the "moveto" command mainly for dog accessories designers and professional trainers. Most people will never have a 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.


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 "water" command. 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 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 constraints 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

Fido will go to the redball, take it in his mouth, come back to you, and drop the redball. If, however, you wanted Fido to continue doing something else, you would have to first tell him to drop the special item he was carrying. For example, say:

fido go redball take redball come drop redball go Enrico sit

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.


Carrying Your Dog

There are several VKC Pets who will leap into your arms or onto your shoulders so you can TP 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, and the Cats 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 come 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” from the menu. He will appear on the ground near you. You also can select “Detach” from the menu to place him directly into inventory.

When the dog 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 traveled since you picked him up, so he assumes that he has moved outside of any stay range you may have set or outside the settle parcel. 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 dog to be in active roaming mode when you put him down, be sure to tell him promptly what you want.

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

fido attach no

After this, Fido no longer will perform the “here” trick. You can, of course, 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 dog 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 select “Detach” from the menu to return your dog to your inventory.

You also can carry the other dogs, if you wish. Many people create a trick that tells the dog to assume a pose (like "rest", for example) and to attach to a specific attachment point on the avatar. Creating such a trick makes it easy to TP with your dog or to engage in sports such a motorcycling or horseback riding with your dog. Of course, you may just tell your dog what to do without creating a trick by saying something like:

fido down attach 9

This command tells your dog to assume the down pose and then attach himself to your back. You can find a list of poses in the pose chart and you can find a list of attachment points and their corresponding numbers in the Second Life Wiki.




×