Cheese Variant COB Tutorial

zip file icon
Fact Value
Original File Cheese Variant COB Tutorial.zip
Game
  • Creatures 2
Creator
  • Helen
Wiki Link Search "Cheese Variant COB Tutorial" on creatures.wiki
Tags
File Size: 5 KB

Archive has been repacked for EemFoo. Click to here

Description(Generated)

Text File Composite

::----- Cobtut1.rtf -----::
A simple food cob  
    Introduction: 
   For our first project, lets write a very simple food cob. We’ ll make a cheese alternative. This will be easy to make, as it doesn’ t need it’  s own new picture file. To create the installation script type out the in bold. All other  text is a description of what the syntax does  
  
     Installation script: 
   Let’ s start off with the installation script. Type the below into BoBCoB 
  inst 
 new: simp cmac 2 25 1000 0 
 setv cls2 2 6 31508 
 setv attr 195 
 bhvr 0 64 
 slim 
 edit 
 endm 
  
 Here’ s what all that stuff does: 
  inst 
 This tells Creatures that a new object is being added. It creates the object straight away without any interruptions 
  
  new: simp cmac 2 25 1000 0 
 Brings the picture of the cheese into Albia. New: tells creatures that it is a new cheese object. Simp tells creatures that it is a simple object (has only one clickable part). Cmac is the name of where the cheese picture is installed. The numbers at the  end tell creatures the number of pictures in the cmac file and the one that the cheese starts on, but don’ t worry too much, I’ ll explain these in the next tutorial 
  
  setv cls2 2 6 31508 
 This sets the class number of the cheese objects. This is an identifying number so it can not be the same as any other object. Setv means set the variable. Cls2 means creatures 2 class number. 2 is the family and tells creatures that this is a simple cob.  6 is the genus and tells creatures that this is a food cob. 31508 is the number that tells this cheese version from all the other cheese versions. It is called the species number. The species number can be anywhere between 20,000 and 65,000. It’  s best to stake out a claim though on the creatures newsgroup so you do not overwrite anyone else’ s cobs. I’ ll use species numbers in my range for these tutorials (my range is 31500 - 32000) so please don’  t decide to use numbers around this area. :) 
  
  setv attr 195 
 This sets the variable attributes to 195. This means the object falls, the object can be picked up by Norns and creatures, the object can be activated by creatures and the object is subject to room boundaries and the like. 
  
  bhvr 0 64 
 This command sets the behaviour of the cheese. It tells the game that the cheese can be eaten by the Norn, but can not be activated by the hand. 
  
  slim 
 Sets the limits of the objects (don’ t ask, I don’ t really understand it myself) 
  
  edit 
 makes the object inject on the hand 
  
  endm 
 endm means end macro. This means you must put it at the end of every script to tell Creatures that this is the end of the script. 
  
 <...truncated>

::----- Bobcob.rtf -----::
Using BoBCoB 
   New file: 
   To create a brand new cob file in BoBCoB go to the file menu and click new.  
  Now go to the « agent name»  section near the top of the program and click add.  
  Type in the name you’ d like to appear with you agent in the object injector. 
  Type in a description of your object you’ d like shown with your agent in the object injector 
    Saving: 
   Go to the file menu 
  Click the save option 
 Save the cob file as you would any other file in any other program 
  
    Opening: 
   To open an existing cob file to work on click on the open file option on the file menu and open the file as you in any other program. 
   
    Adding a new installation script: 
   Each object may only have one installation script in C2. To add an installation script click on the tab above the white ed iting space in the BoBCoB editor labelled installation script. Double click in the white space. When a new window (titled installation script) comes up write your installation script in there. 
   
    Adding event scripts: 
   Objects may have as many event scripts as you like. To add a new event script click on the tab labelled other scripts and click on the « add»  button. This will bring up a new window labelled «  object scripts»  and will allow you to type in your script. 
   
    Editing event scripts: 
   You may need to fine tune an event script after you have tested your agent in Albia. Do not dispair! :) Just click on the « other script»  tab, and double click on the script you’ d like to change.   
   
    Adding remover scripts: 
   Practically the same as installation script only you click on the remover script tab rather than the installation script tab.  
  
 Ok. :) That’ s as far as my patience holds for this document. If you’ ve any further queries BoBCoB has a very intensive help file (deceptively hidden under the help menu). This document should let you do all that is necessary for the first  few tutorials I’ ve got written. If you have any major problems however, you can contact me at *****@frimlin.co.nz