Blockland Forums > Modification Help

Adjusting damage dealt by a percentage

Pages: (1/1)

Tezuni 2.0:

Is it possible to adjust damage dealt by a percentage?
For example, if I set my player to have a value of 900/1000 strength, would it be possible to make my player only deal 90% of the damage it regularly would?
How would I do this?

Destiny/Zack0Wack0:

Package the Armor::damage function and multiply the damage amount by 100th of the percentage. Search, there's heaps of these topics.

Pages: (1/1)

Go to full version