Getting the engine to count
Posted: Sat May 22, 2021 7:43 pm
Very basic question here.
I'm programming a simple fetch quest where NPC tells PC "You have X fetchits remaining." everytime you return one or more fetchits.
I've opted to use LocalInts where once the quest is initiated I set the LocalInt for thisprop to '3'.
This is where I get confused.
When I return a fetchit, I use SetLocalInt for thisprop with '--' in parm3. This doesn't seem correct as I'd also want to denote when the PC brings in more than 1 fetchit at a time.
I'd like to set the LocalInt on thisprop to '3', and then, depending on whether I bring in 1, 2, or 3 fetchits, subtract from initial value, leading to the quest finished conversation text once it hits '0'.
Can someone help me with the logic here? Between SetLocalInt and CheckLocalInt, how does GetLocalInt fit in?
I'm programming a simple fetch quest where NPC tells PC "You have X fetchits remaining." everytime you return one or more fetchits.
I've opted to use LocalInts where once the quest is initiated I set the LocalInt for thisprop to '3'.
This is where I get confused.
When I return a fetchit, I use SetLocalInt for thisprop with '--' in parm3. This doesn't seem correct as I'd also want to denote when the PC brings in more than 1 fetchit at a time.
I'd like to set the LocalInt on thisprop to '3', and then, depending on whether I bring in 1, 2, or 3 fetchits, subtract from initial value, leading to the quest finished conversation text once it hits '0'.
Can someone help me with the logic here? Between SetLocalInt and CheckLocalInt, how does GetLocalInt fit in?