Author Topic: Romance Scripting  (Read 10053 times)

0 Members and 1 Guest are viewing this topic.

Offline Raven

  • Miriam's sane half
  • Administrator
  • Level 5
  • *****
  • Posts: 3603
  • Karma: +118/-33
  • Gender: Female
  • Like Awesome!
    • View Profile
    • Vampire Tales
Romance Scripting
« on: July 27, 2012, 05:42:05 PM »
So how does one go about scripting for romances?
Per me si va nella citta dolente.
Per me si va nell eterno dolore.
Per me si va tra la perduta gente...
Lasciate ogni speranza perduta che'entrate!

Offline Lord-Jyssev

  • Modders
  • Level 1
  • *****
  • Posts: 102
  • Karma: +4/-0
  • Gender: Male
    • View Profile
Re: Romance Scripting
« Reply #1 on: July 28, 2012, 10:05:05 PM »
If you haven't already, I would check some of the pre-existing tutorials. I haven't personally undertaken a romance, but I've learned most of what I know from the ones on the SHS index.

Tutorial Index

Romance Specific

As far as I understand it, it is quite similar to PC-NPC banter, except there is a lot more variable checking.

Offline Raven

  • Miriam's sane half
  • Administrator
  • Level 5
  • *****
  • Posts: 3603
  • Karma: +118/-33
  • Gender: Female
  • Like Awesome!
    • View Profile
    • Vampire Tales
Re: Romance Scripting
« Reply #2 on: August 01, 2012, 03:20:21 PM »
Scripting is so complex. :\
Per me si va nella citta dolente.
Per me si va nell eterno dolore.
Per me si va tra la perduta gente...
Lasciate ogni speranza perduta che'entrate!

Offline Sir_Carnifex

  • Scourge of Kobolds
  • Modders
  • Level 1
  • *****
  • Posts: 200
  • Karma: +8/-0
  • Scourge of Kobolds
    • View Profile
Re: Romance Scripting
« Reply #3 on: August 14, 2012, 12:05:04 PM »
I'd assume that "romance" scripting actually is any scripting that takes the form of NPC-initiated dialogue based on timers, correct?
In progress - Armin Kasun - a mercenary NPC for BG2

On hold - Halbo NPC for BG2, the evil halfling thief, food critic, and party troublemaker

Offline Lord-Jyssev

  • Modders
  • Level 1
  • *****
  • Posts: 102
  • Karma: +4/-0
  • Gender: Male
    • View Profile
Re: Romance Scripting
« Reply #4 on: August 14, 2012, 06:30:32 PM »
Banters are triggered by timers too though, no?

Offline Sir_Carnifex

  • Scourge of Kobolds
  • Modders
  • Level 1
  • *****
  • Posts: 200
  • Karma: +8/-0
  • Scourge of Kobolds
    • View Profile
Re: Romance Scripting
« Reply #5 on: August 14, 2012, 07:23:29 PM »
Banters are triggered by timers too though, no?

The majority of them are in the banter file which is run, I believe, separately and includes all banters in the game.   You don't have to mess with a timer when doing those because the game has the timer built-in.   Romances (or PC/NPC conversations) are separate from that and you'd have to include your own timer.   Now, I'm not sure, but maybe it's possible to run an NPC/PC conversation via the banter so he'll "banter" with you, just like with the other NPCs on the same timer.  I don't think that would be a very ideal thing, though.
In progress - Armin Kasun - a mercenary NPC for BG2

On hold - Halbo NPC for BG2, the evil halfling thief, food critic, and party troublemaker

Offline Sir_Carnifex

  • Scourge of Kobolds
  • Modders
  • Level 1
  • *****
  • Posts: 200
  • Karma: +8/-0
  • Scourge of Kobolds
    • View Profile
Re: Romance Scripting
« Reply #6 on: August 17, 2012, 11:21:30 PM »
Ever get it working, Raven?  I thought it would be complex, but then I took a look at the coding of another mod and it really seems quite simple now that I look at it again.  I'm going to be doing my own test of it soon (I hope) to see if I really grasp it or not.  Mainly it just looks like adding lots of variables and the use of a timer.   Writing everything is much more of a chore, I think, although I'll be able to tell that for sure once I actually TRY it.
In progress - Armin Kasun - a mercenary NPC for BG2

On hold - Halbo NPC for BG2, the evil halfling thief, food critic, and party troublemaker

Offline Raven

  • Miriam's sane half
  • Administrator
  • Level 5
  • *****
  • Posts: 3603
  • Karma: +118/-33
  • Gender: Female
  • Like Awesome!
    • View Profile
    • Vampire Tales
Re: Romance Scripting
« Reply #7 on: January 01, 2013, 09:14:51 PM »
No, I haven't got all that much written. :\
Per me si va nella citta dolente.
Per me si va nell eterno dolore.
Per me si va tra la perduta gente...
Lasciate ogni speranza perduta che'entrate!