creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
How to make an agent teach vocab?   
Solariana

Solariana
United States  


  7/14/2013

How would I go about writing the cos file/PRAY template for an agent so that it teaches vocabulary to a creature when pushed? :3

I've made sprites and rudimentary scripts for it already, I just need to know how to make it teach creatures. :3


Drawing today!
 
Papriko
Peppery One

Papriko



  7/14/2013  1

Instantly teaching the vocab would be targeting the creature (e.g. TARG FROM) and then just use the VOCB command. VOCB does not need anything at all, it stands all alone in an own line.

Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Solariana

Solariana



  7/15/2013

So you mean to say that I should put:

TARG FROM
VOCB

somewhere in the agent's COS file? :3


Drawing today!
 
Papriko
Peppery One

Papriko



  7/15/2013

The best would the the activation script, but yeah.
Optionally you can add some check if NORN FROM = 1, but you do not need to. I think VOCB is one of the few commands that does not mess up when used on something else than a creature...


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Arimar993

Arimar993



  7/20/2013

Hey, I just wrote the VOCB entry on the Creatures Wiki. Hope this helps.
 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  7/21/2013

Thanks, I was wondering who was adding all those pages to the Creatures Wiki lately! [ngrin]

My TCR Norns
 
Arimar993

Arimar993



  7/22/2013

Just been adding stuff as I go along with learning to write my own agents. To be honest, I'm just translating the CAOS HTML documentation and adding some (hopefully) useful examples. I've been programming since before these simulations came out, so I thought I'd put some of that general knowledge to good use for the Creatures community through the Wiki. I'm just glad to be helping 'cause I've always loved these games; and maybe better documentation will be more encouraging for others. [ngeek]
 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  8/4/2013

The push code for one of the C3 knowledge stones is as follows: (comments by me)

scrp 2 24 1 1
*make a noise
snde "know"
*make an animation
anim [0 1 2 3 4 5 4 3 2 1 0 1 2 3 4 5 4 3 2 1 0 1 2 3 4 5 4 3 2 1 0 1 2 3 4 5 4 3 2 1 0]
*set a range for the stone to look at - 100 pixels
rnge 100
*count all creatures in that range
esee 4 0 0
*teach them their vocab
vocb
*teach the next creature within range
next
*end the script
endm


My TCR Norns
 


downloads
cobs
adoptions
creaturelink
metarooms
breeds
 
gallery
art
wallpaper
screenshots
graphics
promos
sprites
dev
hack shack
script reservations
dev resources
active projects
dev forum
 
community
links
advice
chat
polls
resources
creatchi
 
forum
bookmarks
general
news
help
development
strangeo
survivor
mycaves
log in
register
lost pw
0 online
creatures caves is your #1 resource for the creatures artificial life game series: creatures, creatures 2, creatures 3, docking station, and the upcoming creatures family.

contact    help    privacy policy    terms & conditions    rules    donate    wiki