Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Backpack reaction  (Read 2855 times)

watfordj

  • Bay Watcher
    • View Profile
Backpack reaction
« on: October 16, 2012, 12:32:33 pm »

I'm trying to make a reaction similar to knapping, but i cant figure out how to add it to the craft menu.
here's what i have now

[REACTION:MAKE_BACKPACK]
   [NAME:knot backpack]
   [ADVENTURE_MODE_ENABLED]
   [REAGENT:B:1:BOX:EMPTY:NONE:NONE]
   [PRODUCT:100:1:BACKPACK:GET_MATERIAL_FROM_REAGENT:NONE:NONE]

How do I fix this?
Logged

watfordj

  • Bay Watcher
    • View Profile
Re: Backpack reaction
« Reply #1 on: October 16, 2012, 02:08:01 pm »

I think it works, but it destroys any item in the reagent bag, be careful.

[REACTION:BAGKNOT]
    [NAME:knot bag into backpack]
    [ADVENTURE_MODE_ENABLED]
    [REAGENT:B:1:BOX:ANY_LEATHER_MATERIAL:NONE:NONE]
    [PRODUCT:100:1:BACKPACK:NONE:GET_MATERIAL_FROM_REAGENT:B:NONE]
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Backpack reaction
« Reply #2 on: October 16, 2012, 03:34:33 pm »

Your REAGENT was broken in the original reaction and is still broken in the second revision - in the first one, you tried to specify EMPTY as a item subtype, and in the second one you tried to use ANY_LEATHER_MATERIAL as a subtype, neither of which are legal.

Had you read the Reactions article on the wiki, you would have learned that the proper way to do it is [REAGENT:B:1:BOX:NONE:NONE:NONE][ANY_LEATHER_MATERIAL][EMPTY] (or replace [ANY_LEATHER_MATERIAL] with [BAG] if you want to allow making cloth backpacks as well).
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Burnzy503

  • Bay Watcher
    • View Profile
Re: Backpack reaction
« Reply #3 on: October 16, 2012, 04:45:58 pm »

This is a great idea, the one thing I hate about using my custom race or being an outsider is it's such a painful chore to find a backpack! With this reaction, how would you go about then making the backpack in adventure mode? Since you said it's like knapping which is done I believe by pressing X and there's an option, would knot backpack be in that list?
Logged
Defeating deities and dying to llamas!

watfordj

  • Bay Watcher
    • View Profile
Re: Backpack reaction
« Reply #4 on: October 16, 2012, 05:39:47 pm »

i tried it with cloth backpacks but they cant hold anything. I'll try to fix it.
Logged

watfordj

  • Bay Watcher
    • View Profile
Re: Backpack reaction
« Reply #5 on: October 16, 2012, 05:43:21 pm »

This is a great idea, the one thing I hate about using my custom race or being an outsider is it's such a painful chore to find a backpack! With this reaction, how would you go about then making the backpack in adventure mode? Since you said it's like knapping which is done I believe by pressing X and there's an option, would knot backpack be in that list?
Yes, it would show up in the craft menu.
Logged

watfordj

  • Bay Watcher
    • View Profile
Re: Backpack reaction
« Reply #6 on: October 16, 2012, 05:44:32 pm »

Your REAGENT was broken in the original reaction and is still broken in the second revision - in the first one, you tried to specify EMPTY as a item subtype, and in the second one you tried to use ANY_LEATHER_MATERIAL as a subtype, neither of which are legal.

Had you read the Reactions article on the wiki, you would have learned that the proper way to do it is [REAGENT:B:1:BOX:NONE:NONE:NONE][ANY_LEATHER_MATERIAL][EMPTY] (or replace [ANY_LEATHER_MATERIAL] with [BAG] if you want to allow making cloth backpacks as well).

Code: [Select]
[REACTION:BAGKNOT]
[NAME:knot bag into backpack]
[ADVENTURE_MODE_ENABLED]
[REAGENT:B:1:BOX:NONE:NONE:NONE]
[ANY_LEATHER_MATERIAL][EMPTY]
[PRODUCT:100:1:BACKPACK:NONE:NONE:NONE]
[GET_MATERIAL_FROM_REAGENT]

Is this right?
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Backpack reaction
« Reply #7 on: October 16, 2012, 10:38:26 pm »

Code: [Select]
[REACTION:BAGKNOT]
[NAME:knot bag into backpack]
[ADVENTURE_MODE_ENABLED]
[REAGENT:B:1:BOX:NONE:NONE:NONE]
[ANY_LEATHER_MATERIAL][EMPTY]
[PRODUCT:100:1:BACKPACK:NONE:NONE:NONE]
[GET_MATERIAL_FROM_REAGENT]

Is this right?
No.

