Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 93 94 [95] 96 97 ... 120

Author Topic: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION  (Read 185645 times)

brolol.404

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1410 on: September 14, 2019, 08:11:45 am »

What is the best/easiest way to make a workshop reaction give the dwarf doing the reaction a syndrome? Would a gas product with a contact syndrome be the best way?

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1411 on: September 14, 2019, 11:20:08 am »

Dfhack modtools/reaction-trigger.

Boiling rock works, but unreliably.
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 :::

Quaksna

  • Bay Watcher
  • Dreams of creating a great work of art.
    • View Profile
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1412 on: September 14, 2019, 12:56:42 pm »

I want to do an interaction that would buff up the user, but can't figure it out. I tried CE_PHYS_ATT_CHANGE, but it doesn't work, and I don't know what I'm doing wrong.

Could someone experienced (yes, I'm looking at you, Eric) help or advise me? I would really, really want to make a healing magic class or something. Thanks!

ZM5

  • Bay Watcher
  • Accomplished RAW Engineer
    • View Profile
    • Steam
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1413 on: September 14, 2019, 01:24:19 pm »

Code: [Select]
[INTERACTION:SELF_HEAL]
[I_SOURCE:CREATURE_ACTION]
[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
                [IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
                [SYN_NO_HOSPITAL]
[SYN_NAME:self-heal]
                        [CE_PHYS_ATT_CHANGE:RECUPERATION:200:0:START:0:END:150]

Simplest one I could think of - 200:0 means it doubles recuperation and doesn't add any flat bonus. Since it lacks a target in the I_TARGET section it'll skip the targeting part and add the syndrome to the user.

Quaksna

  • Bay Watcher
  • Dreams of creating a great work of art.
    • View Profile
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1414 on: September 14, 2019, 01:33:24 pm »

Oh, I see. Exactly what I needed. Thanks a lot!

brolol.404

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1415 on: September 14, 2019, 07:24:03 pm »

Boiling rock works, but unreliably.

What is the product for this? A custom inorganic material applied to a boulder that instantly melts (due to high temps on the mat) and releases a syndrome attached to that custom inorganic material?

Eric Blank

  • Bay Watcher
  • *Remain calm*
    • View Profile
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1416 on: September 14, 2019, 08:29:35 pm »

Yes, but it actually needs to boil too. So I like set the boiling point just below the melting point, which has to be between 10000 and 10090 urists or sometimes it will kill people.

Of course it also causes materials around it that are weak, like clothing or wooden blocks the workshop or tools are made of, to degrade and break after only a few exposures.
Logged
I make Spellcrafts!
I have no idea where anything is. I have no idea what anything does. This is not merely a madhouse designed by a madman, but a madhouse designed by many madmen, each with an intense hatred for the previous madman's unique flavour of madness.

brolol.404

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1417 on: September 14, 2019, 08:51:08 pm »

Yes, but it actually needs to boil too. So I like set the boiling point just below the melting point, which has to be between 10000 and 10090 urists or sometimes it will kill people.

Of course it also causes materials around it that are weak, like clothing or wooden blocks the workshop or tools are made of, to degrade and break after only a few exposures.

Thanks. I'm using it to give a corpse offering to a demon and in return getting mood buff so I am ok with it breaking altars made of weak mats. Kind of collateral damage working with demons lol

brolol.404

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1418 on: September 15, 2019, 08:00:11 am »

Can I create an embark profile for a mod without overwriting the standard one? Naming it something like: "embark_profiles_mod"

Hetsin

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1419 on: September 15, 2019, 01:09:17 pm »

Is there a way to change the amount of time a ranged attack takes?
Logged

TomiTapio

  • Bay Watcher
  • OldGenesis since 2012
    • View Profile
    • My Flickr animal photos
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1420 on: September 15, 2019, 01:20:41 pm »

Is there a way to change the amount of time a ranged attack takes?
Adjusting the 3:3 timing on

[ITEM_AMMO:ITEM_AMMO_BOLTS]
[NAME:bolt:bolts][CLASS:BOLT][SIZE:80]
[ATTACK:EDGE:20:1880:stab:stabs:NO_SUB:1000]
   [ATTACK_PREPARE_AND_RECOVER:3:3]

[ITEM_AMMO:ITEM_AMMO_ARROWS]
[NAME:arrow:arrows][CLASS:ARROW][SIZE:80]
[ATTACK:EDGE:10:1100:stab:stabs:NO_SUB:1000]
   [ATTACK_PREPARE_AND_RECOVER:3:3]
should work.
Logged
==OldGenesis mod== by Deon & TomiTapio. Five wood classes, four leather classes. Nine enemy civs. So much fine-tuning.
47.05e release: http://dffd.bay12games.com/who.php?id=1538
OldGenesis screenshots: https://twitter.com/hashtag/OldGenesis?src=hashtag_click&f=image
My Finnish language file: http://dffd.bay12games.com/file.php?id=14884

Hetsin

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1421 on: September 15, 2019, 01:50:40 pm »

Is there a way to change the amount of time a ranged attack takes?
Adjusting the 3:3 timing on

[ITEM_AMMO:ITEM_AMMO_BOLTS]
[NAME:bolt:bolts][CLASS:BOLT][SIZE:80]
[ATTACK:EDGE:20:1880:stab:stabs:NO_SUB:1000]
   [ATTACK_PREPARE_AND_RECOVER:3:3]

[ITEM_AMMO:ITEM_AMMO_ARROWS]
[NAME:arrow:arrows][CLASS:ARROW][SIZE:80]
[ATTACK:EDGE:10:1100:stab:stabs:NO_SUB:1000]
   [ATTACK_PREPARE_AND_RECOVER:3:3]
should work.

Thanks. 😊 I'll test it when I can, but I was under the impression that the prepare and recover was solely for melee attacks. I made some custom crossbows and it took about 45 to 50 ticks between attacks, with GM Archer and Marksdwarves.
Logged

ZM5

  • Bay Watcher
  • Accomplished RAW Engineer
    • View Profile
    • Steam
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1422 on: September 15, 2019, 02:10:48 pm »

I would think those are for attacking with the ammo type itself, rather than anything to do with the ranged weapon (3:3 prepare/recovery doesn't add up to the firing delay letting one be hit around 13-15 times) - from my understanding ranged weapon firing times are hardcoded and cannot be altered currently.

Eric Blank

  • Bay Watcher
  • *Remain calm*
    • View Profile
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1423 on: September 15, 2019, 03:12:36 pm »

I would be so pissed if that actually worked we have been asking for that functionality for years literally
Logged
I make Spellcrafts!
I have no idea where anything is. I have no idea what anything does. This is not merely a madhouse designed by a madman, but a madhouse designed by many madmen, each with an intense hatred for the previous madman's unique flavour of madness.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION
« Reply #1424 on: September 15, 2019, 03:35:32 pm »

Dfhack can do that though.

Spoiler (click to show/hide)
« Last Edit: September 15, 2019, 03:37:03 pm by Meph »
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 :::
Pages: 1 ... 93 94 [95] 96 97 ... 120