Author Topic: Quests only being done once?  (Read 2358 times)

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« on: August 17, 2010, 02:56:47 am »


               Okay this is my next problem.

I have been fiddling with quests here, am still a bit green in all this but I simply noticed that each quest I made except from the respawn quests can only be done once.... (also do PC's get XP even if they already did the quest,)

Is this a script problem?

What I also would like to know is, how do I set it up like this so even after reset the quests will be shown to the PC who already did this as done and will not be rewarded of XP once he/she has finished this quest?
               
               

               
            

Legacy_Psyammy

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Quests only being done once?
« Reply #1 on: August 17, 2010, 04:23:14 am »


               i am not sure i understand your question, do you want the players to be able to do the quest over and over again? or just the one time?

               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« Reply #2 on: August 17, 2010, 04:27:55 am »


               Well for what I can tell is that each quest can be done just once, and due that the module is a multiplayer its not very handy...

So the question would be: Can I change the setting of a quest so that every player can do it once and that once they finished it they will get no XP awarded for that quest when they do it again to help someone else?

So I am not sure if this is a scripting thing or simeply something to press a button or something.
               
               

               


                     Modifié par Who said that I, 17 août 2010 - 03:48 .
                     
                  


            

Legacy_Psyammy

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Quests only being done once?
« Reply #3 on: August 17, 2010, 04:48:10 am »


               the quest can only be done once by each player, if you make a second toon you should be able to do the quest again, i have also noticed that if your in a party the quest is given to all the party members but the reward (if it is an item like a weapon or armor) is only given to the player that finnishes the quest (the one that talks to an NPC) but all the party members will get the XP/gold reward and told that they finnished the quest.(this is useing the standard quest gen from the toolset and not messing with the scripts) for each player to get the quest they will have to leave party and each start the quest.



               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« Reply #4 on: August 17, 2010, 04:49:40 am »


               well that is just the thing, they only do it once for me



I make a toon and do the quest and then no one after me can do the quest again....
               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« Reply #5 on: August 17, 2010, 04:51:23 am »


               so how do I do that? cause I searched my butt off for a solution so now I have none left

....so if someone can help me how to do that I will be so happy!
               
               

               
            

Legacy_Psyammy

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Quests only being done once?
« Reply #6 on: August 17, 2010, 04:54:40 am »


               hmmm let me go mess with the toolset a bit, i have a simple quest that is just a drop off documents and the player is given a pair of boots but any player that has not done it can do it even if someone else has already done the quest, i used the quest gen and it was my first time ever makeing a quest, i will go see what i did.
               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« Reply #7 on: August 17, 2010, 05:11:38 am »


               okay well what happend here is that in order to make sure that the player could not redo the quest over and over again so I made a finish, so basically a text popup to make sure that the player cannot do the quest again. But then it also seems that the quest cannot be done by any other toon...
               
               

               
            

Legacy_Psyammy

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Quests only being done once?
« Reply #8 on: August 17, 2010, 05:11:52 am »


               ok this is just a simple drop off documents stright from the quest gen but it does what you want (at leats for me it dose) this all goes in a conversation
(NPC line) Hello, stranger.
(put in "text appears when")
int StartingConditional()
{
return GetLocalInt(OBJECT_SELF, "p000began") && !GetLocalInt(GetPCSpeaker(), "p000state");
}

(NPC line) Thank you for delivering the [Documents].

#include "nw_i0_plotwizard"
int StartingConditional()
{
int nShow = GetLocalInt(GetPCSpeaker(), "p000state_Receiver") >= 3;
if (nShow)
{
PWSetMinLocalIntPartyPCSpeaker("p000state_ScoutManden", 4);
PWSetMinLocalIntPartyPCSpeaker("p000state", 4);
}
return nShow;
}

(NPC line) Please give the [Documents] to [Receiver].

#include "nw_i0_plotwizard"
int StartingConditional()
{
int nShow = GetLocalInt(GetPCSpeaker(), "p000state_ScoutManden") >= 1;
if (nShow)
{
PWSetMinLocalIntPartyPCSpeaker("p000state_ScoutManden", 2);
PWSetMinLocalIntPartyPCSpeaker("p000state", 2);
}
return nShow;
}

(NPC line) I would like you to deliver these [Documents] to someone. Will you do it?

int StartingConditional()
{
int nShow = !GetLocalInt(OBJECT_SELF, "p000began");
return nShow;
}

(player) yes

(NPC line) here take the [documents] and give it to [Receiver]

(player) No

(NPC line) The fact that you are reading this is probably a bug in how this plot was designed. Please tell the module creator who you were talking to and what you did before seeing this message. (no script for this line)

hope this helps this is stright from the quest gen and will give any player that has not done the quest - the quest (this is working on my mod with np problems) the NPC line is the conversation the script under that go in "text appears when"
               
               

               


                     Modifié par Psyammy, 17 août 2010 - 04:27 .
                     
                  


            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« Reply #9 on: August 17, 2010, 05:16:40 am »


               hmmm well so far its similar to mines, will need to run some tests then, thanks for the help Psyammy! '<img'>
               
               

               
            

Legacy_Psyammy

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Quests only being done once?
« Reply #10 on: August 17, 2010, 05:24:11 am »


               now to finnish the quest (the second NPC you talk to to drop off the documents)



(NPC line) Hello, stranger.



int StartingConditional()

{

   return !GetLocalInt(GetPCSpeaker(), "p000state");

}



( NPC line)Thank you for giving this item to me.



include "nw_i0_plotwizard"

int StartingConditional()

{

   int nShow = GetLocalInt(GetPCSpeaker(), "p000state_Receiver") >= 3;

   if (nShow)

   {

       PWSetMinLocalIntPartyPCSpeaker("p000state_Receiver", 5);

       PWSetMinLocalIntPartyPCSpeaker("p000state", 5);

   }

   return nShow;

}



(NPC LINE) Do you have the item?



int StartingConditional()

{

   int nShow = GetLocalInt(GetPCSpeaker(), "p000state_ScoutManden") >= 1;

   return nShow;

}



(player) Yes, here it is.



int StartingConditional()

{

   int nShow = OBJECT_INVALID != GetItemPossessedBy(GetPCSpeaker(), "DeliveryItem");

   return nShow;

}



NPC line)Thank you for giving this item to me.



