Author Topic: minor question about quests....  (Read 1191 times)

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
minor question about quests....
« on: October 03, 2015, 06:41:24 pm »


               

Okay, I am wondering something....if you need to make a persistent quest to kill a vilain, would it be better to have one with a spawn trigger or you can just place the npc vilain on the spot in the map?



               
               

               
            

Legacy_Li'l Rose

  • Jr. Member
  • **
  • Posts: 52
  • Karma: +0/-0
minor question about quests....
« Reply #1 on: October 04, 2015, 12:39:55 am »


               Is this quest persistent for each PC, or is this a once per server reset quest?

If it is once per server reset, then it would be best to spawn the villain by a trigger with an on enter script. Once a PC enters the trigger, spawn the villain, and put a variable on the trigger, so that it only spawns once. You could also have the trigger spawn the villain, and then destroy itself. Placing the villain on the map works too, but you will have all of the villain's scripts running all the time, until the villain is killed.

If the quest is persistent for each PC, then have the script place the variable on an item in the PC's inventory. You can also use the campaign variables. You would then need a second variable that resets itself after a certain amount of time has passed, so that the villain would not spawn again if another PC entered the trigger.
               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
minor question about quests....
« Reply #2 on: October 04, 2015, 12:42:15 pm »


               

thanks lil, as usual '<img'> 



               
               

               
            

Legacy_Li'l Rose

  • Jr. Member
  • **
  • Posts: 52
  • Karma: +0/-0
minor question about quests....
« Reply #3 on: October 05, 2015, 12:38:27 am »


               You are welcome. I forgot to mention, that the second variable would go on the trigger.