Jump to content
The Dark Mod Forums

Need scripting help: want to poison a barrel


Bikerdude

Recommended Posts

I thought I could use a method that I saw in another mission, but it wont work. Essentially what I want to do is as follows -

  1. I have a bear/wine barrel
  2. I have a poison vial with is in my inventory and can be dropped.
  3. I want to poison said barrel with the contents of the vial.

Any pointers and a simple script would be appreciated.

Link to comment
Share on other sites

Is there a reason you want a script instead of using the Objective system which does that directly? Also, what results from the poisoning?

 

This wiki article is more elaborate than what you need: http://wiki.thedarkmod.com/index.php?title=Objectives#Having_the_player_place_multiple_interchangeable_items_in_varied_places.

 

In your case, just one objective using "item is in location" will do.

 

At the poison barrel have a info_tdm_objective_location item where the poison needs to be placed by the player, it needs the spawnarg "objective_group" set to whatever you specify below, such as barrel_objective_location.

 

Set the objective: "let the target entity poison_name be at location 0 of barrel_objective_location"

 

If you want anything more to happen than just the objective completing when they place the poison there, use the target of the objective to trigger whatever (like func_remove the poison object).

"The measure of a man's character is what he would do if he knew he never would be found out."

- Baron Thomas Babington Macauley

Link to comment
Share on other sites

This was done in an FM already, there was a cauldron that you had to put an ingredient in. I think it was the one where you shoot a canon into a door to blast it open, is that Lich Queens' Demise?

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

This was done in an FM already, there was a cauldron that you had to put an ingredient in. I think it was the one where you shoot a canon into a door to blast it open, is that Lich Queens' Demise?

 

Yep you're right Lich Queens Demise was the FM that had that.

Link to comment
Share on other sites

Yep. Check LQD.

 

It was done with stim response system. There was a brush with a stim or response (and remember which way it was around). Then the object emitted complementary response or stim. Then, when the objects met, I triggered scripts that did stuff.

 

Multi-ingredient systems were done by simply having overlapping stim/response brushes.

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

No. The LQD method is

1) drop item to hands (frobber)

2) touch the location of interest with the item.

 

For a poison vial, it might look like you toss the whole bottle into the barrel. ;)

 

Why not use a solid poison item, like a cube of crystalline poison. something you quickly drop into the to-be-poisoned container.

Clipper

-The mapper's best friend.

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.

  • Recent Status Updates

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 2 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 5 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...