Jump to content

Photo

problem with journal (BGEE)


3 replies to this topic

#1 nowus777

nowus777
  • Members
  • 2 posts

Posted 07 September 2018 - 03:45 PM

Hi,

 

Ive got problem with notes in journal in my mod for BGEE. Notes are written in "journal part", not in "quest part". How can I change it? Where am i wrong?

 

In setup.tp2:

ADD_JOURNAL TITLE (@0) @1 @2 @3 USING ~mode\tra\%LANGUAGE%\NPCJ.tra~

 

In NPCJ.tra:

@0    = ~title~
@1    = ~bla bla1~
@2    = ~bla bla2~
@3    = ~bla bla3~

 

In NPCJ.d, for example:

IF~~THEN BEGIN SIMPLE1
SAY~qwertyyuui~
IF~~THEN DO~SetGlobal("nevermind","GLOBAL",2)~UNSOLVED_JOURNAL @1 EXIT
END

 

or

 

IF~~THEN BEGIN SIMPLE2
SAY~qwertyyufdgfghghgghhfui~
IF~~THEN DO~SetGlobal("neverminddfsdfgfg","GLOBAL",4) EraseJournalEntry(@1)~SOLVED_JOURNAL @3 EXIT
END

 

I will be very grateful for help :)

 



#2 Avenger

Avenger
  • Modders
  • 3806 posts
  • Gender:Male
  • Location:Hungary

Posted 07 September 2018 - 11:42 PM

Look for function buildQuestsTable() in bgee.lua.  In order to have a quest you need to call:

 

createQuest    ( 74295 )

 

to create a group, and 

 

createEntry    ( 74295, -1, 96383, {}, nil )
 
to create an entry.


#3 nowus777

nowus777
  • Members
  • 2 posts

Posted 08 September 2018 - 02:38 AM

Can you give me more details?  Im still learning ;)


Edited by nowus777, 08 September 2018 - 06:14 AM.


#4 Avenger

Avenger
  • Modders
  • 3806 posts
  • Gender:Male
  • Location:Hungary

Posted 11 September 2018 - 07:37 AM

Sadly, I can't tell you the magic weidu command of the day that would add a quest to bgee.lua. Because i've never gone too deep into weidu.

 

ADD_JOURNAL TITLE sounds like what you need. From its doc:

 

If the game is of an EE-type, this action patches BGEE.SQL or BGEE.LUA (depending on game version) with the provided quests and journal entries, so they will work with the EE-type journal system.

 

You probably need to check your weidu version (240 should be ok).

 

Then look at the changes it does to bgee.lua (it should go into the override). If it changed bgee.sql then you definitely have to upgrade (bgee.sql is an outdated file).


Edited by Avenger, 11 September 2018 - 07:39 AM.




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users