Started by
SparkleArts
on
Topic category: User side tutorials
Today I want to show you how to do percentage attack damage without code.
You can add the condition Amount to the global triggers "Entity attacked" and "Before Entity is Hurt" with the block under Advanced Number Dependency and add a condition "amount". (For the global trigger "Player deals critical hit" you can add the number dependency "isvanillacritical" and "damagemodifier")
It should look like this:
To get a percentage you have to multiply the attack damage using the Number Dependency with your percentage divided by 100.
Here is an example of a percentage calculator and my calculation:
"*" = multiplication
"/" = division
With this you can make easy Percentage Calculation.
Edited by SparkleArts on Sat, 03/06/2021 - 20:29
I cannot find the block you're using in the image, doesn't seem to be under the advanced tab
Mariano Argüello in Advanced it should be the Block that have the same Color as the Math Blocks with the name "dependencyName".