Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Need Help With Adventure Mode Trophies  (Read 1554 times)

phalanks

  • Bay Watcher
    • View Profile
Need Help With Adventure Mode Trophies
« on: December 28, 2012, 10:34:30 pm »

I'm trying to mod some creatures to drop certain items when you kill them. For instance, a dwarf would always drop it's ear.

I would prefer for the items to have the creatures name associated with it, similar to if you just targeted it during combat and sliced it off. Eventually I would like to add custom trophies for the creatures,like a dwarf's beard, but I'm not quite there yet.

I think it will have something to do with the ITEMCORPSE token and maybe mixed with the CORPSEPIECE token but I'm not entirely sure how to use them exactly. This is what I have so far
Code: [Select]
[ITEMCORPSE:CORPSEPIECE:NO_SUBTYPE:INORGANIC:BRONZE]I based it on the bronze colossus entry which is why the subtype is bronze. I've tried other things, but none of them worked.

Any help you can offer would be appreciated as I'm new to modding DF.

Sorry if this isn't the right place for this.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #1 on: December 28, 2012, 10:37:50 pm »

Not without a huge amount of materials (one for each creature). CORPSEPIECE is bugged as fuck right now, I think. Also, the subtype isn't bronze, the material is.

phalanks

  • Bay Watcher
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #2 on: December 28, 2012, 10:53:57 pm »

So I would have to make custom items with custom materials for just the custom trophies, or would I need to do that to make it drop anything? Or just named items?

Sorry, I'm a little confused by your reply.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #3 on: December 28, 2012, 10:58:43 pm »

If you want them to drop a specific body part, you need a single custom item and a different custom item for each individual creature.

HOWEVER, I just realized that there may be a different way: make a template called, say, "ear template". Have the template have the STATE_NAME_ADJ of "ear". When a creature dies, have them leave behind an ITEMCORPSE of NONE:NONE:LOCAL_CREATURE_MAT:EAR.

phalanks

  • Bay Watcher
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #4 on: December 28, 2012, 11:12:46 pm »

Would it be possible to make the template be based on the type of the creature or would I need a separate template for each creature type? Like one for dwarfs and a separate one for humans. I expect I would need a different one for each creature type.

Is there a way to make it drop the corpse along with the "trophy?" Sorry for all these questions, I'm just trying to figure this stuff out.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #5 on: December 28, 2012, 11:44:46 pm »

Nope, you'd need only one.

Nope, no way to have the corpse too.

Nope, no need to apologize :P

phalanks

  • Bay Watcher
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #6 on: December 29, 2012, 12:44:59 am »

Hmmm, well after playing around with it, it seems it is not actually possible to do what I want to do. ITEMCORPSE won't allow you to have no item (the first argument) and besides I would probably want to keep the corpse anyway.

So alternatively, do you know if there is a way to make a corpse "attackable." For example, be able to chop off body parts after they've died. I'm thinking I can make a new body part that will act as a trophy, although this will be more work.

Thanks for your help so far!
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #7 on: December 29, 2012, 12:47:35 am »

Well, I do know that there is no way. Corpses are items.

P(ony)SI

  • Bay Watcher
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #8 on: December 29, 2012, 12:51:18 am »

Well, I do know that there is no way. Corpses are items.
Well...
Couldn't you just make a custom interaction that would allow you to raise corpses but make them ridiculously weak so they can't harm you and you can easily cut off body parts?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #9 on: December 29, 2012, 12:52:20 am »

Yep. Haha, workarounds!

phalanks

  • Bay Watcher
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #10 on: December 29, 2012, 12:55:28 am »

Or could I make all corpses butcherable, and make the trophy item something you get upon butchering?

I've tried making corpses butcherable before with no luck however.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #11 on: December 29, 2012, 12:56:41 am »

That's because you can't make all corpses butcherable in adventure mode.

phalanks

  • Bay Watcher
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #12 on: December 29, 2012, 12:59:52 am »

Curses! Everything I try to do is impossible  :P

Oh well thanks for the help, I guess I'll just have to wrestle them into submission and cut off an ear.
Logged

P(ony)SI

  • Bay Watcher
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #13 on: December 29, 2012, 01:04:13 am »

If you want, I could give you the interactions to make this shiz possible.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Need Help With Adventure Mode Trophies
« Reply #14 on: December 29, 2012, 01:06:26 am »

Curses! Everything I try to do is impossible  :P

Story of everyone's (not including me :P) life :P
Pages: [1] 2