COW v8.14 on localhost - it is 10:27 on Mon
papa (you) starts to read the book of coding
papa (you) starts to read the book of coding
papa (you) starts to read the book of combat
papa (you) starts to read the book of combat
papa (you) starts to read the book of communication
papa (you) starts to read the book of communication
papa (you) starts to read the book of counting
papa (you) starts to read the book of hints
papa (you) starts to read the book of howtos
You read a book of howtos by wolis at 24:00 on Thu 17 Feb 2005 edit
How To Do Things In COWScript

How to find things
These set the variable $found_id

How to find an specific object in your current location:

find $loc,small chair;


How to find an specific object in the actor:

find $actor,small chair;


How to find an random object in your current location:

find $loc,random;


How to find an random object which is not the actor:

find $loc,random not me;


How to find an random object which is a doorway:

find $loc,random doorway;


How to find an random object which is a player and not the actor:

find $loc,random player not me;


How to find an random object which is not a doorway, a player or the actor:

find $loc,random not doorway not player not me;


How to move an objects location
If the object to be moved is known as $found_id and the new location is $dest:

set $found_id's loc to $dest;


You would want to tell people in the old location that the object has left, and in the new location that it has arrived so the complete code is this:


var $loc to $found_id's loc;
say 'leaves',''[$actor] winks out of existance!'';
set $found_id's loc to $dest;
var $loc to $dest;
say 'arrives',''[$actor] arrives with a pop!'';


How to set a variable to a random string of text


var $colour to (red,yellow,white,orange with green bits,black and white,purple);


How to set a variable to the displayable unformated name of an object
This sets a variable $this_name

findname $trget,plain;

information on image

Written by wolis at 20:40 on Thu 14 Apr 2005 edit
You can assign images to an object in 4 ways:

1. You can assign a large image as the background to the location that shows when someone does the map command.

2. You can assign a medium sized image to an object that shows instead of its name when someone does the map command.

3. You can assign a small icon image to go beside an objects name when someone does a look command which is the standard each time you enter a room/location. You can optionally have the image text hidden so only the image shows.

4. You can assign a small icon image to go along side an objects name when someone does a list command as well as each entry in the message log screen. You can optionally have the image text hidden so only the image shows.

The 4 images cmds are:
imgloc - works on the current location
imgmap {object}
imglook {object}
imglist {object}


eg imgmap the old chair To indicate which image to use, just type in the name of the image name (you have uploaded) in the text box provided eg:
/cow/img/bananas.jpg

To upload images for use you can use this tool:
link http://wolispace.com/cgi-bin/cow_uploader.pl

This will ask you to browse for an image you have created and upload it to the /cow/img/ folder on the wolispace.com server. When it has been uploaded you can then reference it in any of the image commands as shown above.

NOTE: you can put in a complete URL to any image on the net by typing its full URL into the textbox provided for by the image command eg: http://website.com/folder/imagename.jpg

I have setup a large cardboard box in the new town as an example.. go inside it and do a map. Nothing is locked in there so you can see how its done. Please do not change the example objects so others can learn too.

And a final reminder, when you edit or write in an object if you include the text 'img' followed by a space, then an image reference as shown above, then the image will be displayed when someone examines your object.

These are 7 years, 3 months, 1 day, 13 hours and 47 minutes old
Cmd:Say: !

currently logged in
nudge the book of howtos up, down, left, right, paint it, edit it, push it read read read read read read read read read read about read