Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Masterwork raws  (Read 1442 times)

someone12345

  • Bay Watcher
    • View Profile
Masterwork raws
« on: January 11, 2014, 01:40:14 pm »

I have two questions. Which files correspond to the standardized leather types found in Masterwork? I know the b_detail_plan_default, some of  the entries in the inorganic_zmasterwork file, and some of the creatures in the creature_masterwork file do. Also, how do you spawn creatures? I do not understand the spawning inorganics.

[INORGANIC:COLOSSEUM_RAPTOR_DRAGON_SPAWN] >>>>>>>> add here
[USE_MATERIAL_TEMPLATE:STONE_VAPOR_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:Hostile dragon raptor]
[STATE_NAME_ADJ:LIQUID:Hostile dragon raptor]
[STATE_NAME_ADJ:GAS:Hostile dragon raptor]
   [SYNDROME]   [SYN_CLASS:\COMMAND]was syn_class location
   [SYN_CLASS:spawn]
         nothing
         nothing
         again
   [SYN_CLASS:RAPTOR_DRAGON_COLOSSEUM]    >>>>>>>>>>>>>>> add here
         [SYN_CLASS:0][SYN_CLASS:Arena Monster][SYN_CLASS:\LOCATION]
How does this spawn things? Do you have to write a script for each spawning item?
Logged
GENERATION 26:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experime

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Masterwork raws
« Reply #1 on: January 11, 2014, 02:21:30 pm »

The files for standardized leather are all over the place. body, body detail plan, tissue and material templates, and a line in every single creature.

Spawning a creature works like this:
You use Warmists spawnunit script:
Spoiler (click to show/hide)

Then you call this script in dfhack by using Expwnents AutoSyndrome or SyndromeTrigger script, by making an inorganic in a reaction that the fitting commands, like this example:
Code: [Select]
[INORGANIC:WARLOCK_SPAWN_ARMORMAN]
[USE_MATERIAL_TEMPLATE:STONE_VAPOR_TEMPLATE]
[STATE_NAME_ADJ:ALL:Animate a suit of armor]
[SYNDROME][SYN_CLASS:\AUTO_SYNDROME][SYN_CLASS:\COMMAND]
[SYN_CLASS:spawn][SYN_CLASS:ARMORMAN][SYN_CLASS:0][SYN_CLASS:Eerie Suit of Armor][SYN_CLASS:\LOCATION]

Autosyndrome calls the script, command lets it know that the next syn-classes are inputs into dfhack, and the next four are the commands. "spawn" opens spawn.lua, armorman is the ID of the creature I want to spawn, 0 means I want to spawn its first caste, and "eerie suit of armor" will be the creatures name.

And where did you find that colosseum example? It lacks the autosyndrome syn class, it looks like its written for dfhack r3. Did you find this in the raws for the current version?
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

someone12345

  • Bay Watcher
    • View Profile
Re: Masterwork raws
« Reply #2 on: January 11, 2014, 07:44:00 pm »

No, in 4c.
« Last Edit: January 11, 2014, 07:56:54 pm by someone12345 »
Logged
GENERATION 26:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experime