APESCRIPT AND THE NOBLE APE SIMULATION

Variables Defined for the Noble Ape Simulation

VariableTypeNotes



randomoutputspecial - produces a 16-bit random number
vector_angleinput/outputvalues from 0 to 63 with wrap-around (for greater values)
vector_x outputbased on vector_angle (-840 to 840)
vector_youtputbased on vector_angle (-840 to 840)

Land
test_xinput/output
test_yinput/output
test_zoutputbased on test_x and test_y, provides numerical land height

timeoutputconstant dt - numerical 24 hour time in minutes (see File Format)
dateoutputconstant dt - numerical date in days (see File Format)
weatheroutputconstant dt - numerical weather value (see File Format)
water_leveloutputconstant - the numerical water level (from z height)

Being
number_beingsoutputconstant dt
current_beingoutputconstant db
select_beinginput/outputset to current_being initially

location_xoutputbased on select_being (see File Format)
location_youtputbased on select_being (see File Format)
location_zoutputbased on location_x and location_y (ie select_being), provides numerical land height
id_numberoutputbased on select_being (see File Format)
date_of_birthoutputbased on select_being (see File Format)
facingi/o beingNOT based on select_being (see File Format)
speedi/o beingNOT based on select_being (see File Format)
energyi/o beingNOT based on select_being (see File Format)
hungryoutputconstant - the numerical hunger level (from energy)

is_visibleoutputbased on location_x, location_y, facing, test_x and test_y - shows if the test point is visible
(NOTE the distinction between location_x/location_y vs facing if select_being != current_being, is_visible will allow this but it won't produce the desired results)

brain_valuei/o beingbased on brain_x, brain_y and brain_z
brain_xinput/output
brain_yinput/output
brain_zinput/output

Biology
biology_operatorinput/output
biology_outputoutputbased on test_x, test_y and biology_operator

biology_areaoutput
biology_heightoutput
biology_wateroutput
biology_moving_sunoutput
biology_total_sunoutput

biology_bushoutput
biology_grassoutput
biology_treeoutput

biology_insectoutput
biology_mouseoutput
biology_parrotoutput
biology_lizardoutput
biology_eagleoutput



Key
constantremains the same
constant dbconstant for one being in this time cycle
constant dtconstant for all beings in this time cycle
input/outputcan be read from and written to
i/o beinglike input/output but set to and from the being
outputcan only be read from, not written to
specialgenerated every time it is called


Script Errors - Contents - Frequently Asked Questions