#Made a system that prevents party damage
1 messages · Page 1 of 1 (latest)
woah, is this purely scripts?
That is really cool how
It's all code
Works with magic and AOE attacks too
This is so cool
Json I’m guessing or is it plug-in driven
No plugins, all script API
Wow okay that’s impressive then, well done 👍
Thanks, the system can also be used to set up forced pvp zones or no pvp zones. Challenging other players to a dual is also possible
I tested something that gave me an idea of how to do this same thing, but I figured out that the fatal melee hits won't activate a damage sensor with deals damage false at time
for example, I have 3 hearts, and a hit will take me 5 hearts, the entityHurt event I used to detect the damage activates too late so I will die, but if the damage is just 2 hearts, It will activate at time and the damage will be skipped because it won't kill me
I think that's because the entityHurt event first applies the damage
nope, or yes, but only happens in death as I saw
because not fatal hits skips de damage correctly
so u dont use player.json , no damage sensor with tags only script ? if yes how do u cancle damage ....
I only use the script API. I built an entirely new damage system. I actually just last week finished adding different damage types. That way entities can have vulnerabilities, resistances and immunities to some damage types
i also have party system for my faction addon but i use factions id to give the player the tags to cancle the pvp with damage sensor like the first faction get faction id 1 and all in clan get the tag nopvp1 and they cant hit each other ,it works but i dont like that, could u give an exmaple how u did that with your damage system ?