Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to change the MATERIAL_EMISSION material?  (Read 1938 times)

RenoFox

  • Bay Watcher
    • View Profile
How to change the MATERIAL_EMISSION material?
« on: February 15, 2012, 02:12:43 pm »

I have managed to make the fire imps fire attack a learnable secret, but I couldn't find where it was defined as fire. How could I change it to emit a custom material?

narhiril

  • Bay Watcher
  • [DUTY_BOUND]
    • View Profile
Re: How to change the MATERIAL_EMISSION material?
« Reply #1 on: February 15, 2012, 02:16:54 pm »

I have managed to make the fire imps fire attack a learnable secret, but I couldn't find where it was defined as fire. How could I change it to emit a custom material?

[CDI:MATERIAL:material token:material subtoken:type of attack]

An example would be...

[CDI:MATERIAL:LOCAL_CREATURE_MAT:GAS:TRAILING_GAS_FLOW]


Note that this is completely independent of the CDI:FLOW token.  I'm not sure how the two will interact if both are present and the attack types are different.  I would guess that [CDI:FLOW:FIREBALL] is hardcoded to use fire.

RenoFox

  • Bay Watcher
    • View Profile
Re: How to change the MATERIAL_EMISSION material?
« Reply #2 on: February 15, 2012, 03:12:00 pm »

Making a shoop-da-whoop lazor is a bit harder then... I tried TRAILING_GAS_FLOW, but it reaches only one square forward, while LIQUID_GLOB launches a projectile instead. Any ideas would be welcome.

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: How to change the MATERIAL_EMISSION material?
« Reply #3 on: February 15, 2012, 03:13:49 pm »

When in doubt, read other's raws for interactions, study them for patterns and try to understand them. You should start by looking at the witcher mod's raws.
Logged
Thank you for all the fish. It was a good run.

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: How to change the MATERIAL_EMISSION material?
« Reply #4 on: February 15, 2012, 03:23:05 pm »

When in doubt, read other's raws for interactions, study them for patterns and try to understand them. You should start by looking at the witcher mod's raws.
Those breath attacks are literally identical to the dragonfire/imp fireball raws.
Those seem to be a special token called a FLOW rather than a MATERIAL, which only has two known subtypes, FIREJET and FIREBALL.
This will give you a solid chunk of ice -- doesn't do a whole lot, though.
[CDI:MATERIAL:WATER:SOLID_GLOB]
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: How to change the MATERIAL_EMISSION material?
« Reply #5 on: February 16, 2012, 04:30:35 am »

If you want to emit a custom material, open world.dat (with uncompressed saves) and look at any forgotten beast which sprays dust/gas.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Mictlantecuhtli

  • Bay Watcher
  • Grinning God of Death
    • View Profile
Re: How to change the MATERIAL_EMISSION material?
« Reply #6 on: February 16, 2012, 04:41:53 am »

Is there a way to make the fire into an acid-like instant melt? Like vaporization?

Also- is it possible to make a 'force push' of sorts with this? Like a force ball that will throw a target? Because if so I have many telekenesis related magicks to develop.
Logged
I am surrounded by flesh and bone, I am a temple of living. Maybe I'll maybe my life away.

Santorum leaves a bad taste in my mouth,
Card-carrying Liberaltarian

Kilroy the Grand

  • Bay Watcher
  • I only want to give you a small kiss
    • View Profile
Re: How to change the MATERIAL_EMISSION material?
« Reply #7 on: February 16, 2012, 05:06:11 am »

Is there a way to make the fire into an acid-like instant melt? Like vaporization?

Also- is it possible to make a 'force push' of sorts with this? Like a force ball that will throw a target? Because if so I have many telekenesis related magicks to develop.

Try [CDI:MATERIAL:SLADE:SOLID_GLOB]

That should have a little bit of a kick back
Logged
*pew* *blam* "Aughgghggurglegurgle..." *slither* *slither* *pit* *pat* *tap* *click-click* *BOOM* "Aiiieeegurgle gurgle..."
X-com meets Dwarf Fortress