Author Topic: Dream file?  (Read 1174 times)

Offline neriana

  • Planewalker
  • *****
  • Posts: 585
  • Gender: Female
    • Darien NPC for BG2
Dream file?
« on: November 20, 2004, 09:53:37 PM »
"J#VondoD is actually the dream script file.  This acts as any normal script, only it basically adds the condition "the player has just clicked the Sleep button" to all trigger blocks." -- Ghreyfain's NPC tutorial.

So could one use this file for NPC romancing while camping, or any kind of "camp" conversation, and it would only trigger when the variables in the .d file had been met and after the player had clicked that button? Are there Issues with doing this?
The color of infinity inside an empty glass.

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: Dream file?
« Reply #1 on: November 20, 2004, 10:21:59 PM »
So could one use this file for NPC romancing while camping, or any kind of "camp" conversation, and it would only trigger when the variables in the .d file had been met and after the player had clicked that button? Are there Issues with doing this?

Any kind of camping conversation, or for setting up an action you want to happen upon waking up. (For instance, I want something to happen on wake, so in the dreamscript I set DoThisThing=1, and then in the character's main script I have "If DoThisThing=1, then set DoThisThing=2 and initiate dialogue." That way, when they wake up, they see that DoThisThing=1 and off we go.)

See Banter Packs and Keto for examples of using dreamscripts. Kelsey-TOB as well, for the Anomen seduction sequence. Remember that when the dreamscript kicks in, it interrupts the actual resting portion, so you need to call RestParty() manually when your script action or ensuing dialogue has finished.

I have occasionally heard of problems that crop up when the game tries to do multiple things on rest at once, like run a dreamscript element and summon the guard to prevent you from sleeping in the city streets, but that's not a mod problem as such.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline neriana

  • Planewalker
  • *****
  • Posts: 585
  • Gender: Female
    • Darien NPC for BG2
Re: Dream file?
« Reply #2 on: November 21, 2004, 01:06:42 AM »
Awesome, thanks.
The color of infinity inside an empty glass.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: