|
Development Forum |
 |
| Pokeball toy does absolutely nothing | |
| 
the1whoscreams
  
|
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
     Manager

|
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
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
  
|
8/1/2014 | |
Okay,it's working perfectly now,thanks! |
|