Jump to content
The Dark Mod Forums

Readables triggering an event


grayman

Recommended Posts

I don't recall any fan missions doing this, so I'm asking here.

 

I want to add an objective after the player reads a readable. I can't find anything in the wiki about this. I can activate a script when the readable is frobbed, but I don't know how to recognize the moment when the player turns away and the readable is dropped, which is when I want to add an objective.

 

How do I do this?

 

If there's a fan mission that does do this, just point me to it.

 

Thanks.

Edited by grayman
Link to comment
Share on other sites

This feature will be available in TDM 1.02 and DarkRadiant 1.3.0, where you can have readable-related objectives, which in turn can trigger stuff.

 

Meanwhile there is a workaround of using frob_peers and triggers, I think the third mission in NOAT uses a setup like that in the citywatch building.

Link to comment
Share on other sites

This feature will be available in TDM 1.02 and DarkRadiant 1.3.0, where you can have readable-related objectives, which in turn can trigger stuff.

 

Meanwhile there is a workaround of using frob_peers and triggers, I think the third mission in NOAT uses a setup like that in the citywatch building.

 

NOAT?

 

Thanks for adding this to TDM and DR.

 

 

 

Link to comment
Share on other sites

And let's pretend I wrote NHAT, and not NOAT, to my utter embarrassement. I shouldn't use phonetic abbreviations...

 

But you should really play that one, it's very enjoyable.

Link to comment
Share on other sites

And let's pretend I wrote NHAT, and not NOAT, to my utter embarrassement. I shouldn't use phonetic abbreviations...

 

But you should really play that one, it's very enjoyable.

 

 

Ah, but the H is silent, so you're still good.

 

 

Link to comment
Share on other sites

if you cant wait its

 

frob_action_script <name of script>

 

on any of the moveable readables, with a delay in the script if you dont want the objective to trigger as soon as you pick the readable up.

 

I want the objective to be added when the readable is dropped. That's the only moment when I can assume the player's read it.

Link to comment
Share on other sites

I want the objective to be added when the readable is dropped. That's the only moment when I can assume the player's read it.

 

Using an immobile readable is a bit more "stable". That way if the reader's read it, well, that's the only thing he can do with an immobile readable.

Make an invisible button and link your readale to it with "frob_peer" "whateverthebuttonsnameis", and have the button target a objective visibility entity. Not too hard - took me forever to figure it out though (anoot has like 5 of them)

Link to comment
Share on other sites

Using an immobile readable is a bit more "stable". That way if the reader's read it, well, that's the only thing he can do with an immobile readable.

Make an invisible button and link your readale to it with "frob_peer" "whateverthebuttonsnameis", and have the button target a objective visibility entity. Not too hard - took me forever to figure it out though (anoot has like 5 of them)

 

 

But doesn't that cause the objective to be satisfied when the player picks up the readable?

 

I don't want an "objective added" message popping up before the player has had a chance to read what it is he's got to go do.

 

I can't control whether the player actually reads the text, but at least if I wait until he drops it before adding the objective, it'll be the closest I can get to what happens in real life.

 

 

 

Link to comment
Share on other sites

I can't control whether the player actually reads the text, but at least if I wait until he drops it before adding the objective, it'll be the closest I can get to what happens in real life.

 

Do you mean literally "drop" or just "stop reading and put back in inventory"? The former might never happen if the player carries the message around.

Link to comment
Share on other sites

Do you mean literally "drop" or just "stop reading and put back in inventory"? The former might never happen if the player carries the message around.

 

I mean when the readable drops away as you back up or turn. I don't mean holding it and dropping it.

 

I don't intend for these things to be in the inventory, though they could be.

Link to comment
Share on other sites

I'm surprised there isn't more noise being made about this thread. This change will be a huge help to my FM, as a lot of it is based around covertly stashed notes, that for the sake of not having the note-placers head removed, are to be kept on the player. I tried placing a switch and frob_peer'ing it to the first readable, but picking it up doesnt trigger the event, resulting in me having to use openable objects (doors, little boxes) on my objectives to get the next objective showing.

 

It should also allow for more realistic readable based mission objectives, depending on how you choose to have the player interact with the environment. Personally, I can't wait. Unless something in my script/plan changes, this single change will affect (positively) perhaps 80% of my mission objectives.

Edited by Xarg

Intel Sandy Bridge i7 2600K @ 3.4ghz stock clocks
8gb Kingston 1600mhz CL8 XMP RAM stock frequency
Sapphire Radeon HD7870 2GB FLeX GHz Edition @ stock @ 1920x1080

Link to comment
Share on other sites

Yes, it will be a great new feature. I had to improvise two or three readables triggers in my own FM with a delay from when the readable was picked up. This assumed that the player would read the readable fairly soon after getting it and I estimated the time taken to read the clue or info whatever.

Link to comment
Share on other sites

TDM 1.02 should be ready before the end of May, together with DarkRadiant 1.3.0. Unless your fan missions are going to be released right now I'd suggest not implementing any trigger/frob_peer workarounds and wait for the next release.

Link to comment
Share on other sites

I only tried one frob_peer and it didn't work, the objective still works by opening the room door, as of now.. which would seem silly if you chose to chill in the room for a few minutes. I'll be removing the switch and the door triggers (and the other 2-3 objectives worth) in favour of the readables.

 

Great news! Less than 2 weeks away. Looking forwards to getting more work done on this without it feeling fake/overly complex.

Intel Sandy Bridge i7 2600K @ 3.4ghz stock clocks
8gb Kingston 1600mhz CL8 XMP RAM stock frequency
Sapphire Radeon HD7870 2GB FLeX GHz Edition @ stock @ 1920x1080

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

    • 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.
      · 2 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
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...