Mapping triangle tables to behavior trees