MUSH SUPPORT
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Pets, pets, and more pets

Go down

Pets, pets, and more pets Empty Pets, pets, and more pets

Post  Void Sat Aug 29, 2009 10:33 am

I'm just throwing together a quick guide for pets/puppets

1. you'll have to create an object
Code:
@create object

2. set its puppet flag
Code:
@set object=puppet

3. From here, there's lots of things you can do. First, set the pet to monitor so it can hear commands
Code:
@set object=monitor

4. Add some easy spoken commands: (i assume you understand how these work)
Code:
&bark_cmd object=*^ says, "Bark!":POSE goes berserk and barks viciously.

5. Easy code to take/drop stuff:
Code:
&takeobject_cmd object=*^ says, "Pet, take *!":POSE shifts around and says, "Rowkay" then slithers over to %1 and picks it up.;take/quiet %1

Code:
&dropobject_cmd object=*^ says, "Pet, spit * out!":POSE hacks and coughs up a %1.;drop/quiet %1

6. Stoko's learning code from mushcode.com (http://www.mushcode.com/ViewFile.aspx?Id=185 for that lecture)
Code:
&command_learn #4784=^* says, "Pet, when I say "*", everyone in the room will see - *":@force me={@set me=command_%1:^* says, "Pet, %1":@emit %2;pose intelligently nods to %N.}

this basically lets you teach it commands without having to use any coding. For example, to teach a pet to sleep, you'd type "Pet, when I say "Sleep", everyone in the room will see - Pet hits the snooze button on the alarm and goes back to sleep".
now you'll type "pet, sleep" and the pet will do the resulting action. it's BAUS
Void
Void
Admin

Posts : 14
Join date : 2009-08-17

https://mush.board-directory.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum