Ok I managed to actually make it breathe the gas and make the effects work. I am overjoyed just by this. But now come several new problems:
1. The gas range is a bit shorter then I like it. It's actually quite random, as it will rarely go long ranges, but I simply want it to be able to spew the gas with about the effectiveness as a cone of dragonfire.
2. The gas works at random. During testing even at times when it said the creature was caught in a burst of necrosis gas the effects wouldn't always take hold. I want to fix it so it works most of the time.
3. The gas when it hits the creature is boiling hot, and even if the gas effect doesn't take hold, the creature will probably still die from having its skin and fat melted away. I'm sure there's a way to change the temperature so that it doesn't cause heavy bleeding on anything like a human or dwarf.
Here's the updated raws:
[CREATURE:DRAGON_NECROSIS]
[DESCRIPTION:A gigantic reptilian creature. Capable of spewing a horrific necrosis-inducing gas at it's enemies.]
[NAME:necrosis dragon:necrosis dragons:draconic]
[CASTE_NAME:necrosis dragon:necrosis dragons:draconic]
[CREATURE_TILE:'D'][COLOR:3:0:0]
[PETVALUE:10000]
[PET_EXOTIC]
[TRAINABLE]
[MOUNT_EXOTIC]
[BIOME:ANY_LAND]
[FREQUENCY:5]
[CAN_DO_INTERACTION:MATERIAL_EMISSION]
[CDI:ADV_NAME:Spew gas]
[CDI:USAGE_HINT:ATTACK]
[CDI:BP_REQUIRED:BY_CATEGORY:MOUTH]
[CDI:MATERIAL:LOCAL_CREATURE_MAT:NECROSIS_GAS:TRAILING_GAS_FLOW]
[CDI:VERB:spew a cloud of necrotic gas:spews a stream of necrotic gas:NA]
[CDI:TARGET:C:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:C:15]
[CDI:MAX_TARGET_NUMBER:C:1]
[CDI:WAIT_PERIOD:30]
[FIREIMMUNE_SUPER]
[FANCIFUL]
[LARGE_PREDATOR]
[MEGABEAST][DIFFICULTY:10]
[ATTACK_TRIGGER:80:10000:100000]
[SPHERE:WEALTH]
[CURIOUSBEAST_ITEM]
[NOFEAR][NOEXERT]
[BUILDINGDESTROYER:2]
[GRASSTRAMPLE:50]
[BONECARN]
[PREFSTRING:terrible majesty]
[BODY:QUADRUPED_NECK:TAIL:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:SKULL:4TOES_FQ_REG:4TOES_RQ_REG:MOUTH:TONGUE:GENERIC_TEETH_WITH_LARGE_EYE_TEETH:RIBCAGE]
[USE_MATERIAL_TEMPLATE:NECROSIS_GAS:CREATURE_EXTRACT_TEMPLATE]
[STATE_NAME:ALL_SOLID:frozen necrosis gas]
[STATE_NAME_ADJ:ALL_SOLID:frozen necrosis gas]
[STATE_NAME:LIQUID:condensed necrosis gas]
[STATE_NAME_ADJ:LIQUID:condensed necrosis gas]
[STATE_NAME:GAS:necrosis gas]
[STATE_NAME_ADJ:GAS:necrosis gas]
[STATE_COLOR:ALL:YELLOW]
[MELTING_POINT:9870]
[BOILING_POINT:9930]
[PREFIX:NONE]
[SYNDROME]
[SYN_NAME:necrosis gas]
[SYN_AFFECTED_CLASS:GENERAL_POISON]
[SYN_INHALED]
[CE_PAIN:SEV:1000:PROB:100:BP:BY_CATEGORY:ALL:SKIN:START:15:PEAK:30:END:120000]
[CE_BLISTERS:SEV:750:PROB:100:BP:BY_CATEGORY:ALL:SKIN:START:15:PEAK:30:END:120000]
[CE_NECROSIS:SEV:500:PROB:100:BP:BY_CATEGORY:ALL:SKIN:START:15:PEAK:30:END:120000]
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[REMOVE_MATERIAL:SKIN]
[REMOVE_MATERIAL:LEATHER]
[REMOVE_MATERIAL:PARCHMENT]
[REMOVE_MATERIAL:HAIR]
[USE_MATERIAL_TEMPLATE:SCALE:SCALE_TEMPLATE]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[REMOVE_TISSUE:SKIN]
[REMOVE_TISSUE:HAIR]
[USE_TISSUE_TEMPLATE:SCALE:SCALE_TEMPLATE]
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SCALE:FAT:MUSCLE:BONE:CARTILAGE]
[USE_MATERIAL_TEMPLATE:CLAW:NAIL_TEMPLATE]
[USE_TISSUE_TEMPLATE:CLAW:CLAW_TEMPLATE]
[TISSUE_LAYER:BY_CATEGORY:TOE:CLAW:FRONT]
[BODY_DETAIL_PLAN:LEATHERY_EGG_MATERIALS]
[SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]
[PLUS_TISSUE_LAYER:SCALE:BY_CATEGORY:THROAT]
[TL_MAJOR_ARTERIES]
[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
[BODY_DETAIL_PLAN:HUMANOID_RIBCAGE_POSITIONS]
[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE]
[TENDONS:LOCAL_CREATURE_MAT:SINEW:200]
[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200]
[HAS_NERVES]
[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
[BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]
[CREATURE_CLASS:GENERAL_POISON]
[GETS_WOUND_INFECTIONS]
[GETS_INFECTIONS_FROM_ROT]
[USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE]
[PUS:LOCAL_CREATURE_MAT:PUS:LIQUID]
[BODY_SIZE:0:0:6000]
[BODY_SIZE:1000:0:25000000]
[BODY_APPEARANCE_MODIFIER:LENGTH:90:95:98:100:102:105:110]
[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110]
[BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110]
[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD:BY_CATEGORY:TOOTH]
[ATTACK_SKILL:BITE]
[ATTACK_VERB:bite:bites]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_CANLATCH]
[ATTACK:CLAW:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:STANCE:BY_CATEGORY:ALL:CLAW]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:claw:claws]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_PRIORITY:MAIN]
[ALL_ACTIVE]
[MENT_ATT_RANGE:WILLPOWER:3000:3500:3750:4000:4250:4500:5000]
[LAIR:SIMPLE_BURROW:100]
[HABIT_NUM:TEST_ALL]
[HABIT:COLLECT_WEALTH:100]
[NATURAL_SKILL:BITE:6]
[NATURAL_SKILL:GRASP_STRIKE:6]
[NATURAL_SKILL:RANGED_COMBAT:6]
[NATURAL_SKILL:MELEE_COMBAT:6]
[NATURAL_SKILL:DODGING:6]
[NATURAL_SKILL:SITUATIONAL_AWARENESS:6]
[APPLY_CREATURE_VARIATION:STANDARD_QUADRUPED_GAITS:900:730:561:351:1900:2900] 25 kph
[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:2990:2257:1525:731:4300:6100] 12 kph
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:2990:2257:1525:731:4300:6100] 12 kph
[SWIMS_INNATE]
[HOMEOTHERM:10040]
[CASTE:FEMALE]
[FEMALE]
[LAYS_EGGS]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGGSHELL:SOLID]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_WHITE:LIQUID]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_YOLK:LIQUID]
[EGG_SIZE:6100]
[CLUTCH_SIZE:1:3]
[CASTE:MALE]
[MALE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:SCALE]
[TL_COLOR_MODIFIER:GREEN:1]
[TLCM_NOUN:scales:PLURAL]
[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
[TL_COLOR_MODIFIER:BLACK:1]
[TLCM_NOUN:eyes:PLURAL]
[SELECT_MATERIAL:ALL]
[MULTIPLY_VALUE:15]
[COLDDAM_POINT:NONE]
[HEATDAM_POINT:NONE]
[IGNITE_POINT:NONE]
[IF_EXISTS_SET_MELTING_POINT:55000]
[IF_EXISTS_SET_BOILING_POINT:57000]
[SPEC_HEAT:30000]
Need to make sure blood and pus aren't solid at regular temperatures.
[SELECT_MATERIAL:BLOOD]
[PLUS_MATERIAL:PUS]
[MELTING_POINT:10000]