Aller au contenu

Photo

Journal Catagory Endpoint - XP Award Question.


  • Veuillez vous connecter pour répondre
13 réponses à ce sujet

#1
Rogue World

Rogue World
  • Members
  • 46 messages
Its been years since I did anything with NWN2 and find myself a bit stuck with the Quest Journal.

I have a basic quest, with 6 stages. I get the journal to update, and progress through the stages just fine. (Via Script AddJournalQuestEntry function).

The trouble is that when the quest completes (the endpoint stage is reached) the XP amount is never awarded to the PC or party. The quest is listed as complete though, in the PC's journal.

Should I just award the XP via script? Or an I missing something?

Thanks.

#2
kevL

kevL
  • Members
  • 4 070 messages
yup


// Get the experience assigned in the journal editor for szPlotID.
int GetJournalQuestExperience(string szPlotID);


- then give it as befits

#3
Rogue World

Rogue World
  • Members
  • 46 messages

kevL wrote...

yup


// Get the experience assigned in the journal editor for szPlotID.
int GetJournalQuestExperience(string szPlotID);


- then give it as befits


Much appreciated.

#4
Morbane

Morbane
  • Members
  • 1 883 messages
Technically speaking you shouldnt have to do it manually; but without seeing the Journal, I cant say what went wrong.

Are you sure the xp value is showing in the actual final journal node ?
The event that triggers the final node is flagged with the correct node number?

#5
Rogue World

Rogue World
  • Members
  • 46 messages
Here is the Journal.a (Hope the link works)

http://roguedeus.com...82&d=1347573319

I have tried to make this work manually, in every way I can find. I even looked through the tool set tutorials. They all state that XP is awarded upon completion.

But not here.



Note: I entered the catagory. Entered the steps and ID's. And Selected the last step as the end. The catagory box selected itself. I did not do that manually.

The script assigns the Journal entry as nState = 50 (which is the EndPoint Entry ID).

The PC Journal updates like it should. But no experience is awarded. I have to do it through script.


#6
Lugaid of the Red Stripes

Lugaid of the Red Stripes
  • Members
  • 955 messages
There's a separate function to give quest xp, and another to give partial quest xp. A quest can have multiple endpoints, so you wouldn't want to automatically give the full amount just for reaching an endpoint, as some endpoints might deserve more reward than others.

#7
Rogue World

Rogue World
  • Members
  • 46 messages

Lugaid of the Red Stripes wrote...

There's a separate function to give quest xp, and another to give partial quest xp. A quest can have multiple endpoints, so you wouldn't want to automatically give the full amount just for reaching an endpoint, as some endpoints might deserve more reward than others.


I just wish it was spelled out a bit better. :)

Thanks again for everyones feedback.

#8
Guest_Iveforgotmypassword_*

Guest_Iveforgotmypassword_*
  • Guests
I always thought it was just as a reminder of how much to give which seemed a bit daft as I couldn't get it to work so never bother using it.

#9
Morbane

Morbane
  • Members
  • 1 883 messages
Just curious; what type of event are you trying to trigger the journal with Rouge?

#10
Rogue World

Rogue World
  • Members
  • 46 messages
OnDeath at the moment. (I am still filling in the content details)

But I will be using many different ones. Including OnAcquireItem, and of course, action calls in conversations.

#11
Morbane

Morbane
  • Members
  • 1 883 messages
OnDeath can be a tricky event to work with but in your case, with everything working but the xp, it is strange indeed.

I may be jinxing myself, but I have never had a problem with getting the journal xp reward to work, and I have used it in a wide range of circumstances.

Well, when building there are always exceptions that require a new approach - and thats why the award functions exist. . .

Modifié par Morbane, 14 septembre 2012 - 08:59 .


#12
bealzebub

bealzebub
  • Members
  • 352 messages
I've never gotten the quest xp to work, but it is so easy to award xp through what ever triggers the journal, that I never worried about it.

#13
Guest_Iveforgotmypassword_*

Guest_Iveforgotmypassword_*
  • Guests
Don't worry about it for on death just boost the challenge rating so it gives a large ammount automatically, make a test area line up a whole bunch of orcs give them all a different number for the challenge rating then beam in a copy of your PC at the level he/she will be at and take your pick which one suits what you want to give when they die.

Modifié par Iveforgotmypassword, 15 septembre 2012 - 08:48 .


#14
Morbane

Morbane
  • Members
  • 1 883 messages

Iveforgotmypassword wrote...

Don't worry about it for on death just boost the challenge rating so it gives a large ammount automatically, make a test area line up a whole bunch of orcs give them all a different number for the challenge rating then beam in a copy of your PC at the level he/she will be at and take your pick which one suits what you want to give when they die.


Good idea - I never seem to get consistent results with the challenge rating - this way is faster than mine B)