• Trying to add one to current count upon usage
    1 replies, posted
Hey guys try to make a simple quest system. Below is a table for a current quest. I am trying to make it so when a user uses an entity the activator's count goes up 1. I tried: activator.count = activator.count + 1 [CODE] quests[4] = { name = "Find the Ancient Book!", qtype = "collect", complete = 1, killhook = function( ent, count ) if checkIfBook( ent ) then count = count + 1 if count >= 1 then return { count, true } else return { count, false } end else return { count, false } end end } [/CODE]
There's not enough code here to help much - what is ent? Where are you defining the activator? When you are returning { count, bool }, what does that do?
Sorry, you need to Log In to post a reply to this thread.