Issue298

Title time trigger dialogs
Priority feature Status resolved
Assigned To Keywords
Linked issues Watchers

Submitted on 2011-07-24 19h07 by tracker_migration, last changed by jesusalva.

Messages
Author: tracker_migration Date: 2010-08-12   18h20
Submitted by matthiaskrgr
I think it should be possible to time-trigger dialogs.
After the  everything but the army snacks please   quest for example, it would be possible to make Michelangelo responnse to Tux that the Red Guard ate all food after around 10 minutes.
Afaik, currently Michelangelo now says that he will prepare food now, when I talk to him directly after quitting the dialog again, he already says that the RG ate everything. The time-trigger-function could make it possible to make a break of 10 minutes or so here.
Author: tracker_migration Date: 2010-09-26   05h45
Posted by salimiles
I think this (and being able to access bot states remotely) will allow us to create much more interactive NPCs.

The most useful way would be if we could set a block of lua code to execute at a later game-time.

A less useful way would be to make cookies with attached integers.
Author: tracker_migration Date: 2011-03-21   11h15
Posted by ahuillet
"cookise with attached integers" that would be a variable.

I have in my plans to investigate whether we can use - and save - plain Lua variables instead of cookies. Along with a game_time() Lua function this would make it possible to do what this ticket requests, and much more.
Author: ahuillet Date: 2011-07-28   06h31
All that's needed is a game_time() Lua function (pretty trivial) and some users.
This is an easy task.
Author: jesusalva Date: 2016-08-09   01h05
We have various patches on RB to treat this.

The original issue (Michelangelo's quest) was solved (not sure when) using
game_time() function

To get ingame date-tracking Xenux did /r/1534 and /r/1540 but in the end /r/2001
was commited -- we can use game_date() function

The only RB thread still open which must be done in order to close this bug
request, at least in my opinion, is /r/1961 which add a runtime for timed
events. It's pending a better implementation (dynarray?) as of August 8th, 2016.
Author: jesusalva Date: 2017-04-02   02h55
Marking as resolved because original suggested implementation is already on master.

/r/1961 which add a runtime for timed events should have another issue.
Please re-open if you believe this issue have not been solved.
History
Date User Action Args
2017-04-02 02:55:29jesusalvasetstatus: open -> resolved
messages: + msg3457
2016-08-09 01:05:40jesusalvasetmessages: + msg3341
2011-07-28 06:31:31ahuilletsetpriority: bug -> feature
messages: + msg1354
2011-07-24 19:07:55tracker_migrationcreate