Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Breathing fire as a dragon!  (Read 7166 times)

Harnel

  • Escaped Lunatic
    • View Profile
Breathing fire as a dragon!
« on: June 23, 2011, 03:35:02 am »

Alright, after some technical difficulties regarding setting up Dwarf Fortress, I have instantly leaped into modding. yay!

Anyways, I figured out how to add dragons as a playable race in adventure mod, but there's one thing I'm having trouble with - how in the world do I breath fire? I posted this in modding because my understanding of it is likely to require more modding to do this
Logged

jaxy15

  • Bay Watcher
  • Adept Modder
    • View Profile
Re: Breathing fire as a dragon!
« Reply #1 on: June 23, 2011, 03:38:30 am »

You can't.
Logged
Dwarf Fortress: Threats of metabolism.

Koji

  • Bay Watcher
  • Kobold
    • View Profile
Re: Breathing fire as a dragon!
« Reply #2 on: June 23, 2011, 11:43:42 am »

In the meantime you can give them the [USE_MATERIAL_TEMPLATE:FLAME:FLAME_TEMPLATE] and give them an attack similar to their bite that has [SPECIALATTACK_INJECT_EXTRACT:100:100:FLAME] in it.

It's not quite as powerful because the attack has to actually hit before any fire is produced, but that might be a good thing. The undodgeable cloud of dragon fire always sort of bothered me.
Logged
Dwarvenrealms
ASCII | Graphical
Over 220 new creatures, new civs, new industries, and a fully customized tileset!

IT 000

  • Bay Watcher
  • Strange Mood
    • View Profile
Re: Breathing fire as a dragon!
« Reply #3 on: June 23, 2011, 12:43:40 pm »

You could have an adventurer reaction that conjures up a flaming material, and then just throw that. I believe animals that lack the grasp tag still 'have' the item for a single click.
Logged

***CORROSION v2.14***
<<<More Than Just Zombies>>>
Back from the Dead!

Harnel

  • Escaped Lunatic
    • View Profile
Re: Breathing fire as a dragon!
« Reply #4 on: June 23, 2011, 03:57:56 pm »

In the meantime you can give them the [USE_MATERIAL_TEMPLATE:FLAME:FLAME_TEMPLATE] and give them an attack similar to their bite that has [SPECIALATTACK_INJECT_EXTRACT:100:100:FLAME] in it.

It's not quite as powerful because the attack has to actually hit before any fire is produced, but that might be a good thing. The undodgeable cloud of dragon fire always sort of bothered me.
Brilliant!

Now how the hell do I even do that? I'm a complete Noob when it comes to this game, so you can assume I know didly squat besides where to find "Dragon" in the Creatures_standard Raw. Mainly because that's sort of the case
Logged

jaxy15

  • Bay Watcher
  • Adept Modder
    • View Profile
Re: Breathing fire as a dragon!
« Reply #5 on: June 23, 2011, 04:03:53 pm »

Look up syndromes on the wiki.
You should look for the dragon's attacks and put the syndrome somewhere there.

Don't forget the display colors.
« Last Edit: June 23, 2011, 04:05:52 pm by jaxy15 »
Logged
Dwarf Fortress: Threats of metabolism.

Koji

  • Bay Watcher
  • Kobold
    • View Profile
Re: Breathing fire as a dragon!
« Reply #6 on: June 25, 2011, 02:34:44 am »

Look up syndromes on the wiki.
You should look for the dragon's attacks and put the syndrome somewhere there.

Don't forget the display colors.

There's no syndrome involved in fire breath. It's a high-temperature material that does damage by virtue of its hotness.
Logged
Dwarvenrealms
ASCII | Graphical
Over 220 new creatures, new civs, new industries, and a fully customized tileset!

jaxy15

  • Bay Watcher
  • Adept Modder
    • View Profile
Re: Breathing fire as a dragon!
« Reply #7 on: June 25, 2011, 02:45:11 am »

Look up syndromes on the wiki.
You should look for the dragon's attacks and put the syndrome somewhere there.

Don't forget the display colors.

There's no syndrome involved in fire breath. It's a high-temperature material that does damage by virtue of its hotness.
So?
Logged
Dwarf Fortress: Threats of metabolism.

thatkid

  • Bay Watcher
  • <Servibot> thatkid, swag percentiles: 94
    • View Profile
Re: Breathing fire as a dragon!
« Reply #8 on: June 25, 2011, 12:22:46 pm »

I'm not sure if this will work, but you could try making it so that the injected material doesn't have a syndrome but is instead as hot as magma.
Logged
Fame is a vapor. The only earthly certainty is oblivion.

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Breathing fire as a dragon!
« Reply #9 on: June 25, 2011, 01:08:16 pm »

I'm not sure if this will work, but you could try making it so that the injected material doesn't have a syndrome but is instead as hot as magma.
I've tried this.  It doesn't seem to do anything.  The temperature of injected material doesn't seem to have any effect.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

thatkid

  • Bay Watcher
  • <Servibot> thatkid, swag percentiles: 94
    • View Profile
Re: Breathing fire as a dragon!
« Reply #10 on: June 25, 2011, 01:10:45 pm »

I'm not sure if this will work, but you could try making it so that the injected material doesn't have a syndrome but is instead as hot as magma.
I've tried this.  It doesn't seem to do anything.  The temperature of injected material doesn't seem to have any effect.
That's a shame. It's probably for the same reason that exploding bolts work, the material takes on the temperature of the creature once it enters it.
Logged
Fame is a vapor. The only earthly certainty is oblivion.

Barnox

  • Bay Watcher
    • View Profile
Re: Breathing fire as a dragon!
« Reply #11 on: June 25, 2011, 03:14:38 pm »

Aha!
Somewhere I am useful!

Firstly, define a material called Flame.
For an example on how do define a material, we will look at the Cave Floater raws.
Code: [Select]
[USE_MATERIAL_TEMPLATE:POD_JUICE:CREATURE_EXTRACT_TEMPLATE]
[STATE_NAME:ALL_SOLID:frozen cave floater juice]
[STATE_ADJ:ALL_SOLID:frozen cave floater juice]
[STATE_NAME:LIQUID:cave floater juice]
[STATE_ADJ:LIQUID:cave floater juice]
[STATE_NAME:GAS:cave floater gas]
[STATE_ADJ:GAS:cave floater gas]
[MELTING_POINT:9950]
[BOILING_POINT:10000]
[PREFIX:NONE]
[SYNDROME]
[SYN_NAME:cave floater sickness]
[SYN_AFFECTED_CLASS:GENERAL_POISON]
[SYN_IMMUNE_CREATURE:CAVE_FLOATER:ALL]
[SYN_INHALED]
[CE_FEVER:SEV:50:PROB:100:RESISTABLE:START:50:PEAK:500:END:1500]
[CE_NAUSEA:SEV:35:PROB:100:RESISTABLE:START:50:PEAK:100:END:300]
[CE_DROWSINESS:SEV:75:PROB:100:RESISTABLE:START:1000:PEAK:2000:END:4000]
[CE_DIZZINESS:SEV:75:PROB:100:RESISTABLE:START:1000:PEAK:2000:END:3000]

Now, we don't want a syndrome on the extract.
We also want it to be a gas at room temperature.
I'm leaving out the IGNITE_TEMP tag, because I'm not sure how that would work with gasses.
Feel free to try it out yourself though.

Here is my idea of a flame:
Code: [Select]
[USE_MATERIAL_TEMPLATE:DRAGONFLAME:CREATURE_EXTRACT_TEMPLATE]
[STATE_NAME:GAS:flame]
[STATE_ADJ:GAS:flame]
[MELTING_POINT:9950]
[BOILING_POINT:10000]
[FIXED_TEMP:20000]
[PREFIX:NONE]

This makes the fire hotter than magma. From personal experience, the world will burn.

Now, how do we make a creature attack with this?
Personally, I'd attach it to a bite attack.
Looking at the Helmet Snake attack:

Code: [Select]
[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_PRIORITY:MAIN]
[ATTACK_FLAG_EDGE]
[ATTACK_FLAG_CANLATCH]
[SPECIALATTACK_INJECT_EXTRACT:LOCAL_CREATURE_MAT:VENOM:LIQUID:100:100]

Now, we keep all of that, except we change the extract to be DRAGONFLAME:GAS

Code: [Select]
[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_PRIORITY:MAIN]
[ATTACK_FLAG_EDGE]
[ATTACK_FLAG_CANLATCH]
[SPECIALATTACK_INJECT_EXTRACT:LOCAL_CREATURE_MAT:DRAGONFLAME:GAS:500:500]
[SPECIALATTACK_INJECT_EXTRACT:LOCAL_CREATURE_MAT:DRAGONFLAME:LIQUID:200:200]

I can confirm that this kind of attack works, although I haven't tested these exact materials.
Well, it worked when I made my dwarves release bursts of slade on a scratch.
The slade would superheat the enemy, and the liquid slade would boil the area that was attacked, as liquid sprayed over the area, continually heating the limb.
Also, the attack didn't release the slade every time. Attacking unarmoured areas, or the feet, seemed to do it the most.
When a cloud of dragonfire is released, it generally spread 2-3 spaces away, doing some heat damage to anything within 2-3 spaces.

Someone else will have to help you with the colourations.

The reason this works is that the material does not enter the blood, as it does not have the tag to do it. Instead, it simply sprays on the outside, as a real material.
Logged

jaxy15

  • Bay Watcher
  • Adept Modder
    • View Profile
Re: Breathing fire as a dragon!
« Reply #12 on: June 25, 2011, 03:25:07 pm »

Barnox, I gave that a go and it didn't seem to work.
Logged
Dwarf Fortress: Threats of metabolism.

_DivideByZero_

  • Bay Watcher
  • Not to be confused with infinity
    • View Profile
Re: Breathing fire as a dragon!
« Reply #13 on: June 25, 2011, 03:44:50 pm »

It should work. Check your errorlog.txt in the game directory and see if there's anything wrong.
Logged
Have I now become your enemy by telling you the truth? (Gal 4:16)

jaxy15

  • Bay Watcher
  • Adept Modder
    • View Profile
Re: Breathing fire as a dragon!
« Reply #14 on: June 25, 2011, 03:45:24 pm »

Nope, nothing in the log.
Logged
Dwarf Fortress: Threats of metabolism.
Pages: [1] 2