Example Tribes and their recipes: Difference between revisions
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
=== Recipes === | === Recipes === | ||
Gobble Upkeep | '''RECIPE: Gobble Upkeep''' | ||
select(Hunter,1); locateBuildingSpot(Campfire); goWork(60); alterResource($REPRODUCTION_RESOURCE,0); wait(60.0); | select(Hunter,1); locateBuildingSpot(Campfire); goWork(60); alterResource($REPRODUCTION_RESOURCE,0); wait(60.0); | ||
locateBuildingSpot: searches a reserved spot in the tribe home location | locateBuildingSpot: searches a reserved spot in the tribe home location | ||
goWork: send 'tribe:work' event, which triggers GoToWork behaviour. GoToWork: goes to the location, plays animation work, waits x seconds, returns home. | goWork: send 'tribe:work' event, which triggers GoToWork behaviour. GoToWork: goes to the location, plays animation work, waits x seconds, returns home. | ||
'''RECIPE: Peaceful Gobble Evolve Tribe.''' | |||
'''RECIPE: Gobble Build Campfire.''' contains percept(selection,tribe:build), this one calls Behaviour "GoBuild", which executes | |||
<build pickupable="false" /> |
Revision as of 22:31, 28 September 2023
Tribe Name: "Eagle Gobble Tribe Oja2" , defined with ID 9 in tribes table , tribal recipe ID 105
tribal recipe 105 has this algorithm:
brain(GobbleTribesman); aggressivity(neutral); growth(conservatory); unity(organised); sleepPeriod(nocturnal); loadRecipe(Do Nothing); loadRecipe(Gobble Upkeep); loadRecipe(Warrior Patrol Home); loadRecipe(Peaceful Gobble Tribe Spots);
brain: GobbleTribesman is associated to each member of the tribe, and defines some basic behaviours like: peace_meet, tribesman_attacked, Explore, HuntResource, Breed, GoBuild, ...
aggressivity: neutral
sleepPeriod: nocturnal
Recipes
RECIPE: Gobble Upkeep
select(Hunter,1); locateBuildingSpot(Campfire); goWork(60); alterResource($REPRODUCTION_RESOURCE,0); wait(60.0);
locateBuildingSpot: searches a reserved spot in the tribe home location
goWork: send 'tribe:work' event, which triggers GoToWork behaviour. GoToWork: goes to the location, plays animation work, waits x seconds, returns home.
RECIPE: Peaceful Gobble Evolve Tribe.
RECIPE: Gobble Build Campfire. contains percept(selection,tribe:build), this one calls Behaviour "GoBuild", which executes
<build pickupable="false" />