Jump to content
The Dark Mod Forums

Making a scroll activate something when it is picked up


Jesps

Recommended Posts

Hi.

I've been trying to make a scroll, that activates something when the player pickes it up. The target property seems to do nothing however.

 

Also, is it possible to make the player start reading the scroll as soon as he/she pickes it up?

 

Thanks in advance.

 

Jesps

Link to comment
Share on other sites

I've been trying to make a scroll, that activates something when the player pickes it up. The target property seems to do nothing however.

The current code does not activate the targets when a scroll is added to the inventory. However, you could set up a response to the frob stim on the scroll which fires an "effect_target". This should be a workaround.

 

Also, is it possible to make the player start reading the scroll as soon as he/she pickes it up?

No, this is not possible right now. It can be coded in rather easily, but that won't help you much, I'm afraid.

 

(I think) It could be hacked into the script code if you really need it for your specific map, but beware that any changes to Dark Mod scripts will result in a conflict when TDM will be released.

Link to comment
Share on other sites

I haven't tried any of this, but maybe you could have a "fake" scroll, which when frobbed activates like a readable that you don't pick up (thus you read it right there), and it also destroys itself, and also adds to your inventory a separate item (the real scroll)

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

Should these 2 features be added to a todo list?

 

Yeah file issues on the tracker please. We can always cross them off as "fix later" :)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

"Issues" should not be added to the bugtracker unless they are bugs, or features that we've agreed we want to implement. I'm not sure these qualify as either.

Link to comment
Share on other sites

Well I could be wrong, but I imagined triggering events on the acquisition of any object would be a commonly used feature. Like Indiana Jones taking the statue that causes the room to cave in.

 

If this hasn't been changed, then there should be a script fired when something is added or removed from the inventory. Don't know the name though, at the moment.

Gerhard

Link to comment
Share on other sites

If this hasn't been changed, then there should be a script fired when something is added or removed from the inventory. Don't know the name though, at the moment.

I just skimmed the code, and it seems to have been removed (if it was there at the first place - I don't recall removing such a script function call when I worked on the Inventory code).

 

Anyway, such an event sounds useful, so we should consider adding that.

Link to comment
Share on other sites

After thinking about it, it might be that I confused it, with the scriptevents triggered when the inventory selection changes. So when you scroll in the inventory you get some events, but this doesn't really help in this case. :)

I agree that this is definitely something that should be available.

Gerhard

Link to comment
Share on other sites

"Issues" should not be added to the bugtracker unless they are bugs, or features that we've agreed we want to implement. I'm not sure these qualify as either.

 

Of course "issues" should go only to the bug tracker if they are "bugs" or "feature requests". Doh! (This means my "issue" of not having enough coffee does not go to the bug tracker :).

 

Is my English really that bad that people misunderstand such basic intentions?

 

As for the issues, er bugs, er missing features at hand, they should be added, and if my internet wasn't flaky and my coffee not getting cold, I'd do it right now :P

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

greebo: Giving the scroll a trigger response worked rather well. Thanks :)

 

Komag: I tried something similar to that, but never got it to work. Also would that not 'close' the scroll if the player turns away from it? (like a normal stationary scroll)

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

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 0 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...