7
Introduction
bi0qaw edited this page 2017-11-16 22:18:58 +01:00
There are two types of expressions in Biosphere2:
- Expressions that create new locations/vectors
- Expressions that transform locations/vectors
The usual workflow is that you first create a bunch of locations or vectors. In a second step you apply some transformation to them. And in a final step you do something with them. This is best shown by an example:
# 1) creation step (create locations in the shape of a circle)
set {_circle::*} to circle at player with radius 1 and density 5
# 2) transformation step (make circle 2 times larger)
set {_bigcircle::*} to {_circle::*} scaled at player by 2
# 3) do something with your locations (not part of Biosphere2)
show happy villager at {_bigcircle::*}
The result looks like this:
The goal of Biosphere2 is to provide convenient expressions for the creation and transformation step. What you then do with your final list of locations/vectors is up to you.