Code: [Select]
[REACTION:BAGKNOT]
[NAME:knot bag into backpack]
[ADVENTURE_MODE_ENABLED]
[REAGENT:B:1:BOX:NONE:NONE:NONE]
[ANY_LEATHER_MATERIAL][EMPTY]
[PRODUCT:100:1:BACKPACK:NONE:GET_MATERIAL_FROM_REAGENT:B:NONE]

Read the Reactions article again, and observe that GET_MATERIAL_FROM_REAGENT:x:x is a material and is thus placed immediately after the item token (in place of the "NONE:NONE" at the end).

Also, a cloth backpack should work just fine.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

watfordj

  • Bay Watcher
    • View Profile
Re: Backpack reaction
« Reply #8 on: October 24, 2012, 05:34:14 pm »

I've fixed the reaction and added two more that will hopefuly work.
Code: [Select]
[REACTION:BAGKNOT]
[NAME:Knot bag into Backpack]
[ADVENTURE_MODE_ENABLED]
[REAGENT:B:1:BOX:NONE:NONE:NONE]
[ANY_LEATHER_MATERIAL][EMPTY]
[PRODUCT:100:1:BACKPACK:NONE:GET_MATERIAL_FROM_REAGENT:B:NONE]


[REACTION:BAGKNOT_QUIVER]
[NAME:Knot bag into Quiver]
[ADVENTURE_MODE_ENABLED]
[REAGENT:B:1:BOX:NONE:NONE:NONE]
[ANY_LEATHER_MATERIAL][EMPTY]
[PRODUCT:100:1:QUIVER:NONE:GET_MATERIAL_FROM_REAGENT:B:NONE]


[REACTION:BAGKNOT_WATERSKIN]
[NAME:Knot bag into Waterskin]
[ADVENTURE_MODE_ENABLED]
[REAGENT:B:1:BOX:NONE:NONE:NONE]
[ANY_LEATHER_MATERIAL][EMPTY]
[PRODUCT:100:1:FLASK:NONE:GET_MATERIAL_FROM_REAGENT:B:NONE]
Logged

Chaosegg

  • Bay Watcher
  • Watch what is done more than what is said.
    • View Profile
Re: Backpack reaction
« Reply #9 on: March 05, 2013, 12:40:04 pm »

Where exactly do I put this code (reaction_adventurer_basic?),
and/or how do I make use of it if I don't see it in my in-game x (craft) menu?

I'm playing Adventure Mode for the first time. Started as Outsider in vanilla/modest and the inventory made me go "hmm,
I need a mod so this makes sense; 'in reality' I could almost certainly improvise ways of carrying more than just 2 items.
clothing, vines/saplings etc. as slings, belts, packs"""""""LOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLO (cat walking on keyboard, verbatim no joke; had to leave it in)
 especially with all these extra animal skins, bandit clothes and coin bags..."  ;D

Any other advice on super nonsensical things I'm going to want to mod later is also appreciated.  :)
Like for example; opinions on if I should just go ahead and install one of these 3 (Edit: 4) mods now?
Battlecraft http://www.bay12forums.com/smf/index.php?topic=85777.msg2316092#msg2316092
ADVENTURE USEFUL CRAFTINGS http://www.bay12forums.com/smf/index.php?topic=120162.msg3856520#msg3856520
Wanderers' Friend http://www.bay12forums.com/smf/index.php?topic=61304.msg1393942#msg1393942
Genesis seems cool too?
I'm sort of a hard-mode player, focused on immersion and/or realism generally speaking,
but I don't like to feel any hint of that "cheating feeling", or going against the original intent of the game.

I also aim to play more peacefully if possible these days (recovering war game addict, swinging back into hippiedom),
so good mods related to non-destructive/domination would be interesting.
By "good" I mean not just "more crafting", or "more ability to trade", or "more talking", I mean real, comprehensive, viable game options
for having "as much fun", or "winning the game" via relatively non-aggressive methods.
« Last Edit: March 05, 2013, 01:57:07 pm by Chaosegg »
Logged
***Likes 'green' airships for their efficiency.***
Creative seeking other creative TTRPGers to join, or join me, for  immersive, fun, creative, team-crafted stories. Setting flexible; mostly sci-fi &/or fantasy (I know SW, MiddleEarth, DnD, & ST best, but Ulisses Spiele & Cypher System high on list too. There are a few other niche sys. like DCC, a homebrew 3.5 or Pathfndr I/II; But at this point I'd even DM or play a well-run 5e game. Let the ideas flow, and never forget the 4 pillars of an RPG!

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Backpack reaction
« Reply #10 on: March 05, 2013, 01:03:20 pm »

Where exactly do I put this code (reaction_adventurer_basic?)
I would just stick it at the end of the reaction_other.txt file.
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.