Time delayed events never fire?

Discussion in 'The Temple of Elemental Evil' started by Spellslinger, Jul 19, 2006.

Remove all ads!
  1. Spellslinger

    Spellslinger Established Member

    Joined:
    Jul 14, 2006
    Messages:
    158
    Likes Received:
    0
    I've got a problem with those time delayed rewards, like getting to shop from the woodcutter and receiving the Thrommel award. I've passed literally 1000s of days but these events just don't trigger. Any ideas on that?

    BTW, I noticed that the relevant script function has a double: add_timevent and add_timeevent. Is there any difference between those? And what unit is the time delay in?
     
  2. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,009
    Likes Received:
    254
    Yeah, it didn't trigger for me on my last run though either. IIRC passing time doesn't advance the time event, normal game time, and resting do though.
     
  3. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    Resting can be hit or miss on causing time events to be advanced as well. I have had several games where the woodcutters reward has never shown up as well.

    I'm not sure if the two commands are the same, but they appear to be. I have only used one of them in my own code. The unit of time in them is milliseconds (1/1000th of a second).
     
  4. Noran the Axe

    Noran the Axe Member

    Joined:
    Mar 30, 2006
    Messages:
    76
    Likes Received:
    0
    The best way that I've found to advance time for Thrommel's rewards (and others) is to simply keep walking between Homlet and Nulb repeatedly.
     
  5. Fahrenheit

    Fahrenheit Pyromancer

    Joined:
    Jul 7, 2006
    Messages:
    19
    Likes Received:
    0
    Shop from the woodcutter?

    Never heard of that one. Heh, guess I should go back and talk to him every once in a while after turning in the lowbie "kill spiders" quest.
     
  6. krunch

    krunch moving on in life

    Joined:
    Aug 9, 2005
    Messages:
    3,280
    Likes Received:
    0
    fyi - Just in case you did not know this, you have to complete the quest to cure Lil' Amii, first.
     
  7. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    Apologies for the threadomancy. I've been looking into this issue lately, since I wanted to script a timed revenge encounter for CE parties, and this thread seemed the most relevant.

    What I've gathered from my investigation into it is that the timed events fire if and only if
    (1) The specified amount of time has passed
    (2) You've returned to the map where the timevent_add script originated (even if the original "attachee" is gone, dead or destroyed)

    I suspect that if you didn't get the woodcutter shop order or the answer from his relative, it's because you talked to him about it inside his house, and then when you tried talking to him again, after passing some time, it was outside - so the timed event didn't go off, despite passing the requisite amount of time. Likewise with Thrommel, my guess is that you dropped him off somewhere you never returned to, and thus the give_reward script never fired.

    Of course, another possibility is that the game simply forgets about the time event after some time or something to that effect - I certainly hope that is not the case. It's a lot more difficult to test this as well.

    Anyway, I've run a few tests with Thrommel, the woodcutter and the CE revenge script I've put together, and they seemed to work fine once the above two conditions were met. It also seems that the time doesn't have to be passed in the same map as the timevent_add script, BTW (also tested this).

    As for timevent vs. timeevent, I've seen timeevent_add used in the dimension door script, where it was remarked that the script runs in real time. Perhaps timevent only counts ingame time? (i.e. it wouldn't fire because time is frozen in turn based mode) Needs some testing I guess.
     
  8. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    I never talk to the woodcutter in his house, and I have only had him hear back from his relative once. I have received Thrommel's reward before ever setting foot back on the map he left my party on.

    It really does seem to be a case of time events with long delays being forgotten. I am working on a work around for it.

    As for timeevent vs timevet, in game time does pass in turn based mode. The only time it doesn't is during dialog.
     
  9. void

    void Member

    Joined:
    Oct 22, 2007
    Messages:
    59
    Likes Received:
    0
    Has anything changed with delayed deliveries?
    I have never received anything from that laying prince. Recently I have given 150,000 GP to woodcutter who promised to sell me amulet. It was over a week ago. I am a Lawfull character and I feel it is getting the highest time to punish him for this fraud.
     
  10. Zebedee

    Zebedee Veteran Member Veteran

    Joined:
    Apr 2, 2005
    Messages:
    1,755
    Likes Received:
    0
    They do fire. Try spending a week or two travelling on the world map before returning to the woodcutter. That usually does the trick.
     
  11. maggit

    maggit Zombie RipTorn Wonka

    Joined:
    Oct 20, 2005
    Messages:
    1,945
    Likes Received:
    0
    The trick is you need to wait the week and change the map before you can receive the stuff.
     
  12. Zebedee

    Zebedee Veteran Member Veteran

    Joined:
    Apr 2, 2005
    Messages:
    1,755
    Likes Received:
    0
    True. Isn't there also something about the worldmap which makes time change slightly differently for these delayed events though maggit? Seem to recall Blue mentioning something about it in IRC but my memory could be wrong and it was a long time ago, before he'd finished investigating this fully.
     
  13. maggit

    maggit Zombie RipTorn Wonka

    Joined:
    Oct 20, 2005
    Messages:
    1,945
    Likes Received:
    0
    Mmm... Sorry but I have no idea how they work with the worldmap Zeb. :(
     
  14. Zebedee

    Zebedee Veteran Member Veteran

    Joined:
    Apr 2, 2005
    Messages:
    1,755
    Likes Received:
    0
    No worries Maggit - I'm up the foothills of my ignorance and only going on half-recollected IRC conversations with Ruf and Blue. :writersbl
     
  15. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,740
    Likes Received:
    374
    Traditionally, going about on the worldmap took time and that was necessary to get these timed events to fire (just going somewhere and sleeping for a year didn't do it).

    Blue's new scripts are a bit different, I think. I used one with the Blacksmith in KotB so he takes the full week to make dragonhide armour - I tested it yesterday (while working on that damn Blacksmith's bug) and it was fine, I just went into his shop (ie another map as Maggit said) and pressed pass time for 8 days. Worked a treat. I don't know the woodcutter's thing is identical, but it's based on the same premise and should certainly work.
     
Our Host!