Author Topic: How to remove Journal (Quest)?  (Read 551 times)

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to remove Journal (Quest)?
« on: March 17, 2014, 04:54:36 pm »


               

I need a script to remove Journal quest.


 


--------------------------------------------------------------------------------


void SetGamePlotWhitJournal(object oPC, string sPlotName, int iPlotStatus, int iGold, int iXP, string sJournalID, int iJournalStatus)


--------------------------------------------------------------------------------


 


        SetGamePlotWhitJournal(oPC, "Plot_0126", 1, 0, 0, "florestchallenge", 1);

 

        SetGamePlotWhitJournal(oPC, "Plot_0126", 0, 0, 0, "florestchallenge", 0);

 

 


               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #1 on: March 17, 2014, 05:44:53 pm »


               

I am unable to write this for you at the moment, but it should be possible by - if nothing else - brute forcing the local variables set on the PC.


 


You should take a look at the journal functions on the wiki.


 


One of those functions is for Removing a JournalQuestEntry but I can't vouch for ti as I have not used it.



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #2 on: March 17, 2014, 05:45:37 pm »


               

yeah, thanks. it works well


 


    RemoveJournalQuestEntry("florestchallenge", GetPCSpeaker());



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #3 on: March 17, 2014, 05:48:02 pm »


               

I was trying to put the mission as level 0 thinking that it would be deleted, but it does not happen, we can only increase. To decrease, it is necessary to delete the mission (journal) and give a new one.



               
               

               
            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #4 on: March 17, 2014, 10:28:49 pm »


               

Are your journals persistent or is this an offline module?  


 


Because if a client logged out of the server, the journals would technically be removed anyway, yes?



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #5 on: March 18, 2014, 12:41:44 am »


               

yeah, Guile. it's a persistent module. I was trying to remove journal and plot, but I was removing only the plot. Now I can remove the journal to. The solution is RemoveJournalQuestEntry


 


it looks like this to remove absolutly plot and journal (talking with npc - action chat)



void main()
{
    SetLocalInt(GetPCSpeaker(), "your_variable_plot", 0);
    SetPersistentInt(GetPCSpeaker(), "your_variable_plot", 0);
    RemoveJournalQuestEntry("your_journal_tag", GetPCSpeaker());
}


               
               

               
            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #6 on: March 18, 2014, 06:29:02 am »


               

I believe Journal entries are best done without persistency, unless it's the main storyline, and that's because there is no need to modify those journal entries...


 


Also, as an added benefit, the players can run a quest multiple times if they like, and if it's a fun quest I'm sure they will want to...


 


If the Journal isn't persistent then it wouldn't be added again at login...


 


Likewise quest should look for an item in the PCs inventory (quest item) and remove it when the PC completes the quest, giving them the reward at the same time..


 


That's the way I would run it, because persistent journal entries really aren't always needed (or they would have coded them to say that way)...


               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #7 on: March 18, 2014, 08:33:58 am »


               Does anyone know a way of suppressing the feedback message "Your Journal has been updated"?

A long shot, I know - I've tried every which way, without success.

The reason for asking is that I sometimes use temporary journal entries in dialogue, to capture which option the player has chosen, so that only one action script is needed. This improves maintainability; also, proliferation of scripts degrades toolset performance. The temporary journal has a blank description, and is removed almost immediately, but I still get that message. Of course, I still want the message to appear when a regular journal is updated.

These days, for my own purposes, I use a different method. A standard set of scripts (option1, option2, option3...) captures which option was chosen, then transfers control to a common script. However, this method is less suitable for community projects, because the community is unlikely to agree on one standard set that everyone uses.
               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #8 on: March 18, 2014, 03:36:17 pm »


               

Proleric "Does anyone know a way of suppressing the feedback message: Your Journal has been updated.?"


 


I would like to know it and I would like to know to how to remove the message that appears in the end of level up saying how much HP the player got. I would like to remove it because if the HP are too low, the player can click cancel and try to get a better hp value.



               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #9 on: March 18, 2014, 04:43:57 pm »


               

"I would like to remove it because if the HP are too low, the player can click cancel and try to get a better hp value."


 


There's an option to hide this in nwnplayer.ini under Server Options.  However...I'd suggest you reconsider.  In PnP, a DM can make the monsters do less damage if the players get a bunch of bad HP rolls or adjust the enemies in some other way.  On a PW, not so much.  Would it make any sense for 3/4 BAB classes to have a 75% chance per level to get a BAB (meaning they could possibly get 20 BAB if they're super lucky or 0 BAB if they're horribly unlucky) rather than a static progression?



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #10 on: March 18, 2014, 05:07:48 pm »


               

Huh, how do I did not realize it?


 


Hide Hit Points Gained  =  0


Hide Hit Points Gained  =  1


 


I was looking to do this and it was so simple, kkkkk



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #11 on: March 18, 2014, 05:10:13 pm »


               

My suggestion for hitpoints is to eliminate uncertainty and give out max hitpoints per level. There is a setting for this as well.


 


You'll need to adjust encounters to deal with PCs having max hitpoints, but I think it is worth it. If this isn't your style of play, I don't mean to offend. I however can't stand randomness at this level so I've cut it all out on my own server.



               
               

               
            

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #12 on: March 18, 2014, 05:46:45 pm »


               

I also have it set to give max HP. If I remember right PnP is set to having players face 13-15 challenges equal to their level before leveling up (at least I think this is the average numbers, shoddy memory). That's with a party of 4 people. Most PW players face those threats alone, and far more than 13-15 encounters (some PW's have requirements over 100 encounters between levels). Frankly, Max HP is almost a must IMHO.



               
               

               
            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #13 on: March 18, 2014, 06:52:10 pm »


               


I also have it set to give max HP. If I remember right PnP is set to having players face 13-15 challenges equal to their level before leveling up (at least I think this is the average numbers, shoddy memory). That's with a party of 4 people. Most PW players face those threats alone, and far more than 13-15 encounters (some PW's have requirements over 100 encounters between levels). Frankly, Max HP is almost a must IMHO.




 


Yes, PnP XP is much higher than NWN, mainly because a battle can last a long time, and you are facing DM AI vs Computer AI, so monsters rarely act "stupid" & rarely do things that are irrational. '<img'>  (A huge difference)


               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
How to remove Journal (Quest)?
« Reply #14 on: March 18, 2014, 07:40:46 pm »


               

Interesting comments. My motivation for giving max HP is not for dealing with mechanics so much as to improve the player's sense of agency in the game. If you know the HP you will get when choosing a particular class, then that becomes a significant part of the choice you are making. If you are not sure how much HP you'll get with particular class, it becomes a gamble that is largely out of your hands. I prefer that most of the basic stats on the character sheet be within a player's control.


 


Also as a die hard board gamer, I hate dice. If you play a brilliant game, it should not come down to dice rolls. I still play Titan, a classic slugfest boardgame, now and then in an online version someone made called Collosus, but my hackles rise when improbable die rolls turn up to destroy my plans. And just because I have been an addict recently here's a screen shot of the board:


titan.jpg


Now if only I can get some people over to play a game of Caylus. Its been much too long since we hosted a game night at my place…. But then what if I could get people to play Amber Diceless Roleplaying? Woah…