Substitute Doll (teardown)

''This is a teardown page explaining the details and inner workings of this agent. For general information, see Substitute Doll''

The Substitute Doll is a simple toy agent created by Voidirium and available for download at Creatures Caves.

install script
new: simp 2 21 57151 "substitute_img" 3 0 1000


 * ======== ATTR properties: Carryable, Mouseable, Activateable, Suffer Collisions, Suffer Physics

attr 198


 * ======== behaviors: push, pull, hit, pick up ========

bhvr 43


 * ======== physics ========

elas 10

accg 3

fric 100

aero 5

perm 100

mira rand 0 1


 * ======== injection into Inventory========

seta va00 targ

enum 1 2 11

spas targ va00

doif ov00 = 0 and clac = 0

mesg writ targ 0

endi

next

push
scrp 2 21 57151 1

stim writ from 97 1

sndc "vpkd"

velo 0 rand -5 -10

doif carr eq null

anim [1 1 2 2 1 1 0]

over

endi

targ from

chem 190 -0.5

driv 12 -0.5

chem 160 -0.5

chem 143 -0.5

endm

pull
scrp 2 21 57151 2

stim writ from 97 1

sndc "vpkd"

velo 0 rand -5 -10

doif carr eq null

anim [1 1 2 2 1 1 0]

over

endi

targ from

chem 190 -0.5

driv 12 -0.5

chem 160 -0.5

chem 143 -0.5

endm

hit
scrp 2 21 57151 3

stim writ from 97 1

sndc "vpkd"

velo 0 rand -5 -10

doif carr eq null

anim [1 1 2 2 1 1 0]

over

endi

targ from

chem 190 -0.5

driv 12 -0.5

chem 160 -0.5

chem 143 -0.5

endm

pickup
scrp 2 21 57151 4

stim writ from 18 1

anim [2]

over

endm

drop
scrp 2 21 57151 5

stim writ from 19 1

anim [1]

over

endm

collide
scrp 2 21 57151 6

snde "vpk2"

anim [0]

over

endm

remove
rscr

enum 2 21 57151

kill targ

next

scrx 2 21 57151 1

scrx 2 21 57151 2

scrx 2 21 57151 3

scrx 2 21 57151 4

scrx 2 21 57151 5

scrx 2 21 57151 6