Jump to content

Question

Posted

Hello guys,

 

You might get annoyed with me asking questions by now :P but yea no shame in asking i guess xD 

 

When i attack a monster or a monster attacks me it is always the same amount. 

How can i make it random? like the max is known when i have base damage and then add the attack power and multiplier i know the max but can i randomise it so it is not always the same amount?

 

Thanks for all the help guys!!

4 answers to this question

Recommended Posts

  • 1
Posted
3 hours ago, Twutti said:

Hello guys,

 

You might get annoyed with me asking questions by now :P but yea no shame in asking i guess xD 

 

When i attack a monster or a monster attacks me it is always the same amount. 

How can i make it random? like the max is known when i have base damage and then add the attack power and multiplier i know the max but can i randomise it so it is not always the same amount?

 

Thanks for all the help guys!!

 

What you're looking for is already there by default. You're just working with numbers too small for ranges to properly appear.

  • 0
Posted

Edit the formula.json in the server config. There's no exact answer for this formula, you need to go through trial and error until you found the right formula for your game. ^^

  • 0
Posted
3 hours ago, Aesthetic said:

 

What you're looking for is already there by default. You're just working with numbers too small for ranges to properly appear.

Yes thank you i changed some things and it was wonderfull! Thanks a lot.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...