Jump to content

Interrupting Rest with a dream


Lauriel

Recommended Posts

I'd like to have a dream interrupt the PC's rest the first time the group rests after a specific event, but I don't know how to capture the event before it's finished ... or before it starts, would be better.  I've read up on PartyRested() but that's after the event, from what I've gathered.  Any pointers would bve appreciated.

Related question: Is DPlayer3.bcs always the PC's script?

Link to comment

Player1D.BCS is the "dreamscript", i.e. the player's script to be run when you hit the rest button or buy a room at the inn. PartyRested() is the "morning after" condition.

Link to comment

Caution with PartyRested(), though, as it only gives true if it is true right the instance before that script is called. If you want to make sure a dialogue triggers after a certain rest, it's sufficient to just set a varaible in the rest dialogue (before the rest triggered by e.g. the player1's dream script), then do RestParty()inside this script, and let the set variable trigger another dialogue instantly, which will play after wakeup.

Link to comment
7 hours ago, jastey said:

Caution with PartyRested(), though, as it only gives true if it is true right the instance before that script is called. If you want to make sure a dialogue triggers after a certain rest, it's sufficient to just set a varaible in the rest dialogue (before the rest triggered by e.g. the player1's dream script), then do RestParty()inside this script, and let the set variable trigger another dialogue instantly, which will play after wakeup.

I think I understand.  Thank you! :)

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

×
×
  • Create New...