pvp
I'm working and working on my fractured subgame, trying to find a way to turn pvp on in part of the world and off in another part.
But really, I think this functionality (the ability to control where/when pvp is active) is something that would be very useful to a lot of different subgames. Imagine the following scenarios:
1: pvp is on in the "wild west" but off in the east (the fractured scenario)
2: pvp is off, EXCEPT in designated arenas, there everyone can fight all they want.
3: pvp is off during the day, but on at night!
4: pvp is off unless you are wearing a certain helmet, everyone wearing that helmet can fight each other.
5: pvp is on except in certain designated "safe" areas like spawn or traders village
6: pvp is on by default, but a player can cast a "truce" spell that turns it off temporarily.
7: pvp is on except in protected areas.
8: pvp is off for new players, but on between players who have been on the server more than one day.
9: pvp is off with ordinary weapons, but allowed with certain special weapons.
etc, there are LOTS of possibilities to make the game very interesting by making pvp more complicated than just a simple Boolean on or off.
So, I would humbly request a new API hook:
register_on_pvp(function(attacker,defender) )
possibly on_pvp(function(attacker,weapon,defender)) or would it be best to get that by attacker.get_wielded_item() ???
The idea would be that if the game has registered an on_pvp function, then every time one player attacks another, the on_pvp function is called first, it can check whatever conditions the game developer wishes, and then return "true" or "false" to either allow or disallow this particular blow.
I have no idea how the pvp code works, but the above does not sound particularly difficult to implement, and I think it could add a LOT of interesting variety to multiplayer games.
Thank you for taking time to listen.
But really, I think this functionality (the ability to control where/when pvp is active) is something that would be very useful to a lot of different subgames. Imagine the following scenarios:
1: pvp is on in the "wild west" but off in the east (the fractured scenario)
2: pvp is off, EXCEPT in designated arenas, there everyone can fight all they want.
3: pvp is off during the day, but on at night!
4: pvp is off unless you are wearing a certain helmet, everyone wearing that helmet can fight each other.
5: pvp is on except in certain designated "safe" areas like spawn or traders village
6: pvp is on by default, but a player can cast a "truce" spell that turns it off temporarily.
7: pvp is on except in protected areas.
8: pvp is off for new players, but on between players who have been on the server more than one day.
9: pvp is off with ordinary weapons, but allowed with certain special weapons.
etc, there are LOTS of possibilities to make the game very interesting by making pvp more complicated than just a simple Boolean on or off.
So, I would humbly request a new API hook:
register_on_pvp(function(attacker,defender) )
possibly on_pvp(function(attacker,weapon,defender)) or would it be best to get that by attacker.get_wielded_item() ???
The idea would be that if the game has registered an on_pvp function, then every time one player attacks another, the on_pvp function is called first, it can check whatever conditions the game developer wishes, and then return "true" or "false" to either allow or disallow this particular blow.
I have no idea how the pvp code works, but the above does not sound particularly difficult to implement, and I think it could add a LOT of interesting variety to multiplayer games.
Thank you for taking time to listen.