Cob Tutorial 7
Introduction
In this tutorial you’ll make a spade cob! This is a cob I made a while ago which can be used to “dig out” fruits, plants, bad plants and flowers. This will be your first implement cob! I personally like making eye candy a lot of the time, but sometimes you just need something to make Albia that one tiny bit easier.
Install script
inst new: simp hspd 4 0 8000 0 setv cls2 2 9 31505 bhvr 1 0 setv attr 199 slim edit endm
Push Script
scrp 2 9 31505 1 base 0 anim[0123210123210123210] etch 2 4 0 kill targ next etch 2 15 0 kill targ next etch 2 23 0 kill targ next etch 2 25 0 kill targ next etch 2 24 0 kill targ next setv actv 0 endm
scrp 2 9 31505 1 base 0 anim[0123210123210123210] etch 2 4 0
This is a new command. This command tells the object to check if there are any objects with a corresponding object number are touching the object. In this case it seeks all objects with family number two (all simple objects in other words) and the genus number 4 (plants) and any species number. In this command zero is the “wild card” number. This means that it could be any number and that any plant the spade is placed in front of will be picked.
kill targ next
Tells creatures to run this piece of script again till there are no more plants touching the spade that have not been deleted.
etch 2 15 0
Now it’s searching for bad plants
kill targ next etch 2 23 0
Now it’s searching for flowers
kill targ next etch 2 25 0
Now it’s searching for fruits
kill targ next etch 2 24 0 kill targ next setv actv 0 endm
Removal Script
inst enum 2 9 31505 kill targ next srcx 2 9 31505 1 endm
Conclusion
Well that was certainly an easy one! That etch command is really handy. Ready for the next tutorial? Now I’ve just got to write it. :)