Hey,
I couple of questions I need your help with:
1) I have an Item, that increases hero Chance to Critically strike by 1% each time an Item is purchased. This chance stacks up to 25%. If hero buys 26th Item, than the value returns to 25%. Following question, how can I do, so hero would not be able to buy an item if it is already maxed out?
How this works, I have an array - counter of "how many times an item is purchased".
And with help I came up with a fail safe, if the value of that counter is Greater or Equal to 25, then set the counter variable to 25.
As I understand I need to change condition to "equal to 25". So far I am not able to find an action, that would not allow to buy another item of the same kind. Preferably, with a message that would say "That you already upgraded an ability to its maximum level".
2) I have several Items available at the shop, 3 items. One gives Hero Critical Strike Chance, another Bash and last one Life Steal. However, I want a player only chose one of these three. When he buys one, I want two others not to be available for Hero to purchase.
I couple of questions I need your help with:
1) I have an Item, that increases hero Chance to Critically strike by 1% each time an Item is purchased. This chance stacks up to 25%. If hero buys 26th Item, than the value returns to 25%. Following question, how can I do, so hero would not be able to buy an item if it is already maxed out?
How this works, I have an array - counter of "how many times an item is purchased".
And with help I came up with a fail safe, if the value of that counter is Greater or Equal to 25, then set the counter variable to 25.
As I understand I need to change condition to "equal to 25". So far I am not able to find an action, that would not allow to buy another item of the same kind. Preferably, with a message that would say "That you already upgraded an ability to its maximum level".
2) I have several Items available at the shop, 3 items. One gives Hero Critical Strike Chance, another Bash and last one Life Steal. However, I want a player only chose one of these three. When he buys one, I want two others not to be available for Hero to purchase.