Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Guard Trick coming soon...

Driftwood Nomad
Registered User
Join date: 10 May 2003
Posts: 451
11-02-2004 12:57
I am currently working on a new trick for our dogs. It's called "guard". The Guard Trick works using series of Waypoints for the dog to go to. A Waypoint is simply a marker somewhere on your land that the dog can detect and move towards. Waypoints are numbered and the dog follows them in order. When it reaches the last one, it goes back to the first and starts over.

Setting a Waypoint is as easy as saying "wp" or "set waypoint" to your dog. A Waypoint will then appear under the dog where it is standing. It will automatically be named in numerical order.

Once all Waypoints are created, simply say "guard" to your dog and he will start following the Waypoints.

Other features include the ability to set the speed that the dog moves (in m/s). Simply say "speed 5" and the dog will travel at 5m/s between Waypoints. You can also define a length of time in seconds you want your dog to stay at each Waypoint. So if you want your dog to pause for 5 seconds at each Waypoint, just say "delay 5".

Waypoints are flat 1-prim objects with an animated paw pointing in the direction the dog will face when approaching that Waypoint. This allows you to rotate each Waypoint manually to ensure proper dog rotation as it moves between Waypoints.

Once all Waypoints are set and rotated properly, you can tell your dog "hide wp" to make the Waypoints invisible. If you need to move any of them, say "show wp" to show them again.

If you no longer want your dog to guard, say "come" and he will go back to normal behavior. If you want to remove all Waypoints, say "clear wp" and your dog will remove all Waypoints.

An addition to this trick has been to add a random "bark" every so often while guarding.

Still left to do:
  1. Make Waypoints specific to each dog so you can have multiple dogs following different sets of Waypoints all on the same property
  2. Add "phantom" option. This protects dogs from being used as target practice by people with guns while the dog owner is away.
  3. Possibly integrate "attack" if possible. Not sure about this one.
  4. Possibly add an avatar sensor that collects names of nearby avs and IMs to owner. Again, not sure about this one.


The reason I'm not sure about a couple of these is because it would require a new sensor, which would potentially override the existing Waypoint sensor. I may be able to combine those into one and perform different actions depending on what was sensed. But no promises. :)

Any other suggestions? Does this seem like a reasonable and usable trick?
_____________________
Driftwood Nomad
D&D Dogs Co-founder

"Second Life’s first AI companion animal"
The Second Opinion, 08/05/2003

D&D Dogs HQ Pawaii (127, 63)
Mainland Store Kuula (214, 124)

http://www.sldogs.com

SL Dogs Zazzle store!
Goshua Lament
Registered User
Join date: 25 Dec 2003
Posts: 703
11-02-2004 13:21
How about when an intruder comes, the dog folds open into a transformer and orbits them?
_____________________
Flickr Second Life Photo Gallery

I no longer regularly login to SecondLife, but please contact me if an issue arises that needs my attention.
Driftwood Nomad
Registered User
Join date: 10 May 2003
Posts: 451
11-02-2004 13:29
Hehehe! Ummmm...maybe for a future release, Goshua! ;)
_____________________
Driftwood Nomad
D&D Dogs Co-founder

"Second Life’s first AI companion animal"
The Second Opinion, 08/05/2003

D&D Dogs HQ Pawaii (127, 63)
Mainland Store Kuula (214, 124)

http://www.sldogs.com

SL Dogs Zazzle store!
Driftwood Nomad
Registered User
Join date: 10 May 2003
Posts: 451
11-03-2004 07:46
Interesting turn of events. I got the attack part to work, but the phantom toggle causes problems. The dog falls through the floor when phantom :)

I can fix this by making sure the dog's height is relative to the waypoint, but I don't think it's worth it right now. This would cause interesting issues with different land terrain between waypoints. So phantom is out, attack is in :)
_____________________
Driftwood Nomad
D&D Dogs Co-founder

"Second Life’s first AI companion animal"
The Second Opinion, 08/05/2003

D&D Dogs HQ Pawaii (127, 63)
Mainland Store Kuula (214, 124)

http://www.sldogs.com

SL Dogs Zazzle store!
Driftwood Nomad
Registered User
Join date: 10 May 2003
Posts: 451
11-12-2004 03:05
The long wait is over! Now you can get your dog to earn his keep by guarding your property! Yes the GUARD TRICK is here!

Here's how it works:

You have your dog set a series of waypoints to follow, then you just say "guard" and he'll start following the waypoints in the order they were created. Don't worry about how the waypoints look...once you set them you can hide them by saying "hide wp".

If "assault mode" is on, your dog will attack any avatar that gets within 10 meters. You can also change the speed your dog moves between waypoints, as well as the amount of time he spends at each waypoint.

Come check it out and put your pooch to work! :)
_____________________
Driftwood Nomad
D&D Dogs Co-founder

"Second Life’s first AI companion animal"
The Second Opinion, 08/05/2003

D&D Dogs HQ Pawaii (127, 63)
Mainland Store Kuula (214, 124)

http://www.sldogs.com

SL Dogs Zazzle store!