Kulyok Posted December 27, 2006 Share Posted December 27, 2006 It happens in my games from time to time: the NPC whom I romance stops, his or her romance music starts to play, but - oops! - I've just given them an order, so they go and do it, and never give me the talk. Technically it looks like this: since the Global timer has expired, the variable is set to 10, but since Anomen was given an order, he doesn't talk right away - but the variable has already switched to 11! So the player is left without one of their romance talks. Or two, or more, if the player is fond of ordering party around at inappropriate times. I am not *absolutely* sure, but I've noticed that it doesn't seem to happen with plot-related dialogues: Jaheira always speaks in the Slums, or after Baron Ployer curses her, Anomen does not fail to speak, when Terl appears, and so on. So, I wonder: if, instead of setting all globals in the script, the lovetalks will look like IF ~Global("NPCRomance","LOCALS",10)~ NPCTalk10 SAY ~(something)~ IF ~~ THEN REPLY ~(something)~ DO ~SetGlobal("NPCRomance","LOCALS",11)~ GOTO NPCTalk10.1 - will it help? Link to comment
berelinde Posted December 27, 2006 Share Posted December 27, 2006 Do you intend this as something that would mod existing BioWare romances? That would involve doing something ugly to the existing script, though, wouldn't it? Link to comment
Kulyok Posted December 27, 2006 Author Share Posted December 27, 2006 No idea whether careful patching is possible for the Bioware ones, but I'd like to know. However, if what I suggest *is* a cure, then I'll at least recode Xan. Link to comment
berelinde Posted December 27, 2006 Share Posted December 27, 2006 I know it works, because I've been using it for before-rest talks, since I was having trouble getting the variable to advance across resting. I think Jastey did this for Ajantis's lovetalks. Link to comment
devSin Posted December 27, 2006 Share Posted December 27, 2006 It happens in my games from time to time: the NPC whom I romance stops, his or her romance music starts to play, but - oops! - I've just given them an order, so they go and do it, and never give me the talk.Doesn't it suck? It's one of those things that if you just think about it, you'd say "oh, that'll never happen," but it does. The coding for the romances is so complex, however, that I'd rather we didn't touch it at all. I think what you suggest probably would work, but it'd be a bitch to code and likely impossible to ever thoroughly test. Link to comment
Kulyok Posted December 27, 2006 Author Share Posted December 27, 2006 Okay, thank you very much. Problem explained. I recoded Xan, though - at least some improvement. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.