
*+++++++++++++++++++++++++++++++*
*++ Food/Fruit/Seed Tutorial! ++*
*+++++++++++++++++++++++++++++++*

*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
*+ This file is commented and can be just compied and pasted and   +*
*+ with a little tinkering can be used properly! So Lets get       +*
*+ started on this, and teach you how to make your norns something +*
*+ to eat! May it be a fruit, piece of food or seed!               +*
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
*+ These sprites are not to be used in any agents, and are resticted to this tutorial! +*
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
*+ Here is the break done of the different classifications +*
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
*+Family      Genus         species              Object    +*
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
*+ 2            3      (Get one from the CDN)    Seed      +*
*+ 2            8      (Get one from the CDN)  Good Fruit  +*
*+ 2            11     (Get one from the CDN)    Food      +*
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
*+ Find more out on Classification at:                            +*
*+ http://www.creaturelabs.com/cdn/index.pl?articleid=15&style=0  +*
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*


*++++++++++++++++++*
*+ Install script +*
*++++++++++++++++++*

inst

*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
*+ This classification is set to food, but you can change +*
*+ it if you wish! This New: simp tells the game it's a   +*
*+ Simple agent. Later on I will cover compound!          +*
*+ For this tutorial we are using a set of sprites by me. +*
*+ Note: you will need to download the CDN Sprite Builder +*
*+ to get the sprite info thats located after the sprite  +*
*+ file name. 1 = the number of images used in the agent, +*
*+ while 0 is the image number that the agent starts at   +*
*+ in the file. 4500 is the plane. The higher the number  +*
*+ the closer to the camera it will be, the lower the     +*
*+ number the father away from the camera it will be.     +*
*+ Feel free to change the Genus, just keep the species,  +*
*+ I have regestered under my name for the tutorial.      +*
*+ But remember to change the species if you make your    +*
*+ own agent!                                             +*
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

new: simp 2 11 46005 "foodtutorialMNB" 1 0 4500

*+++++++++++++++++++++++++++++++++++++++*
*+ attr = Agent attributes             +*
*+ bhvr = Creature Permissions         +*
*+ perm = map permiability             +*
*+ accg = acceleration due to gravity  +*
*+ fric = Friction                     +*
*+ elas = elasticity                   +*
*+++++++++++++++++++++++++++++++++++++++*
*++++++++++++++++++++++++++++++++++++++++++*
*+ Agent attributes                       +*
*++++++++++++++++++++++++++++++++++++++++++*
*+ 1   = Carryable                        +*
*+ 2   = Mouseable                        +*
*+ 64  = Suffer Collisions                +*
*+ 128 = Suffer Physics                   +*
*++++++++++++++++++++++++++++++++++++++++++*

attr 195

*++++++++++++++++++++++++++++++++++++++++++*
*+ Creature Permissions                   +*
*++++++++++++++++++++++++++++++++++++++++++*
*+ 16 = Eat                               +*
*+ 32 = Pick Up                           +*
*++++++++++++++++++++++++++++++++++++++++++*

bhvr 48

*++++++++++++++++++++++++++++++++++++++++++*
*+ All bewlow based on 1 - 100            +*
*++++++++++++++++++++++++++++++++++++++++++*

perm 60
accg 4
fric 100
elas 40

*+++++++++++++++++++++++++++++++++++++++++++++*
*+ This is the new script used for injecting +*
*+ agents into C3 as well as DS,due to the   +*
*+ different x and Y cooridnates!            +*
*+++++++++++++++++++++++++++++++++++++++++++++*

setv va00 game "CreatorX"
setv va01 game "CreatorY"
doif va00 eq 0 and va01 eq 0
	setv va00 5687
	setv va01 3670
endi
mvsf va00 va01

*++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
*+ Emit CA = 8 is the Ca # and .5 is the amount emitted +*
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
*+ 1  = Light                                           +*
*+ 2  = Heat                                            +*
*+ 3  = Water - soil moisture only                      +*
*+ 4  = Nutrients                                       +*
*+ 5  = Water - bodies of water smell of this           +*
*+ 6  = Protein                                         +*
*+ 7  = Carbohydrate                                    +*
*+ 8  = Fat                                             +*
*+ 9  = Flowers                                         +*
*+ 10 = Machinery                                       +*
*+ 11 = Eggs                                            +*
*+ 12 = Norns                                           +*
*+ 13 = Grendels                                        +*
*+ 14 = Ettins                                          +*
*+ 15 = Norn homes                                      +*
*+ 16 = Grendel homes                                   +*
*+ 17 = Ettin homes                                     +*
*+ 18 = Gadgets                                         +*
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

emit 8 .5

*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
*+ How many game ticks go by before the timer script is activated. 20 ticks = 1 second +*
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

tick 1000

*+++++++++++++++++++*
*+ Ends the script +*
*+++++++++++++++++++*

endm


*++++++++++++++*
*+ Eat Script +*
*++++++++++++++*

scrp 2 11 46005 12

*+++++++++++++++++++++++++++++++*
*+ Locks the script so it can  +*
*+ not be activated while this +*
*+ script is still running     +*
*+++++++++++++++++++++++++++++++*

lock

*++++++++++++++++++++++++++++++++++++++++++++++++++*
*+ snde what tells the agent to play a sound file +*
*++++++++++++++++++++++++++++++++++++++++++++++++++*

snde "reat"

*++++++++++++++++++++++++++++++++++++*
*+ Injects the norn with a Stimulus +*
*+ 0 - 1 or -1, can also be 0.1 +   +*
*++++++++++++++++++++++++++++++++++++*
*+ 78 = Eaten Fruit                 +*
*+ 79 = Eaten Food                  +*
*++++++++++++++++++++++++++++++++++++*

stim writ from 79 1

*+++++++++++++++++++++++++++++++++++++*
*+ Tells Game to kill agent once the +*
*+ object has been eaten             +*
*+++++++++++++++++++++++++++++++++++++*

kill ownr

*+++++++++++++++++++*
*+ Ends the script +*
*+++++++++++++++++++*

endm

*++++++++++++++++*
*+ Timer Script +*
*++++++++++++++++*

scrp 2 11 46005 9

*+++++++++++++++++++++++++++++++++++++*
*+ Tells Game to kill agent once the +*
*+ timer script goes off run out!    +*
*+++++++++++++++++++++++++++++++++++++*

kill ownr

*+++++++++++++++++++*
*+ Ends the script +*
*+++++++++++++++++++*

endm

*++++++++++++++++++++*
*+ Collision Script +*
*++++++++++++++++++++*

scrp 2 11 46005 6

*++++++++++++++++++++++++++++++++++++++++++++++++++*
*+ snde what tells the agent to play a sound file +*
*++++++++++++++++++++++++++++++++++++++++++++++++++*

snde "dr10"

*+++++++++++++++++++*
*+ Ends the script +*
*+++++++++++++++++++*

endm

*+++++++++++++++++*
*+ Remove script +*
*+++++++++++++++++*

rscr

*++++++++++++++++++++++++++++++++++++*
*+ Targets the object then kills it +*
*++++++++++++++++++++++++++++++++++++*

enum 2 11 46005
kill targ
next

*+++++++++++++++++++*
*+ Ends the script +*
*+++++++++++++++++++*

endm
