Hi, I'm new to Lackey. I created my own plugin, but there is a problem with my card game: due to the several statistics/ability/attacks of the cards, the turns are very slow because the player have to calculate manually the results of the damage, health, etc.
Can you guys help me to achieve a way to automatically calculate the results of the cards attacks? Maybe it needs only a few string of code, but I don't know where I have to go to do that. Below I explain how it have to function:
The damage of an ability is calculated by: (Strengt + Ability Power) x dice with 6 faces. Example: X has 4 strengt and want to use his ability "Fist" which has 5 ability power. I roll a dice and the results is 2, so I have to calculate (4+5)x2 = 18 damages.
Thanks to everyone who decides to help me ^^
Can you guys help me to achieve a way to automatically calculate the results of the cards attacks? Maybe it needs only a few string of code, but I don't know where I have to go to do that. Below I explain how it have to function:
The damage of an ability is calculated by: (Strengt + Ability Power) x dice with 6 faces. Example: X has 4 strengt and want to use his ability "Fist" which has 5 ability power. I roll a dice and the results is 2, so I have to calculate (4+5)x2 = 18 damages.
Thanks to everyone who decides to help me ^^