Cheese Vendor COB Tutorial.zip

Cheese Vendor COB Tutorial.zip thumbnail image
Fact Value
Original File Cheese Vendor COB Tutorial.zip
Game
  • Creatures 2
Creator
  • Helen
Wiki Link https://creatures.wiki/Helen%27s_Cob_Creation_Tutorials
Tags
File Size: 24 KB

Archive has been repacked for EemFoo. Click to here

Description(Generated)

Cheese Vendor COB Tutorial by Helen for Creatures 2, contains sprite and sound files

Text File Composite

::----- Vendor.rtf -----::
A food dispenser  
    
    Introduction: 
   Now we’  ll move on to something a little more difficult. :) This tutorial will teach you how to create a dispenser (an object that injects another object each time you push it). This is a little harder than a simple food or d rink as it contains a few extra scripts, but it’ s not really that difficult (no CAOS is if you understand it properly). BTW I’ m only explaining to commands I’ ve not explained before as I’ m assuming you’  ve read the other tutorials in the series first.  
   
    Installation Script: 
    
   inst 
 new: simp hcvr 1 0 300 0 
 setv cls2 2 8 31501 
 setv attr 199 
 bhvr 1 1 
 slim 
 edit 
 endm 
  
 inst 
 new: simp hcvr 1 0 300 0 
  The file this time is called hcvr (Helen’ s Cheese VendoR) which is a lovely sprite made by Wafuru who runs the adventures in Nornsitting site (http://www.telesouth1.com/~ryouko/creatures/norn.html). Don’  t forget to embed this into your cob! 
    
 setv cls2 2 8 31501 
  Same as always. This time the number is 2 (simple object) 8 (dispenser) 31501 (our special dispenser number for this particular dispenser) 
    
 setv attr 199 
  It’ s 199 this time instead of 195 because we want this dispenser to do what the cheese and cordial did, but also be activatable by the hand. The attr command is actually calculated by adding together those properties you’  d like you object to show from a list of properties (I must put this list up on my site for download). 
    
 bhvr 1 1 
  It’ s 1 1 rather than 0 64 because we want both the hand and Norns to be able to press it and we don’ t want them to eat it. 
    
 slim 
 edit 
 endm 
  
    The dispenser push script: 
   *ominous music* Here’ s the most important part for this cob. It looks quite a bit more challenging than the food and drink cobs from previous tutorials, but don’ t be fooled. It only looks that way because it ’ s longer than the others.  
   
   scrp 2 8 31501 1 
 setv actv 0 
 snde vend 
 stim writ from 0 255 0 0 45 150 0 0 0 0 0 0 
 <...truncated>

Other Images

S16 Preview - hcvr[0]
S16 Preview - hcvr[0]