Cuberite Forum
Monster Damage Customizable - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Monster Damage Customizable (/thread-1470.html)



Monster Damage Customizable - OdnetninI - 05-19-2014

Hi,
I'm new in the comunity, my nickname is OdnetninI.
Since some weeks, i was looking the code, and i see:

There is a monsters.ini file. It contains, health, attack range, attack rate, ...
Later, I saw the plugin Core/difficulties.lua and I see that it has monster difficulty damage.

Why don't we, put difficulty damage inside monsters.ini? If a user will want to change the damage of a mob, he could change it without edit lua code.

What do you think?

EDIT:
For example:

[Enderman]
AttackRange=2.0
AttackRate=1
AttackDamage_Easy=4.0
AttackDamage_Normal=7.0
AttackDamage_Hard=10.0
SightDistance=25.0
MaxHealth=40


RE: Monster Damage Customizable - sphinxc0re - 05-19-2014

Hi,

I'm new to the community and code too but I think this is more than possible although I don't know any lua Smile

The first thing I thought of was, of course, a c++ implementation of this but since there is already a plugin for this...


RE: Monster Damage Customizable - NiLSPACE - 05-19-2014

I think Vanilla does it different. In vanilla minecraft each difficulty has a number
Quote:Peacefull = 0.00
Easy = 0.75
Normal = 1.50
Hard = 2.25

I think we should do something as well with those numbers to get the right amount of damge.


RE: Monster Damage Customizable - sphinxc0re - 05-19-2014

This is a very good idea. STR_Warrior would you be so kind and open an issue for that. I think it's easy. Or you could just start codingBig Grin


RE: Monster Damage Customizable - OdnetninI - 05-19-2014

(05-19-2014, 02:33 AM)STR_Warrior Wrote: I think Vanilla does it different. In vanilla minecraft each difficulty has a number
Quote:Peacefull = 0.00
Easy = 0.75
Normal = 1.50
Hard = 2.25

I think we should do something as well with those numbers to get the right amount of damge.

Better than mine, XD

And i think, in the API, must be added a fuction to add new difficulties from lua. It could be very good.


RE: Monster Damage Customizable - NiLSPACE - 05-19-2014

(05-19-2014, 02:40 AM)SphinxC0re Wrote: This is a very good idea. STR_Warrior would you be so kind and open an issue for that. I think it's easy. Or you could just start codingBig Grin

I quickly created this: https://github.com/mc-server/MCServer/issues/1006


RE: Monster Damage Customizable - LO1ZB - 05-19-2014

Peaceful = 0
Easy = 1
Normal = 2
Hard = 3
See /difficulty command
http://minecraft.gamepedia.com/Difficulty
http://minecraft.gamepedia.com/Commands#Operator-only_commands


RE: Monster Damage Customizable - NiLSPACE - 05-19-2014

Yea you use that to set the difficulty but if you use the debug screen in the latest snapshot you'll see that the numbers I mentioned: [Image: 8RkBT.jpg]


RE: Monster Damage Customizable - OdnetninI - 05-19-2014

(05-19-2014, 02:57 AM)STR_Warrior Wrote: Yea you use that to set the difficulty but if you use the debug screen in the latest snapshot you'll see that the numbers I mentioned: [Image: 8RkBT.jpg]

But it is different. It is the Local difficulty. Local difficulty is the extra difficulty of a region. It's grow with the time you spend in that zone.

EDIT:

http://minecraft.gamepedia.com/Debug_screen#Legend_.281.8.29
Local Difficulty Shows the difficulty of the chunk the player is in. See Difficulty on how this works. Followed by the amount of in-game days the player has been in the world, see Day-night cycle for more information.


RE: Monster Damage Customizable - LO1ZB - 05-19-2014

(05-19-2014, 03:00 AM)OdnetninI Wrote:
(05-19-2014, 02:57 AM)STR_Warrior Wrote: Yea you use that to set the difficulty but if you use the debug screen in the latest snapshot you'll see that the numbers I mentioned: [Image: 8RkBT.jpg]

But it is different. It is the Local difficulty. Local difficulty is the extra difficulty of a region. It's grow with the time you spend in that zone.

EDIT:

http://minecraft.gamepedia.com/Debug_screen#Legend_.281.8.29
Local Difficulty Shows the difficulty of the chunk the player is in. See Difficulty on how this works. Followed by the amount of in-game days the player has been in the world, see Day-night cycle for more information.
That is true. Smile
Local Difficulty is saved for each Chunk. When you spend time in an area, this area of the world become harder (more and stronger mobs)
http://minecraft.gamepedia.com/Difficulty#Regional_difficulty