Here's relevant for-modding text files from me to you.
Plant raws:
Trees
Garden plants
Crops
Creature Variations:
Quote from: Wastedlabor
What's the format for passing these arguments to the variation?
Will there be any way to use a match as conditional? Example: to not try to add a tail if there's "TAIL" in the base creature.
To pass them, you send them into the variation when you apply it, like
[APPLY_CREATURE_VARIATION:MY_VARIATION:STUFF:300]
where the variation might look like
[CREATURE_VARIATION:MY_VARIATION]
[CV_NEW_TAG:SOME_TAG:!ARG1:A:B!ARG2C]
and it would be interpreted as
[CREATURE_VARIATION:MY_VARIATION]
[CV_NEW_TAG:SOME_TAG:STUFF:A:B300C]
You can add very simple conditions. For example
[CV_NEW_CTAG:1:ADD_SPEAK:CAN_SPEAK]
makes it do [CV_NEW_TAG:CAN_SPEAK] when !ARG1 is equal to ADD_SPEAK.
But it is a very simple format, and I haven't updated anything beyond this (you can't search for matches, etc.). As usual, the spirits of dead programmers are calling out for an actual scripting language or something, but it hasn't occurred.
--Gaits:
Humans, for example, have
[APPLY_CREATURE_VARIATION:STANDARD_BIPED_GAITS:900:675:450:225:1900:2900]
[APPLY_CREATURE_VARIATION:STANDARD_CLIMBING_GAITS:2900:2175:1450:725:3900:5900]
[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:2900:2175:1450:725:3900:5900]
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:2900:2175:1450:725:3900:5900]
which goes to
[CREATURE_VARIATION:STANDARD_BIPED_GAITS]
GAIT:type:name:full speed:build up time:turning max:start speed:energy use
use NO_BUILD_UP if you jump immediately to full speed
these optional flags go at the end:
LAYERS_SLOW - fat/muscle layers slow the movement (muscle-slowing counter-acted by strength bonus)
STRENGTH - strength attribute can speed/slow movement
AGILITY - agility attribute can speed/slow movement
STEALTH_SLOWS:<n> - n is percentage slowed
it would be interesting to allow quirky attributes (like mental stats), but they aren't supported yet
[CV_NEW_TAG:GAIT:WALK:Sprint:!ARG4:10:3:!ARG2:50:LAYERS_SLOW:STRENGTH:AGILITY:STEALTH_SLOWS:50]
[CV_NEW_TAG:GAIT:WALK:Run:!ARG3:5:3:!ARG2:10:LAYERS_SLOW:STRENGTH:AGILITY:STEALTH_SLOWS:20]
[CV_NEW_TAG:GAIT:WALK:Jog:!ARG2:NO_BUILD_UP:5:LAYERS_SLOW:STRENGTH:AGILITY:STEALTH_SLOWS:10]
[CV_NEW_TAG:GAIT:WALK:Walk:!ARG1:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
[CV_NEW_TAG:GAIT:WALK:Stroll:!ARG5:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
[CV_NEW_TAG:GAIT:WALK:Creep:!ARG6:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
[CREATURE_VARIATION:STANDARD_CLIMBING_GAITS]
[CV_NEW_TAG:GAIT:CLIMB:Scramble:!ARG4:10:3:!ARG2:50:LAYERS_SLOW:STRENGTH:AGILITY:STEALTH_SLOWS:50]
[CV_NEW_TAG:GAIT:CLIMB:Faster Climb:!ARG3:5:3:!ARG2:10:LAYERS_SLOW:STRENGTH:AGILITY:STEALTH_SLOWS:20]
[CV_NEW_TAG:GAIT:CLIMB:Fast Climb:!ARG2:NO_BUILD_UP:5:LAYERS_SLOW:STRENGTH:AGILITY:STEALTH_SLOWS:10]
[CV_NEW_TAG:GAIT:CLIMB:Climb:!ARG1:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
[CV_NEW_TAG:GAIT:CLIMB:Slow Climb:!ARG5:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
[CV_NEW_TAG:GAIT:CLIMB:Creep:!ARG6:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
[CREATURE_VARIATION:STANDARD_SWIMMING_GAITS]
[CV_NEW_TAG:GAIT:SWIM:Maximum Swim Speed:!ARG4:10:3:!ARG2:50:LAYERS_SLOW:STRENGTH:AGILITY:STEALTH_SLOWS:50]
[CV_NEW_TAG:GAIT:SWIM:Faster Swim:!ARG3:5:3:!ARG2:10:LAYERS_SLOW:STRENGTH:AGILITY:STEALTH_SLOWS:20]
[CV_NEW_TAG:GAIT:SWIM:Fast Swim:!ARG2:NO_BUILD_UP:5:LAYERS_SLOW:STRENGTH:AGILITY:STEALTH_SLOWS:10]
[CV_NEW_TAG:GAIT:SWIM:Swim:!ARG1:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
[CV_NEW_TAG:GAIT:SWIM:Slow Swim:!ARG5:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
[CV_NEW_TAG:GAIT:SWIM:Creeping Swim:!ARG6:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
[CREATURE_VARIATION:STANDARD_CRAWLING_GAITS]
[CV_NEW_TAG:GAIT:CRAWL:Scramble:!ARG4:10:3:!ARG2:50:LAYERS_SLOW:STRENGTH:AGILITY:STEALTH_SLOWS:50]
[CV_NEW_TAG:GAIT:CRAWL:Faster Crawl:!ARG3:5:3:!ARG2:10:LAYERS_SLOW:STRENGTH:AGILITY:STEALTH_SLOWS:20]
[CV_NEW_TAG:GAIT:CRAWL:Fast Crawl:!ARG2:NO_BUILD_UP:5:LAYERS_SLOW:STRENGTH:AGILITY:STEALTH_SLOWS:10]
[CV_NEW_TAG:GAIT:CRAWL:Crawl:!ARG1:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
[CV_NEW_TAG:GAIT:CRAWL:Slow Crawl:!ARG5:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
[CV_NEW_TAG:GAIT:CRAWL:Creep:!ARG6:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
Entity values:
Here are the current dwarves, in their entity (you don't need the zeroes, but I left them to complete the list). They go from 50 to -50.
[VALUE:LAW:30]
[VALUE:LOYALTY:30]
[VALUE:FAMILY:30]
[VALUE:FRIENDSHIP:30]
[VALUE:POWER:0]
[VALUE:TRUTH:30]
[VALUE:CUNNING:0]
[VALUE:ELOQUENCE:0]
[VALUE:FAIRNESS:15]
[VALUE:DECORUM:0]
[VALUE:TRADITION:0]
[VALUE:ARTWORK:30]
[VALUE:COOPERATION:15]
[VALUE:INDEPENDENCE:5]
[VALUE:STOICISM:5]
[VALUE:INTROSPECTION:0]
[VALUE:SELF_CONTROL:0]
[VALUE:TRANQUILITY:0]
[VALUE:HARMONY:0]
[VALUE:MERRIMENT:15]
[VALUE:CRAFTSMANSHIP:50]
[VALUE:MARTIAL_PROWESS:15]
[VALUE:SKILL:30]
[VALUE:HARD_WORK:30]
[VALUE:SACRIFICE:0]
[VALUE:COMPETITION:0]
[VALUE:PERSEVERENCE:5]
[VALUE:LEISURE_TIME:15]
[VALUE:COMMERCE:15]
[VALUE:ROMANCE:0]
[VALUE:NATURE:-15]
[VALUE:PEACE:0]
Personality facet list:
This is still subject to change, though maybe not by all that much now (there are still some archetypes I have trouble constructing with these plus values).
They run from 0 to 100 as before, but 0 is often the opposite of the listed phrase rather than just its lack. So a person with CRUELTY 0 is abundantly merciful,
even in situations where it might not be prudent.
LOVE_PROPENSITY
HATE_PROPENSITY
ENVY_PROPENSITY
CHEER_PROPENSITY
DEPRESSION_PROPENSITY
ANGER_PROPENSITY
ANXIETY_PROPENSITY
LUST_PROPENSITY
STRESS_VULNERABILITY
GREED
IMMODERATION
VIOLENT
PERSEVERENCE
WASTEFULNESS
DISCORD
FRIENDLINESS
POLITENESS
DISDAIN_ADVICE
BRAVERY
CONFIDENCE
VANITY
AMBITION
GRATITUDE
IMMODESTY
HUMOR
VENGEFUL
PRIDE
CRUELTY
SINGLEMINDED
HOPEFUL
CURIOUS
BASHFUL
PRIVACY
PERFECTIONIST
CLOSEMINDED
TOLERANT
EMOTIONALLY_OBSESSIVE
SWAYED_BY_EMOTIONS
ALTRUISM
DUTIFULNESS
THOUGHTLESSNESS
ORDERLINESS
TRUST
GREGARIOUSNESS
ASSERTIVENESS
ACTIVITY_LEVEL
EXCITEMENT_SEEKING
IMAGINATION
ABSTRACT_INCLINED
ART_INCLINED
For trunk, branches, etc. just numbers to control things, no units, still subject to tweaking. I'm still formalizing the exact root and cap params from my hard-coded test values, and that'll continue as I add more new critters.
[TRUNK_RATE:10]
[HEAVY_BRANCH_DENSITY:2]
[BRANCH_DENSITY:10]
[MAX_TRUNK_HEIGHT:5]
[HEAVY_BRANCH_RADIUS:1]
[BRANCH_RADIUS:2]
[TRUNK_BRANCHING:2]
[MAX_TRUNK_DIAMETER:3]
[TRUNK_WIDTH_RATE:200]
I don't remember if the twig density stuff is still hard-coded, but if it is, it'll be out by release time.
[STANDARD_TILE_NAMES] <-- there are tags like
TRUNK_NAME, ROOT_NAME etc. if you don't want "mango trunk", "mango roots" etc.
Mango leaves/flowers/fruit (no seeds yet):
[GROWTH:LEAVES]
[GROWTH_NAME:mango leaf:mango leaves]
[GROWTH_ITEM:PLANT_GROWTH:NONE:LOCAL_PLANT_MAT:STRUCTURAL]
[GROWTH_DENSITY:1000]
[GROWTH_HOST_TILE:BRANCHES_AND_TWIGS]
[GROWTH_HOST_TILE:SAPLING]
[GROWTH_PRINT:0:6:2:0:0:ALL:1]
[GROWTH:FLOWERS]
[GROWTH_NAME:mango flower:STP]
[GROWTH_ITEM:PLANT_GROWTH:NONE:LOCAL_PLANT_MAT:STRUCTURAL]
[GROWTH_DENSITY:1000]
[GROWTH_HOST_TILE:BRANCHES_AND_TWIGS]
[GROWTH_TIMING:60000:119999]
[GROWTH_PRINT:5:5:4:0:1:60000:119999:2] ---5 yen symbol
[GROWTH:FRUIT]
[GROWTH_NAME:mango:STP]
[GROWTH_ITEM:PLANT_GROWTH:NONE:LOCAL_PLANT_MAT:FRUIT]
[GROWTH_DENSITY:1000] <-- this and the flower entry will probably be decreased when it matters more
[GROWTH_HOST_TILE:BRANCHES_AND_TWIGS]
[GROWTH_TIMING:120000:200000]
[GROWTH_DROPS_OFF_NO_CLOUD]
[GROWTH_PRINT:'%':7:4:0:1:120000:200000:3]
Format here is character on branch, item character, 3 for color, season timing, print priority (higher better).
To do autumn leaves, you use several growth prints. This info carries over to picked/fallen items. Here's a maple leaf:
[GROWTH:LEAVES]
[GROWTH_NAME:maple leaf:maple leaves]
[GROWTH_ITEM:PLANT_GROWTH:NONE:LOCAL_PLANT_MAT:STRUCTURAL]
[GROWTH_DENSITY:1000]
[GROWTH_HOST_TILE:BRANCHES_AND_TWIGS]
[GROWTH_HOST_TILE:SAPLING]
[GROWTH_TIMING:0:300000]
[GROWTH_PRINT:0:6:2:0:0:0:209999:1]
[GROWTH_PRINT:0:6:6:0:1:210000:239999:1]
[GROWTH_PRINT:0:6:4:0:1:240000:269999:1]
[GROWTH_PRINT:0:6:4:0:0:270000:300000:1]
[GROWTH_DROPS_OFF]
Notably, I'm still missing size information for the items.
The new type/subtype pair for plant growths is PLANT_GROWTH:<growth token>, with whatever material you want (generally the right one from the plant).
Meadowsweet buds/flowers used in grass file:
[GROWTH:BUD]
[GROWTH_NAME:meadowsweet bud:STP]
[GROWTH_ITEM:PLANT_GROWTH:NONE:LOCAL_PLANT_MAT:STRUCTURAL]
[GROWTH_DENSITY:1]
[GROWTH_TIMING:140000:149999]
[GROWTH_PRINT:0:7:2:0:0:NONE]
[GROWTH:FLOWER]
[GROWTH_NAME:meadowsweet flower:STP]
[GROWTH_ITEM:PLANT_GROWTH:NONE:LOCAL_PLANT_MAT:STRUCTURAL]
[GROWTH_DENSITY:1]
[GROWTH_TIMING:150000:250000]
[GROWTH_PRINT:5:5:7:0:1:150000:250000]
For item breath, where you'd normally put the breath weapon type after the material, you put.
UNDIRECTED_ITEM_CLOUD:<item type>:<subtype>
TRAILING_ITEM_FLOW:<item type>:<subtype>
Odor
[SMELL_TRIGGER:50] how good is your nose? low is better. minimum 1, default is 50, humans set to 90 because they suck
[ODOR_LEVEL:50] how stinky are you? zero = odorless, default is 50, smell_trigger greaterless than or equal to odor_level detects w/ wind
[ODOR_STRING:wet dog hair] <-- optional, displays race name (not caste name) if you don't provide a string
[LOW_LIGHT_VISION:100] bonus percentage, cannot penalize yet, default is zero, just throw in 10000 to make it perfect
170 kph white-throated needle-tailed swift
145-160 kph spine-tailed swift
153 frigate bird
140 kph horse-fly-insect?
135 swan_best FLIGHT
109 sailfish swim
98 antelope_best burst, hummingbird, cheetah_burst
900:300:200:100:1900:2900] 87+ kph horse burst?, ostrich burst, my_unicorn, pigeon_best_flight
900:327:218:109:1900:2900] 80 kph tiger & lion burst, cougar_burst, gazelle_burst, wildebeest_best, my_faedog, DUCKFLIGHT, biggest_bird_bustard(6-18-21kg), my_pegasus_flight, pigeon_avg, marlin swim
900:345:230:115:1900:2900] 76 kph quarter horse burst, eagle_best,
900:366:244:122:1900:2900] 72 kph elk burst, goose_sus, hare
900:375:250:125:1900:2900] 70 kph horse burst?, wolf_burst, my_direwolf, tuna
900:381:254:127:1900:2900] 69 kph coyote, greyhound_max, big kangaroo, shark_best_swim
900:387:258:129:1900:2900] 68 kph dolphin burst, Banteng-cattle hybrid(fastest bovine) burst,
900:393:262:131:1900:2900] 67 kph vulture_glide
900:411:274:137:1900:2900] 64 kph ostrich run, zebra, ass, hyena, fox, camel burst, swordfish
900:432:288:144:1900:2900] 61 kph pheasant_flight,
900:438:292:146:1900:2900] 60 kph giraffe_burst
900:447:298:149:1900:2900] 59 kph dog, lion, bat_flight, eagle_flight
900:471:314:157:1900:2900] 56 kph llama, jackal, tiger, rabbit?, bear?, polarbear_burst, my_ibex
900:480:320:160:1900:2900] 55 kph moose, rhino_burst
53 tiger shark
900:507:338:169:1900:2900] 52 kph T-Rex one estimate
900:519:346:173:1900:2900] 51 kph reindeer
900:528:352:176:1900:2900] 50 kph giraffe_sustained
900:549:366:183:1900:2900] 48 kph waterbuffalo, my bulldog, _deer_, warthog, wolverine, _bear_, cat, lynx, horse gallop (for 3km, not burst), eagle/crow sus, gazelle_sus, barracuda
900:585:390:195:1900:2900] 45 kph human_best_burst, my_dragon_flight
900:612:408:204:1900:2900] 43 kph DF_rabbit, my_guineafowl, my_grizzly
900:627:418:209:1900:2900] 42 kph greater roadrunner (who can still fly)
900:657:438:219:1900:2900] 40 kph donkey, turkey, elephant_tinyburst, gorilla_tinyburst, wombat, camel_sustained_run, biglizard_burst, duck_flight_relaxed, eland_slowestantilope_b
900:675:450:225:1900:2900] 39 kph DF_human burst
900:683:468:237:1900:2900] 37 kph
900:687:474:244:1900:2900] 36 kph gentoo penguin swim,
900:691:482:251:1900:2900] 35 kph medium_dinosaur
900:695:489:258:1900:2900] 34 kph minke whale burst swim,
900:699:497:266:1900:2900] 33 kph
900:703:505:274:1900:2900] 32 kph crippled_coyote, crocodile swim, hippo run, bighorn sheep, blue whale, penguin swim, my_dragon_run, my_spaniel
900:707:513:283:1900:2900] 31 kph DF_cavy_rodent, yak?
900:711:521:293:1900:2900] 30 kph DF_dwarf, my_goblin, alpaca?
900:714:529:303:1900:2900] 29 kph amphibian_best run, rabbit, house sparrow flight (quite slow),
900:722:545:325:1900:2900] 27 kph cow?
900:726:553:338:1900:2900] 26 kph jerboa bouncy rat,
900:730:561:351:1900:2900] 25 kph sheep, 3ton_elephant_burst_or_sustained, my_crundle, my_demon
900:734:568:366:1900:2900] 24 kph raccoon_burst, capybara, manatee_swim, sea turtle, honeybee,
900:738:576:382:1900:2900] 23 kph [wildfire spreads],
900:742:584:399:1900:2900] 22 kph my_cavy, eland_sustain, Beluga whale swim
900:746:592:418:1900:2900] 21 kph
900:750:600:439:1900:2900] 20 kph big_elephant burst, penguin_swim, dugong_swim_burst,
1161:938:716:462:2200:3300] 19 kph goat, squirrel, roadrunner_run, turkey run, snake_best_burst, butterfly_migration_average,
1422:1127:831:488:2500:3700] 18 kph DF_pig, T-Rex walk upper estimate, 18.7 human marathon winners,
1683:1315:947:516:2800:4100] 17 kph, crocodile burst 11-14-17-18,
1945:1504:1062:548:3100:4500] 16 kph horse lope gait, elephant seal swim, ghost crab walk,
2206:1692:1178:585:3400:4900] 15 kph dolphin cruise, my_mummy
2467:1880:1294:627:3700:5300] 14 kph chicken?, humpback whale cruise,
2728:2069:1409:675:4000:5700] 13 kph otter swim,
2990:2257:1525:731:4300:6100] 12 kph my_iron_statue
3251:2446:1640:798:4600:6500] 11 kph snake_best
3512:2634:1756:878:4900:6900] 10 kph big_elephant sustain,
4122:3330:2541:975:5411:7233] 9 kph 8.8 average female marathoner sustain,
4732:4026:3327:1097:5922:7567] 8 kph duck walk, American woodcock flight is world's slowest, wolf_travelspeed
5341:4723:4112:1254:6433:7900] 7 kph 6.7 fastest beetle
6561:6115:5683:1755:7456:8567] 5 kph cockroach, raccoon swim
1.77 kph spider
9000:8900:8825:8775:9500:9900] 1 kph
0.24 kph sloth
kit: pick one of top 3
[APPLY_CREATURE_VARIATION:STANDARD_FLYING_GAITS:900:691:482:251:1900:2900] 35 kph
[APPLY_CREATURE_VARIATION:STANDARD_WALKING_GAITS:900:675:450:225:1900:2900] 39 kph
[APPLY_CREATURE_VARIATION:STANDARD_BIPED_GAITS:900:675:450:225:1900:2900] 39 kph BIPED
[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph [SWIMS_INNATE]
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph
[APPLY_CREATURE_VARIATION:STANDARD_CLIMBING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph [STANCE_CLIMBER][NATURAL_SKILL:CLIMBING:15]
lizard:[APPLY_CREATURE_VARIATION:STANDARD_WALK_CRAWL_GAITS:9000:8900:8825:8775:9500:9900] 1 kph, NO DATA
vanilla human:
[APPLY_CREATURE_VARIATION:STANDARD_BIPED_GAITS:900:675:450:225:1900:2900] 39 kph BIPED
[APPLY_CREATURE_VARIATION:STANDARD_CLIMBING_GAITS:6561:6115:5683:1755:7456:8567] 5 kph, NO DATA
[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:5341:4723:4112:1254:6433:7900] 7 kph
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:2990:2257:1525:731:4300:6100] 12 kph, NO DATA
worm:
[GAIT:WALK:Crawl:2900:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
[GAIT:CRAWL:Crawl:2900:NO_BUILD_UP:0:LAYERS_SLOW:STRENGTH:AGILITY]
monkey:
[APPLY_CREATURE_VARIATION:STANDARD_WALKING_GAITS:900:711:521:293:1900:2900] 30 kph, NO DATA
[APPLY_CREATURE_VARIATION:STANDARD_CLIMBING_GAITS:2206:1692:1178:585:3400:4900] 15 kph, NO DATA
[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:6561:6115:5683:1755:7456:8567] 5 kph, NO DATA
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:6561:6115:5683:1755:7456:8567] 5 kph, NO DATA
[NATURAL_SKILL:CLIMBING:15]
[SWIMS_INNATE]
big python:
[APPLY_CREATURE_VARIATION:STANDARD_WALK_CRAWL_GAITS:9000:8900:8825:8775:9500:9900] 1 kph, NO DATA
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph, NO DATA
[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph, NO DATA [SWIMS_INNATE]