Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Some simple modding help.  (Read 1266 times)

skywerewolf

  • Bay Watcher
  • When in doubt, burn people!
    • View Profile
Some simple modding help.
« on: January 22, 2012, 01:48:52 am »

Out of boredom I decided to try play adventure mode with a crossbow character. I want to make a reaction that allows me to summon both crossbow and bolts. Just simple ones. Does anybody have any code for this or can help me make it?
Logged

Prologue

  • Bay Watcher
    • View Profile
Re: Some simple modding help.
« Reply #1 on: January 22, 2012, 02:38:00 am »

[REACTION:CHEAT_CROSSBOW_BOLTS]
   [NAME:Summon Crossbow and bolts.]
   [ADVENTURE_MODE_ENABLED]
   [PRODUCT:100:1:WEAPON:ITEM_WEAPON_CROSSBOW:INORGANIC:ADAMANTINE:NONE]
   [PRODUCT:100:1:AMMO:ITEM_AMMO_BOLTS:INORGANIC:ADAMANTINE:NONE]

I believe that will work. I haven't touched Adventure Mode modding in a while so I could be wrong. I think you also need a quiver. So add this:

   [PRODUCT:100:1:QUIVER:NO_SUBTYPE:INORGANIC:ADAMANTINE:NONE]

Of course you can switch out the adamantine material to whatever you want.
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Some simple modding help.
« Reply #2 on: January 22, 2012, 05:44:51 am »

You might also want to increase [PRODUCT:100:1:AMMO:ITEM_AMMO_BOLTS:INORGANIC:ADAMANTINE:NONE] to something like [PRODUCT:100:50:AMMO:ITEM_AMMO_BOLTS:INORGANIC:ADAMANTINE:NONE] since at the moment it is only going to generate a single bolt each time you use the reaction.
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.

skywerewolf

  • Bay Watcher
  • When in doubt, burn people!
    • View Profile
Re: Some simple modding help.
« Reply #3 on: January 22, 2012, 09:56:01 am »

thanks for the help, it worked.
Logged