Confused on how the implementation works

Continuing the discussion from Tracking kills for Quests?:

Hello, I have been trying to implement the above solution, but I am a tad confused:

  1. How do I set up a quest ot be a kill quest
  2. How do these scripts know what quest I am killing an enemy for?

By using a Condition to complete the quest. Sam introduces completion by Condition in the final course of the series, Shops and Abilities.
You’ll use the Predicate HasKilled along with the Token representing the type of kill and the number needed.

It doesn’t. It just responds to AddToCount to increase the killcount of whatever string was passed to it. It’s up to the quest to check the counter to see if enough of that type of enemy (represented by string token) was killed.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms