Jump to content
The Dark Mod Forums

Recommended Posts

Posted

Hi,

 

I'm currently working on a level but I'm stuck using the objective editor. Basically the player finds a scroll telling him to check a neighbours place for more information.

 

The problem I'm having is that when the player picks up the scroll the objective completes but to make a new objective appear and become visible to check out the neighbours place I can't trigger it by picking up the scroll.

 

So the player is just picking up a scroll to set visible the new objective so it would look like this:

 

1. Check the scroll by your door. COMPLETED AFTER PICKING IT UP.

2. Check out the neighbours place. NOW VISIBLE AFTER GETTING THE SCROLL.

 

Another thought is, is there anyway to make the first objective complete AFTER the player opens the scroll for viewing rather then when he has just picked it up? Any help would be appreciated.

 

By the way this Mod is excellent! I love the Thief series and you guys have really captured it. Keep up the great work!

Posted
The problem I'm having is that when the player picks up the scroll the objective completes but to make a new objective appear and become visible to check out the neighbours place I can't trigger it by picking up the scroll.

Picking up the scroll completes your objective, so you can add an entity to the "completion target" entry field. This entity will be triggered when the objective is done, i.e. the scroll is picked up. You can use something like tdm_target_setobjectivestate as target entity to enable a previously hidden objective.

 

Another thought is, is there anyway to make the first objective complete AFTER the player opens the scroll for viewing rather then when he has just picked it up? Any help would be appreciated.

This is something which doesn't work yet, but it has been asked for in the past (multiple times), so it might end up being available when TDM goes live.

Posted

Ok I'm doing a test level with the same scenario. For the objective I've added under 'completion target' the name of the tdm_target_setobjectivestate entity which is called 'getscroll'. After exiting the objective editor and then going back into it the entry has disappeared and keeps doing. What am I doing wrong? Here is my objective:

 

image1.JPG

 

Here the player is picking up a book that should trigger a new objective to pickup a scroll. The pickup scroll objective is the hidden one.

Posted
Ok I'm doing a test level with the same scenario. For the objective I've added under 'completion target' the name of the tdm_target_setobjectivestate entity which is called 'getscroll'. After exiting the objective editor and then going back into it the entry has disappeared and keeps doing. What am I doing wrong? Here is my objective:

 

Here the player is picking up a book that should trigger a new objective to pickup a scroll. The pickup scroll objective is the hidden one.

There's a chance you're running into a DarkRadiant bug - can somebody try to reproduce this error and/or file an issue report on the tracker at http://bugs.angua.at?

 

As a workaround you can try adding the spawnarg to the objectives entity yourself:

"objN_target_complete" "getscroll"

Where N is the number of your objective, 1 in your case.

Posted

I've tried adding the spawnarg myself to the 'target_tdm_addobjectives_1' entity but when I go into the game and pickup the book the game crashes to the main menu and in the console it says:

 

ERROR: idEvent::CopyArgs : Wrong number of args for 'activate' event.

Posted
I've tried adding the spawnarg myself to the 'target_tdm_addobjectives_1' entity but when I go into the game and pickup the book the game crashes to the main menu and in the console it says:

 

ERROR: idEvent::CopyArgs : Wrong number of args for 'activate' event.

Well, chances are that this feature hasn't been tested thoroughly... I'll file an internal issue report about this.

Posted

This has already been tracked

 

http://bugs.angua.at/view.php?id=1126

 

just hasn't been "gotten around to" yet.

|=-=------=-=|

happycheeze.deviantart.com

 

Moddb

 

Gamers Outreach, a nonprofit that uses videogames to raise money for chairty.

|=-=------=-=|

Posted

There is a way to work around that complete objective on reading not on frobbing if you feel adventurous. It should work but I've not tried it. We can give more details on each of the following stages if you want it (and I hope I've not missed anything!)

  1. Optionally create a trigger_once with a wait to delay the completion for a few seconds after reading
  2. Optionally create a trigger_once with a wait to delay the new objective appearing for a few seconds (so you don't get 'objective complete' and 'new objective' messages competing and confusing.)
  3. Set up the 'read scroll' objective as a custom objective instead of an 'acquire'.
  4. Create a target_tdm_setobjectivestate set to complete the custom objective when triggered.
  5. Create a target_tdm_setobjective_visibility set to make visible the new objective when triggered.
  6. Add to the scroll these key/value pairs:
    • scriptobject InvTriggerScript
    • target <delay trigger1>
    • target2 <delay trigger2>

[*]To delay trigger1 add target <target_tdm_setobjectivestate entity>

[*]To delay trigger2 add target <target_tdm_setobjective_visibility> (give it a longer wait delay too)

[*]Create a plain text file yourmapname.script and put it in the folder with your map.

[*]Paste into it...

//General purpose script object to trigger the targets of an object in the inventory.

#include "script/tdm_events.script"

object InvTriggerScript
{
void inventoryUse(entity userEntity, entity frobbedEntity, float buttonState);
};

void InvTriggerScript::inventoryUse(entity userEntity, entity frobbedEntity, float buttonState)
{
activateTargets(userEntity);
}

Note that this script will eventually be included in a future Dark Mod release so will probably conflict. At which point you should delete this script file and the scriptobject should still work.

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

    • JackFarmer

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
×
×
  • Create New...