(Player) Sorry, I don't have it yet.



(NPC line) The fact that you are reading this is probably a bug in how this plot was designed. Please tell the module creator who you were talking to and what you did before seeing this message.
               
               

               
            

Legacy_Psyammy

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Quests only being done once?
« Reply #11 on: August 17, 2010, 05:46:09 am »


               i just did a few more test on my mod and now i seem to be in the same boat you are in....for some reason the quest is only given to the one toon and no one else (and it was working fine!!) sometimes i really hate the bloody toolset, i will see what i can figure out to fix this problem, and hopefully some one else with more scripting know how will hop on the bord soon (grrr i hate it when something works then dont for no reason)
               
               

               
            

Legacy_Psyammy

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Quests only being done once?
« Reply #12 on: August 17, 2010, 06:04:21 am »


               ok i found a work around, just use Lilac soul's script gen you can make one NPC give item (documents or what ever) and a different NPC to take the item you can also make the second NPC give you an reward item with this to (weapon armor)

http://nwvault.ign.c...&id=4683&id=625
               
               

               


                     Modifié par Psyammy, 17 août 2010 - 05:05 .
                     
                  


            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« Reply #13 on: August 17, 2010, 06:53:08 am »


               okay so basically you would need two NPC's for a quest in order to make it that all toons can do that quest?
               
               

               
            

Legacy_Psyammy

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Quests only being done once?
« Reply #14 on: August 17, 2010, 07:05:53 am »


               in the give documents quest yes, one to give you the documents and one to take them and reward you, i am just fixing mine up and i will post the fix for you after i am done and have tested it

PS grab a copy of lilac souls gen if you have not already, it does alot of stuff you might like