Page 1 of 1

Comdition issue?

Posted: Fri Aug 19, 2022 5:16 am
by hrohibil
Hey tony

Please see attached image.

If i have the vGetItem then the conversation goes down the chain to the " Excellent, you feed....". And that works meaning if i have the item it does play that.

But if i don't have the item it should play the node to the right "You don't have the chicken" i set a vGetItemCount(id) < 0..
But nothing happens . As if it don't look at my condition.


Re: Comdition issue?

Posted: Fri Aug 19, 2022 8:40 am
by Tony Li
Hi,

If you have none of item 29, then vGetItemCount(29) will be 0. So the Conditions should check if the count is less than or equal to zero:

Code: Select all

vGetItemCount(29) <= 0 and (Variable["FeedWolf"] == false)
Technically you can check if vGetItemCount(29) is exactly zero since vGetItemCount() will never return negative numbers:

Code: Select all

vGetItemCount(29) == 0 and (Variable["FeedWolf"] == false)

Re: Comdition issue?

Posted: Fri Aug 19, 2022 5:49 pm
by hrohibil
Makes perfectly sense.
Thank you Tony

Re: Comdition issue?

Posted: Fri Aug 19, 2022 5:58 pm
by Tony Li
Happy to help!