Jump to content


Photo

Talk not happening -- Again!


  • Please log in to reply
2 replies to this topic

#1 Emzeror

Emzeror
  • Member
  • 65 posts

Posted 06 February 2008 - 12:03 PM

Charachters BAF file: eeXel.baf
//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.

Shadow of Asere - Mod under development. - More information coming.

"Tales and stories long forgotten has been remembered,
evil and chaos sealed away has been found,
beware mortal, the world will tremble once again."

-- Asere

#2 cmorgan

cmorgan
  • Modder
  • 2301 posts

Posted 06 February 2008 - 12:53 PM

Global("Lovetalk","LOCALS",2)~


might need to match up with

IncrementGlobal("eeXelLoveTalk","LOCALS",1)

:)



(you might also reduce the OR (1) Global("eeXelLoveTalk","LOCALS",2) by removing the OR(1) unless you are planning to expand the conditions)

Edited by cmorgan, 06 February 2008 - 12:56 PM.


#3 Emzeror

Emzeror
  • Member
  • 65 posts

Posted 06 February 2008 - 01:40 PM

... Will try that, might be good as you say yes :)

And yes I will expand it, I tested before with OR (50). But it won't matter if I do an or 100 or an or 1000 with that difference between varaibles. Stared myself blind I guess. Thanks :)
Shadow of Asere - Mod under development. - More information coming.

"Tales and stories long forgotten has been remembered,
evil and chaos sealed away has been found,
beware mortal, the world will tremble once again."

-- Asere