Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 177 178 [179] 180 181 ... 544

Author Topic: [MODDING] 0.34. QUESTIONS THREAD  (Read 1005563 times)

Gamer47

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2670 on: September 20, 2012, 10:41:30 pm »


I am looking to mod in a building, lets say a modded gear, but instead of sucking up power it would spit it out. So no more
waterwheels or windmills for me. I haven't seen any such buildings anywere so I am asking for some help. Anyway, I don't know
how to mod that in. I love rivers in my games but they suck up to much fps for me, and I don't play long before I quit my forts anyway. Plus I'm a cheater.

Also, has anyone ever seen a concrete mod? I was thinking something that could be poured in buckets and even have flow, but
then solidify the way magma does when it hits water, but instead of having it be dependent on meeting water, it would have a timer that resets every time more cement/concrete (I forget which is which) is added to the pool.

As for tech level concerns, the Romans made a lot of stuff out of it, but they knew better than to leave it bare, they would
put tile or brick over it to pretty it up and keep it from getting ugly from exposure.

I am new to the forums (but not to DF). I hope I put this in the right place.
Logged

Courtesy Arloban

  • Bay Watcher
  • This isn't a fortress... ...It's also not a map.
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2671 on: September 20, 2012, 11:22:47 pm »

Unfortunately it's not possible to mod a workshop to produce power yet.  As for concrete, I believe I've seen it around, don't remember where, but it's simple to do, just copy a line in the raws of gypsum that says hardens with water and add it to limestone.  Copy a suitable stone and rename it concrete.  Change the line in limestone that you added in so that it says the limestone hardens with water to concrete.  That's one form of concrete, other recipes require volcanic ash as well, and for that you need a reaction.
Logged
Maybe that the dwarves never died and everyone is just shunning them.
"Wait, what are you doing?  I don't want to go in there!  No, I'm still alive, you can't do this to me!  Is Anybody listening?  Hello... Can someone let me out?  Help me!  Is anyone there?  I'm running out of air!"

Gamer47

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2672 on: September 20, 2012, 11:27:32 pm »

Well thank you! That was fast. Shame about my power though.
Logged

Courtesy Arloban

  • Bay Watcher
  • This isn't a fortress... ...It's also not a map.
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2673 on: September 20, 2012, 11:36:10 pm »

You're welcome, yes it is a shame about the power.
Logged
Maybe that the dwarves never died and everyone is just shunning them.
"Wait, what are you doing?  I don't want to go in there!  No, I'm still alive, you can't do this to me!  Is Anybody listening?  Hello... Can someone let me out?  Help me!  Is anyone there?  I'm running out of air!"

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2674 on: September 21, 2012, 12:30:19 pm »

Just a small question. Would it be a good idea to keep templates for my mods? I need to copy-paste a lot of reactions/interactions/materials and I know that MATERIAL_TEMPLATE can help with the third problem.

EDIT:Also, I'm quite new to interaction modding. I need to see if these interactions work. Would they work if the user of the interaction was an intelligent megabeast in Fortmode?

Code: [Select]
[INTERACTION:DIARAHAN]
    [I_TARGET:A:CREATURE]
        [IT_LOCATION:CONTEXT_CREATURE]
        [IT_AFFECTED_CLASS:GENERAL_POISON]
        [IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
        [IT_FORBIDDEN:NOT_LIVING]
        [IT_MANUAL_INPUT:creatures]
    [I_EFFECT:ADD_SYNDROME]
        [IE_TARGET:A:LINE_OF_SIGHT]
        [IE_IMMEDIATE]
        [SYNDROME]
            [SYN_NAME:Diarahan]
            [CE_SKILL_ROLL_ADJUST:PERC:130:PERC_ON:100:START:0:END:500]
            [CE_BODY_TRANSFORMATION:START:0:END:30]
            [CE:CREATURE:HUMAN:MALE]

[INTERACTION:POWERCHARGE]
    [I_TARGET:A:CREATURE]
        [IT_LOCATION:CONTEXT_CREATURE]
        [IT_AFFECTED_CLASS:GENERAL_POISON]
        [IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
        [IT_FORBIDDEN:NOT_LIVING]
        [IT_MANUAL_INPUT:creatures]
    [I_EFFECT:ADD_SYNDROME]
        [IE_TARGET:A:SELF_ONLY]
        [IE_IMMEDIATE]
        [SYNDROME]
            [SYN_NAME:Power Charge]
            [CE_SPEED_CHANGE:SPEED_PERC:150:PROB:100:START:1:PEAK:1000:END:7000]
            [CE_PHYS_ATT_CHANGE:STRENGTH:170:0:START:1:PEAK:1000:END:7000]
            [CE_PHYS_ATT_CHANGE:AGILITY:130:0:START:1:PEAK:1000:END:7000]
            [CE_PHYS_ATT_CHANGE:TOUGHNESS:150:0:START:1:PEAK:1000:END:7000]

[INTERACTION:DEBILITATE]
    [I_TARGET:A:CREATURE]
        [IT_LOCATION:CONTEXT_CREATURE]
        [IT_AFFECTED_CLASS:GENERAL_POISON]
        [IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
        [IT_FORBIDDEN:NOT_LIVING]
        [IT_MANUAL_INPUT:creatures]
    [I_EFFECT:ADD_SYNDROME]
        [IE_TARGET:A:LINE_OF_SIGHT]
        [IE_IMMEDIATE]
        [SYNDROME]
            [SYN_NAME:Debilitate]
            [CE_NUMBNESS:SEV:100:PROB:100:START:1:PEAK:1000:END:7000]
            [CE_DROWSINESS:SEV:100:PROB:100:START:1:PEAK:1000:END:7000]
            [CE_SPEED_CHANGE:SPEED_PERC:30:PROB:100:START:1:PEAK:1000:END:7000]
            [CE_PHYS_ATT_CHANGE:STRENGTH:20:0:START:1:PEAK:1000:END:7000]
            [CE_DIZZINESS:SEV:100:PROB:100:START:1:PEAK:1000:END:7000]
            [CE_NAUSEA:SEV:100:PROB:100:START:1:PEAK:1000:END:7000]
            [CE_DIZZINESS:SEV:80:PROB:100:START:7000:PEAK:10000:END:19000]   

[INTERACTION:MEPATRA]
    [I_TARGET:A:CREATURE]
        [IT_LOCATION:CONTEXT_CREATURE]
        [IT_AFFECTED_CLASS:GENERAL_POISON]
        [IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
        [IT_FORBIDDEN:NOT_LIVING]
        [IT_MANUAL_INPUT:creatures]
    [I_EFFECT:ADD_SYNDROME]
        [IE_TARGET:A:LINE_OF_SIGHT]
        [IE_IMMEDIATE]
        [SYNDROME]
            [SYN_NAME:Me Patra]
            [CE_ADD_TAG:NOFEAR:NOEMOTION:START:0:END:20000]

[INTERACTION:SPIRITDRAIN]
    [I_TARGET:A:CREATURE]
        [IT_LOCATION:CONTEXT_CREATURE]
        [IT_AFFECTED_CLASS:GENERAL_POISON]
        [IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
        [IT_FORBIDDEN:NOT_LIVING]
        [IT_MANUAL_INPUT:creatures]
    [I_EFFECT:ADD_SYNDROME]
        [IE_TARGET:A:LINE_OF_SIGHT]
        [IE_IMMEDIATE]
        [SYNDROME]
            [SYN_NAME:Spirit Drain]
            [CE_ADD_TAG:NOEMOTION:START:0:END:2000]
            [CE_MENT_ATT_CHANGE:WILLPOWER:20:0:START:1:PEAK:1000:END:7000]
            [CE_MENT_ATT_CHANGE:KINESTHETIC_SENSE:20:0:START:1:PEAK:1000:END:7000]

[INTERACTION:DIA]
    [I_TARGET:A:CREATURE]
        [IT_LOCATION:CONTEXT_CREATURE]
        [IT_AFFECTED_CLASS:GENERAL_POISON]
        [IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
        [IT_FORBIDDEN:NOT_LIVING]
        [IT_MANUAL_INPUT:creatures]
    [I_EFFECT:ADD_SYNDROME]
        [IE_TARGET:A:LINE_OF_SIGHT]
        [IE_IMMEDIATE]
        [SYNDROME]
            [SYN_NAME:Dia]
            [CE_SKILL_ROLL_ADJUST:PERC:110:PERC_ON:100:START:0:END:500]
            [CE_PHYS_ATT_CHANGE:RECUPERATION:5000:0:START:0:END:1000]

[INTERACTION:DIARAMA]
    [I_TARGET:A:CREATURE]
        [IT_LOCATION:CONTEXT_CREATURE]
        [IT_AFFECTED_CLASS:GENERAL_POISON]
        [IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
        [IT_FORBIDDEN:NOT_LIVING]
        [IT_MANUAL_INPUT:creatures]
    [I_EFFECT:ADD_SYNDROME]
        [IE_TARGET:A:LINE_OF_SIGHT]
        [IE_IMMEDIATE]
        [SYNDROME]
            [SYN_NAME:Diarama]
            [CE_SKILL_ROLL_ADJUST:PERC:120:PERC_ON:100:START:0:END:500]
            [CE_PHYS_ATT_CHANGE:RECUPERATION:500000:0:START:0:END:1000]
« Last Edit: September 21, 2012, 12:58:01 pm by IamanElfCollaborator »
Logged

darklord92

  • Bay Watcher
  • [CREATURE:SERGALNORTH]
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2675 on: September 21, 2012, 01:59:32 pm »

Though i can't help much with the interactions :(  i seem to be having my own problem with reactions

Spoiler: material_gasoline (click to show/hide)

Spoiler: inorganic_gasoline (click to show/hide)

It seems neither of these reactions want to work properly, and i have a hunch it's about the containers. posted the gasoline material above if you need it to fix.
Spoiler: reaction (click to show/hide)
Logged
Form walking potato man out of corpse. Absorb anyone else in the house.
We have a successful derail.
The Vilous Mod - Jingle berries!

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2676 on: September 21, 2012, 02:53:25 pm »

First a note:
In your second reaction it should be [REAGENT:B:150:BAR:NONE:NONE:NONE] and you don't need the [PRODUCT_DIMENSION:XX] on it since the product is a tool.

Can you post your reaction to get gasoline in the barrel in the first place?
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

darklord92

  • Bay Watcher
  • [CREATURE:SERGALNORTH]
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2677 on: September 21, 2012, 03:03:45 pm »




Spoiler: inorganic_oilstone (click to show/hide)
Logged
Form walking potato man out of corpse. Absorb anyone else in the house.
We have a successful derail.
The Vilous Mod - Jingle berries!

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2678 on: September 21, 2012, 07:44:37 pm »

Ok I think this will fix the problems.

Code: [Select]
[REACTION:AGU_DISTILGAS]
[NAME:distil gasoline into fuel]
[BUILDING:REFINERY:CUSTOM_P]
[REAGENT:A:1:NONE:NONE:NONE:NONE]
[CONTAINS:B]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:B:150:LIQUID_MISC:NONE:INORGANIC:GASOLINE]
[PRODUCT:100:6:BAR:NONE:COAL:COKE][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:MECHANICS]

[REACTION:AGU_MAKEMOTORCART]
[NAME:construct motorcart]
[BUILDING:CRAFTSMAN:CUSTOM_M]
[REAGENT:A:1:NONE:NONE:NONE:NONE]
[CONTAINS:B]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:B:150:LIQUID_MISC:NONE:INORGANIC:GASOLINE]
[REAGENT:C:1:BAR:NONE:NONE:NONE]
[REAGENT:D:1:TRAPPARTS:NONE:NONE:NONE]
[REAGENT:E:1:PIPE_SECTION:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_MOTORCART:GET_MATERIAL_FROM_REAGENT:B]
[SKILL:MECHANICS]
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2679 on: September 21, 2012, 08:06:31 pm »

This is what I use to turn oil from rock nuts into coke/fuel. Hopefully it helps.

Code: [Select]
[REACTION:FUEL_FROM_OIL]
[NAME:make fuel from oil]
[BUILDING:REFINERY:CUSTOM_O]
[REAGENT:oil:150:LIQUID_MISC:NONE:NONE:NONE]
[UNROTTEN]
[HAS_MATERIAL_REACTION_PRODUCT:SOAP_MAT]
[REAGENT:oil container:1:NONE:NONE:NONE:NONE]
[CONTAINS:oil]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:3:BAR:NO_SUBTYPE:COAL:COKE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

darklord92

  • Bay Watcher
  • [CREATURE:SERGALNORTH]
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2680 on: September 21, 2012, 09:47:50 pm »

aye it worked ^^ thanks for helping with the mod!
Logged
Form walking potato man out of corpse. Absorb anyone else in the house.
We have a successful derail.
The Vilous Mod - Jingle berries!

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2681 on: September 22, 2012, 05:36:43 am »

Would my interactions above work for megas in fortmode?

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2682 on: September 22, 2012, 12:58:25 pm »

I don't see why they wouldn't. It's better to just test. Whether they'll use it or not is defined in the creature, not the interaction.

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2683 on: September 22, 2012, 01:07:33 pm »

K. I just want to know if in theory they would work. Also, what would me making a healing interaction use [USAGE_HINT:CLEAN_FRIEND] do?

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #2684 on: September 22, 2012, 01:08:47 pm »

It would mean they probably wouldn't use it to heal.
Pages: 1 ... 177 178 [179] 180 181 ... 544