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

Legacy_Who said that I

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


               okay got another problem here (sorry ain't that smart with these kinda stuff XD)

I am now on IC1, put it on action taken....now it doesnt compile...saying something like: NO FUNCTION MAIN SCRIPT



what did I do wrong this time?
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
Quests only being done once?
« Reply #31 on: August 21, 2010, 10:01:48 am »


               That is also a starting conditional script. In a conversation those are used in the TextAppearsWhen tabs. So the text will "start" based on a "condition". Just look at it that way. : )
               
               

               


                     Modifié par GhostOfGod, 21 août 2010 - 09:02 .
                     
                  


            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« Reply #32 on: August 21, 2010, 01:44:56 pm »


               oh okay thanks! Sorry am really learning all this still. You relly helped me a lot ghost you rockerdirock!
               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« Reply #33 on: August 22, 2010, 07:06:34 am »


               Still having trouble with IC1....seems that it cannot find a wolfpelt.... It says

if (GetItemPossessedBy(oPC, "WOLF_PELT") != OBJECT_INVALID) return FALSE; <- it said that this line was a variable defined without a typ.

               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
Quests only being done once?
« Reply #34 on: August 22, 2010, 09:58:59 am »


               Sorry. That one was a copy/paste mistake on my part. Forgot to add a line. It should look like this:

int StartingConditional()
{
object oPC = GetPCSpeaker();
if (GetItemPossessedBy(oPC, "WOLF_PELT") != OBJECT_INVALID) return FALSE;
return TRUE;
}
               
               

               


                     Modifié par GhostOfGod, 22 août 2010 - 09:00 .
                     
                  


            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« Reply #35 on: August 22, 2010, 12:10:25 pm »


               okay maybe the pc just doesn't like me but again it says error in REW1

so this is the line that seems to be giving the error:

object oItemTake = GetItemPossessedBy(oPC, "WOLF_PELT); <- makes it say: UNTERMINATED STRING CONSTANT.



(put it on action taken)
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Quests only being done once?
« Reply #36 on: August 22, 2010, 12:43:15 pm »


               object oItemTake = GetItemPossessedBy(oPC, "WOLF_PELT); <- makes it say: UNTERMINATED STRING CONSTANT.


 to


object oItemTake = GetItemPossessedBy(oPC, "WOLF_PELT");
               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« Reply #37 on: August 22, 2010, 03:29:50 pm »


               okay now this is the "error" in the script....

 DestoryObject(oItemTake, 0.0); <- Undefined Identifier
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Quests only being done once?
« Reply #38 on: August 22, 2010, 04:01:35 pm »


               DestroyObject   not   DestoryObject
               
               

               
            

Legacy_Who said that I

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


               object oItemTake = GetItemPossessedBy(oPC, "WOLF_PELT); <- Error UNtermined String constant.



....have no clue what to do with this...
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Quests only being done once?
« Reply #40 on: August 23, 2010, 05:01:48 am »


               look up about 3 posts.  It is missing its closing quote  "



Lightfoot8 wrote...

object oItemTake = GetItemPossessedBy(oPC, "WOLF_PELT); <- makes it say: UNTERMINATED STRING CONSTANT.


 to


object oItemTake = GetItemPossessedBy(oPC, "WOLF_PELT");



 
               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« Reply #41 on: August 23, 2010, 05:07:22 am »


               oh yeah! Sorry, thanks Lightfoot XD

               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quests only being done once?
« Reply #42 on: August 23, 2010, 03:11:15 pm »


               okay have done it all....and again...all it gives me are errors....Journal doesnt even show the quest and the Tag of the item that needs to be required doesnt even trigger the next text part....
               
               

               
            

Legacy_Xovian

  • Full Member
  • ***
  • Posts: 158
  • Karma: +0/-0
Quests only being done once?
« Reply #43 on: August 23, 2010, 11:41:29 pm »


               Maybe it's just me, because I never use "persistent" scripts, but making quests able to be done more then once, is simple. At the end quest script where the reward is given, you simply add "set" what ever the integers name is back to  == 0 ...and you can do it again.



You can even have it remove the journal entry (if it's being used), and restarted as well.



Not sure but I think i misread something, or am not understanding all the "extra" scripting i'm seeing in this post. If it's for multiple players, using a while loop on a "party" works fine (for plot items or rewards), though i don't have an example off the top of my head.



Reading this post just made me confused, don't mind me...think i'll go babble to myself in the corner.
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
Quests only being done once?
« Reply #44 on: August 24, 2010, 05:31:56 am »


               I am also confused. I was just giving "Who said that i" a very simple example of how you can keep quests persistent on their PW. Whether allowing player's to do "the" quest more than once or help someone else do "the" quest or if players get a reward only once or every time, completely depends on the type of quest that you are doing. Perhaps "Who said that i", you could post a specific example of a quest where a player would do it by themselves and get the xp for it and then accept the quest a second time to help someone else but not get any xp for it? What exactly do you mean by helping someone else?

When in a PW if the quests are not set up correctly and one person in the party accepts a quest then all the party members might also get the quest. Is this something you want to happen? Some people like it that way. Some don't. The example scripts I gave you do not give the quest to party members. Only the individual who accepted the quest. And once they finish the quest they can not necessarily do it again but they can still help other players if getting their wolf pelt is too difficult. Thus someone is helping someone else who has the quest...even though they have already done it.

If my new understanding is correct..you want people to be able to accept the quest again and do it but not get anything for finishing it? If that is the case then what would be the point of the player being able to accept the quests again? Unless this would be more like a "killing blow" type quest. Where whoever kills a monster, and has accepted the quest, finishes or moves on to the next node of the quest as soon as they strike the blow. But then you need to figure out if you want the person who killed the monster to only get the xp..or if you want all the party members to get the xp or maybe just the members who are in the same area or maybe just everyone who has accepted the quest and aren't even in the same area. Basically it can get very confusing as to how to do this. And the scripting from one type of quest can vary from one to the other.

What I posted is basically: One person accepts the quest. They alone finish it (unless it's one in which someone else can just help them out, ie kill the wolf that drops the wolf pelt) and get the reward for it. It is now recorded as "done" on the players database item and the npc now only says "thanks for doing the quest."

So now here I am rambling on. Probably causing even more confusion for myself and for the OP. ; )

P.S.

who said that I wrote...

and again...all it gives me are errors

Could you be a bit more specific? All the scripts I posted, except for the one that I left out a line and it was fixed, were free of errors and currenlty in use on our PW.

Xovian wrote...

Maybe it's just me, because I never use "persistent" scripts, but making
quests able to be done more then once, is simple. At the end quest
script where the reward is given, you simply add "set" what ever the
integers name is back to  == 0 ...and you can do it again.

This is very true but the OP doesn't want the player to get the reward/xp again. That is where it gets confusing I think.
               
               

               


                     Modifié par GhostOfGod, 24 août 2010 - 04:57 .