Jump to content
The Dark Mod Forums

Interesting problem with custom inventory items


kingsal
 Share

Recommended Posts

Hello!

 

 

I am creating a scenario in which the player has an objective to pour a vial of laxative into a pot of soup.

 

Currently, I have the bottle of laxative set up as a custom inventory key and the pot of soup as a locked mover_button.

 

Essentially when the player "unlocks" the pot of soup with the laxative the change objective fires and a no frob volume prevents the player from interacting with the pot. The laxative "key" remains in the inventory.

 

This is obviously pretty messy. What I eventually would like to have is a custom inventory item that when frobbed on a particular item in the world (in this case the pot of soup) it fires its targets and removes the inventory item and/or reduces its count. Similar to a custom weapon.

I tried using the func_itemremover to remove the laxative "key" but it doesn't seem to work when I trigger it.

 

Any suggestions or links to information on this would be incredible helpful as I am pretty novice to TDM.

Thanks!

Link to comment
Share on other sites

I've done such a thing in Old Habits 1. Check for the generator in the basement.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

I tried using the func_itemremover to remove the laxative "key" but it doesn't seem to work when I trigger it.

 

func_itemremover is known to be broken. I plan to fix it for 2.03 if that helps.

 

If Obs' solution doesn't fit your setup for whatever reason let me know and I'll send you a 5-line script that'll fix it up for you in the meantime. The script method doesn't need ingenious re-use of doors and keys, you just add a frob_action_script to your bowl which checks whether the current inventory item is the vial, and if so, it would tick the objective and remove the vial. I have one already written that would do exactly what you want if you need it, I just don't have it with me right now on this computer.

 

Cool scenario by the way :)

Link to comment
Share on other sites

LOL love the idea of the laxative. Can't wait to play it. lol

I have an eclectic YouTube channel making videos on a variety of games. Come and have look here:

https://www.youtube.com/c/NeonsStyleHD

 

Dark Mod Missions: Briarwood Manor - available here or in game

http://forums.thedarkmod.com/topic/18980-fan-mission-briarwood-manor-by-neonsstyle-first-mission-6082017-update-16/

 

 

Link to comment
Share on other sites

Thanks Guys!

 

Obs- I am playing through your map right now. Awesome work btw. I love the mood/ pacing and how you slowly introduce the player to world through readables. Placing them directly on doors is super effective. Once I've found the generator and understand what you've set up. I'll get back to you.

 

SteveL- Thanks! Would you mind sending that over? It would be cool to look at in addition to Obs solution. Much appreciated!

 

Venus- Me too! haha. I am still pretty earlier in the process. I am just blocking out my map and trying to solve all of my necessary objective situations as well as getting the general flow and feel down.

 

About the map: light spoilers that will probably change anyway:

I am attempting to developing a combined city/ mansion map. My temporary primary objective is to make your way into the wealthy district, steal a costume and party invitation from a nobleman, and take his place at the event (probably going to be mission #2). The idea being you need to give him an "excuse" not to show up. That's where the laxative or something comes in!

 

I have included some very early screenshots that are pretty spoiler free.

Image 1: An optional "target of opportunity" tavern in which the player must deal with a patron and bartender while other patrons regular visit the tavern as stops on their patrols.

Image 2: A gatehouse to the wealthy district in which the player must find a way to lower the drawbridge.

Image 3: Another "target of opportunity" where the player breaks into a black market inventor's shop to gather supplies. The player encounters several security measures, one of which is an electrified floor. Probably mandatory on hard.

 

I have some level design experience, but so far TDM has been great to work with! Thanks to the strong community. :)

post-35059-0-34690200-1412282664_thumb.jpg

  • Like 4
Link to comment
Share on other sites

The basic light color and texture choice is fine, but there is definetely a lack of detail. But maybe you did not start with this, so don't take this as criticism.

 

Regarding your objectives. I've worked on a system that allows a Hitman like gameplay, so that the player is threated as a friend as long as he does not do anything bad. This may suit your mission. Didn't worked on it for a while now, but when the time comes where your mapping is mostly finished and you are heading to establish the gameplay, I will happely help you setting it up.

 

Good luck with your project. :)

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

Obs- Great! Yeah I would love to see what you've done there. I have something temporarily set up, but I'll ping you when the time comes. I agree, the map has very little detail. I'll commit to that once I've blocked everything out. This way I'll prevent a lot of art re-work if something changes.

 

Stumpy- Hello! I do have an objective attached to it. I did try something where the player removed the vial and drops it into the pot and once the item is within that volume, it fired the objective.. This solution felt pretty immersive but created some problems in that I don't use that convention anywhere else. IMHO, It seems to be more effective to have pot high-light and the player "unlocks" it with a custom inventory item "the laxative". Did I explain that right? Sorry I might be confused about what you're suggesting, haha.

Link to comment
Share on other sites

Another question I came across:

 

I wanted to have anAI pick up the wine bottle (formerly the pot) and drink from it after the player puts the laxative in it.

Currently I have the AI move to the bottle location and play the bottle_pickup animation which automatically picks up the wine bottle. However, the AI sits during this animation which looks pretty funny.

 

Is there a way to play the standing animation use_right hand and then attach the wine bottle in the same fashion as bottle_pickup would? So the AI walks up to the bottle, plays use right hand, and the bottle attaches naturally?

 

Thanks for the help!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recent Status Updates

    • duzenko

      Please, can we finally group the missions by year in the game menu?
      · 3 replies
    • duzenko

      I vaguely recall someone recently complained about two-sided materials (curtains?) not getting lighting from both sides
      I just found a piece of code that's supposed to do just that
      Where was that discussed? (@nbohr1more?)
      · 8 replies
    • Xolvix

      I still play classic Doom (albeit with user-made mods and maps rather than the original campaign) on a regular basis. A game from the early 90's which has still got a healthy following in 2022. Pretty amazing.
      · 3 replies
    • Nort

      I'm beginning to understand why people who aren't into social clubbing "don't last long" on this project, and why it's so full of holes. When moderators are siding with bullies, by closing down threads that they derail, then I start to wonder if I should support the platform to begin with.
      I'm sure that the core development is solid, but when you're constantly tone policed and bullied, and moderators are playing into it too, then the project will just drive away talent, and replace it with socialites instead. ...and without talent, you only end up with a small skeleton crew trying to do everything themselves.
      ...so Dragofer and Airship Ballet, and all you other socialites, you win. From now on I'll just keep to myself. You'll never be able to do my work, but at least you'll be happy together, and that's what matters to you.
       
      Update
      Actually, I have to revise my statement:
      I actually messaged greebo - the top dog, I gather - about nbohr1more's outburst of insanity below, and since I haven't even heard back from him, I just have to assume that there's not a single core programmer here, who's not backing nbohr's threats. ...and that's bad.
      ...so if you're a newbie reading this, or an honest soul like ZergRush, then just slowly back out of these forums, run, and don't look back. This is nothing more than a cult posing as a game development project, using Thief and IDTech4 to sucker hopefuls in, to do work for them, while trying to cajole them into something going on behind the scenes, which apparently - according to nbohr - is something that should be hidden from the state. These people aren't programmers - they don't even understand things like how to fix the simplest bugs. All they have, is an engine, and an IP, and some sort of fascist social cult. There was some other project I saw being made in the Unreal Engine. Try joining that project. ...or start a project of your own. Anything but this asylum.
      Hopefully that was "divisive" enough for a final post, because at this point I really want people to leave this place. This project is, on a management level, just awful garbage, run by garbage people, apparently from the top down, and I'm just glad that they have a garbage place to stay, together, and hopefully forever.
      Nort
      · 9 replies
    • The Black Arrow  »  Araneidae

      A spidey! I love spideys 🕷️
      · 0 replies
×
×
  • Create New...