//Check if Xelina matches IF Global("eeXelMatch","GLOBAL",0) Global("CheckeeXelMatch","GLOBAL",0) Gender(Player1,MALE) THEN RESPONSE #100 SetGlobal("CheckeeXelMatch","GLOBAL",1) SetGlobal("eeXelMatch","GLOBAL",1) SetGlobal("eeXelRomanceActive","GLOBAL",1) //If the romance is active or not, 0=No, 1=Yes, 2=Love, 3=Marriage, 4=Crashed SetGlobal("eeXelLoveTalk","LOCALS",1) SetGlobal("eeXelLove","LOCALS",1) //How much Xelina loves you RealSetGlobalTimer("eeXelRomance","GLOBAL",10) END //Showing next Love Talk IF InParty(Myself) RealGlobalTimerExpired("eeXelRomance","GLOBAL") Global("eeXelRomanceActive","GLOBAL",1) !AreaType(Dungeon) !StateCheck(Player1,CD_STATE_NONVALID) !StateCheck(Myself,CD_STATE_NONVALID) Detect(Player1) OR (1) Global("eeXelLoveTalk","LOCALS",1) THEN RESPONSE #100 IncrementGlobal("eeXelLoveTalk","LOCALS",1) Interact(Player1) END //Restting Love Talk IF InParty(Myself) RealGlobalTimerExpired("eeXelRomance","GLOBAL") Global("eeXelRomanceActive","GLOBAL",1) !AreaType(Dungeon) !StateCheck(Player1,CD_STATE_NONVALID) !StateCheck(Myself,CD_STATE_NONVALID) Detect(Player1) OR (1) Global("eeXelLoveTalk","LOCALS",2) THEN RESPONSE #100 RealSetGlobalTimer("eeXelRomance","GLOBAL",10) IncrementGlobal("eeXelLoveTalk","LOCALS",1) END
Charachters B file: BeeXel.d
BEGIN BeeXel IF ~Global("eeXelMatch","GLOBAL",1) OR(2) Global("eeXelRomanceActive","GLOBAL",1) Global("eeXelRomanceActive","GLOBAL",2) Global("Lovetalk","LOCALS",2)~ THEN BEGIN RomanceTalk1 SAY @0 ++ @1 GOTO RomanceTalk11a END IF ~~ THEN BEGIN RomanceTalk11a SAY @2 IF ~~ THEN EXIT END
I've saved the game so I could check the variables:
CheckeeXelMatch = 1
eeXelMatch = 1
eeXelRomance = 4833
eeXelRomanceActive = 1
So then I thought there was some problem with the "eeXelLoveTalk", but appereantly there wasn't because it is increasing all the time, ending up at "3". So I added more LoveTalks, just to see, finally it ended up on 99... So the LoveTalk is increasing, the timer is resetting, but no dialog appears.
I've mostly ripped straigth from already working projects and from BioWares ways of doing it. So I guess I am doing something serously wrong.
The DV is eeXel
Every file is compilling correctly. So what problems do I have?
Thanks in Advance.
Edited by Emzeror, 06 February 2008 - 12:04 PM.