creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
Pokeball toy does absolutely nothing   
the1whoscreams

the1whoscreams
United States  


  8/1/2014

The pokeball I'm referring to is not the one that can be used as an ettin trap,it's a toy.It injects fine,but when I or my norns try to use it,it does nothing.It's supposed to have a shaking animation.Here's the code.

inst
new: simp 2 21 14893 "master ball" 7 0 500
attr 195
elas 10
accg 2
perm 100
seta va00 targ
enum 1 2 11
spas targ va00
doif ov00 = 0 and clac = 0
mesg writ targ 0
endi
next

scrp 2 21 14893 1
stim writ from 1 1
anim [1 2 3 2 1 0 4 5 6 5 4 0]
endm

rscr
enum 2 21 14893
kill targ
next
scrx 2 21 14893 12

 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  8/1/2014

Have you set a BHVR value? You need to set the BHVR value when you make the toy so that the game knows what actions a creature can do to it. Without it, creatures can't interact with objects. An easy tool to calculate BHVR and ATTR values is available at CAOS APPS. :)

Another couple of things that I noticed in your code are that in the push script, the stimulus needs to be

stim writ from 97 1


so that the pokeball will feel like a toy to the creatures, and not confuse them. At the moment, with stim writ from 1 1, it will feel like the hand has tickled them when they push the toy.

When you remove the agent, the scrx needs to be changed from 2 21 14893 12 (an eat script) to 2 21 14893 1 (a push script).

Hope this helps!


My TCR Norns
 
the1whoscreams

the1whoscreams



  8/1/2014

Okay,it's working perfectly now,thanks!
 


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