Example Tribes and their recipes: Difference between revisions

From PSwiki
Jump to navigation Jump to search
Created page with " 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 th..."
 
No edit summary
Line 7: Line 7:
  loadRecipe(Do Nothing); loadRecipe(Gobble Upkeep); loadRecipe(Warrior Patrol Home); loadRecipe(Peaceful Gobble Tribe Spots);
  loadRecipe(Do Nothing); loadRecipe(Gobble Upkeep); loadRecipe(Warrior Patrol Home); loadRecipe(Peaceful Gobble Tribe Spots);
[[Tribe Scripting#Brain|brain]]: GobbleTribesman is associated to each member of the tribe, and defines some basic behaviours like: peace_meet, tribesman_attacked, Explore, HuntResource, Breed, GoBuild, ...
[[Tribe Scripting#Brain|brain]]: GobbleTribesman is associated to each member of the tribe, and defines some basic behaviours like: peace_meet, tribesman_attacked, Explore, HuntResource, Breed, GoBuild, ...
[[Tribe Scripting#Aggressivity|aggressivity]]: neutral
[[Tribe Scripting#SleepPeriod|sleepPeriod]]: nocturnal
=== Recipes ===
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.

Revision as of 22:21, 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

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.