Jump to content


Photo

Setting In-game timers


  • Please log in to reply
5 replies to this topic

#1 Sillara

Sillara

    He made me love him without looking at me.

  • Member
  • 537 posts

Posted 28 September 2004 - 03:04 PM

I am familiar with the code for setting a real-time timer:
RealSetGlobalTimer("whateverglobal","GLOBAL",1500) for instance.


What I do not know is the command for setting an IN-GAME timer. I want to time out a quest. That is, if you do not complete Yasraena's quest within three in-game days of receiving it, all the people involved will vanish. I know how to remove them from the game with the DestroySelf() command, but how do I set the timer?


Thanks in advance!

Sillara


(Yes, this means I am working on a new NPC! :D )
Check out my RPG forum!

#2 hlidskialf

hlidskialf

    Incarnation of the Eternal Ale Warrior

  • Modder
  • 2510 posts

Posted 28 September 2004 - 03:09 PM

As with most questions, answers are at IESDP.

The great wolf Fenrir gapes ever at the dwelling of the gods.


#3 Sillara

Sillara

    He made me love him without looking at me.

  • Member
  • 537 posts

Posted 28 September 2004 - 07:37 PM

I have IESDP and use it regularly. I must have expressed myself badly. What I meant was, what do I have to do to show that I want IN-GAME time to be the trigger, not real-life 1500 seconds or whatever? Would this work?

SetGlobalTimer("YasraenaQuest","GLOBAL","THREE_DAYS")

Or is it this?

SetGlobalTimer("YasraenaQuest","AR0300","THREE_DAYS")

Or is it something different again? Do I use 72_HOURS or what?

Thanks again!

Sillara
Check out my RPG forum!

#4 Sillara

Sillara

    He made me love him without looking at me.

  • Member
  • 537 posts

Posted 28 September 2004 - 08:32 PM

Okay, I think I have it. (InfExp!) But how do I turn off the timer? I mean, once the quest is completed, I don't want Yasraena to just leave or whatever because she thinks the quest is over.

Sillara
Check out my RPG forum!

#5 Stone Wolf

Stone Wolf
  • Member
  • 1672 posts

Posted 28 September 2004 - 09:56 PM

Just set a global that tells the game that the quest is completed (or at least at the point where she won't leave). Add a trigger that checks to make sure that global isn't set in the block that tells her to leave:

!Global(S:Name*,S:Area*,I:Value*)

That way the NPC will only leave if the timer has expired AND the quest isn't done. No need to turn off the timer. :)

#6 hlidskialf

hlidskialf

    Incarnation of the Eternal Ale Warrior

  • Modder
  • 2510 posts

Posted 28 September 2004 - 11:21 PM

I have IESDP and use it regularly. I must have expressed myself badly. What I meant was, what do I have to do to show that I want IN-GAME time to be the trigger, not real-life 1500 seconds or whatever?

Again, check IESDP. This link especially. -_-

The great wolf Fenrir gapes ever at the dwelling of the gods.