Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Possible to mod forges to make weapons out of any material?  (Read 282 times)

C4lv1n

  • Bay Watcher
  • No commies allowed.
    • View Profile

Fairly straightforward, I was wondering how to go about modding the forge so I can make weapons (EDIT: And armor.) out of things other than the normal set. I know artifacts can be made from any sort of metal, but I'd like to be able to make weapons out of brass and the like.

Is this possible or is this a hard coded thing?
« Last Edit: May 06, 2013, 09:38:50 pm by C4lv1n »
Logged
I've played a guitar with my penis.

Jilladilla

  • Bay Watcher
    • View Profile
Re: Possible to mod forges to make weapons out of any material?
« Reply #1 on: May 06, 2013, 09:45:55 pm »

This feature is attached to the material, there are tags that flag the material as being usable for weapons and armor, the forge will automatically allow said metal to be used for the appropriate weapons/armor (idk if this will work for a currently existing world or not)
Logged
"If I have to be sober for a war, I want to be as drunk as possible before."

"Who says we had to be sober for the war?"

New Guy

  • Bay Watcher
  • On break
    • View Profile
Re: Possible to mod forges to make weapons out of any material?
« Reply #2 on: May 06, 2013, 10:07:34 pm »

adding [ITEMS_WEAPON] and the like (see info on this page here) will allow you to make weapons and armor, depending on which tokens you applied.

Just slap it in the Inorganics raw file.
Logged
۩۩۩ ஃ Genesis Reborn ஃ ۩۩۩
<<Fear The Night!>>
☼MASTERWORK☼
BURN, SIGNATURE LIMIT! BURN! | SoundCloud | trueTransform (guide)

Reminding others that you're kinder than everyone else is not being kind. Rather, exercise humility and never mention it.

Pufferfish

  • Bay Watcher
  • [PREFSTRING: balloon-like qualities]
    • View Profile
Re: Possible to mod forges to make weapons out of any material?
« Reply #3 on: May 07, 2013, 12:00:10 am »

Well, you can have it so that you have a reaction that takes a piece of leather and makes a sword out of the same material you used in the process, in this case leather. I was able to make green glass armor this way.
Logged
Quote from: Loud Whispers
Call in the Queen. The Queen knows what to do.
BRITISHORYUKEN

C4lv1n

  • Bay Watcher
  • No commies allowed.
    • View Profile
Re: Possible to mod forges to make weapons out of any material?
« Reply #4 on: May 07, 2013, 12:19:30 am »

Perfect, you get [ITEMS_WEAPON]! YOU get [ITEMS_WEAPON]! EVERYONE GETS [ITEMS_WEAPON]!
Logged
I've played a guitar with my penis.

New Guy

  • Bay Watcher
  • On break
    • View Profile
Re: Possible to mod forges to make weapons out of any material?
« Reply #5 on: May 07, 2013, 01:05:35 am »

Perfect, you get [ITEMS_WEAPON]! YOU get [ITEMS_WEAPON]! EVERYONE GETS [ITEMS_WEAPON]!

Eh? If that isn't what you want, then you could make a custom workshop, add a reaction class ([REACTION_CLASS:ITEM_METAL]) or something, and do the above steps as pufferfish said.

Code: [Select]
[REACTION:METAL_SWORD]
[NAME:make short sword out of any metal]
[BUILDING:SMELTER:NONE] <-- use any other workshop here if you wish, but let's make it from smelters
[REAGENT:A:150:BAR:NONE:NONE:NONE][REACTION_CLASS:ITEM_METAL]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_SWORD_SHORT:GET_MATERIAL_FROM_REAGENT:A:NONE]
[FUEL]
[SKILL:SMELT]

then slap [PERMITTED_REACTION:METAL_SWORD] in your entity raws. Upside of this is that the metals are purely limited to your race. Downside is that if you're not going to specify any metal, going for the REACTION_CLASS method instead, you will have a hard time forbidding metals to produce your specific weapon. You can specify a material directly, but this leads to too much clutter.
Logged
۩۩۩ ஃ Genesis Reborn ஃ ۩۩۩
<<Fear The Night!>>
☼MASTERWORK☼
BURN, SIGNATURE LIMIT! BURN! | SoundCloud | trueTransform (guide)

Reminding others that you're kinder than everyone else is not being kind. Rather, exercise humility and never mention it.

Putnam

  • Bay Watcher
  • Legendary+1 Modder
    • View Profile
Re: Possible to mod forges to make weapons out of any material?
« Reply #6 on: May 07, 2013, 02:41:26 pm »

Just adding ITEMS_WEAPON to the metal template is much easier...
Logged

Crazy Cow

  • Bay Watcher
  • Legendary Procrastinator
    • View Profile
Re: Possible to mod forges to make weapons out of any material?
« Reply #7 on: May 07, 2013, 07:54:37 pm »

No, he was joking. It's a meme referencing one of Oprah's shows where she yells something similar ;p

Putnam

  • Bay Watcher
  • Legendary+1 Modder
    • View Profile
Re: Possible to mod forges to make weapons out of any material?
« Reply #8 on: May 07, 2013, 08:25:16 pm »

I was talking to New Guy >_>
Logged

New Guy

  • Bay Watcher
  • On break
    • View Profile
Re: Possible to mod forges to make weapons out of any material?
« Reply #9 on: May 07, 2013, 10:39:29 pm »

Yeah, but I didn't get the joke.

Code: [Select]
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . joke>>

         O
        /|\
         ^
Logged
۩۩۩ ஃ Genesis Reborn ஃ ۩۩۩
<<Fear The Night!>>
☼MASTERWORK☼
BURN, SIGNATURE LIMIT! BURN! | SoundCloud | trueTransform (guide)

Reminding others that you're kinder than everyone else is not being kind. Rather, exercise humility and never mention it.