Welcome to the Builder Academy

Question stun in a skill with case

More
22 Apr 2025 19:21 #10679 by JTP
Replied by JTP on topic stun in a skill with case
Problem with your example is that you stop fighting if you get < POS_STUNNED


Where I want the victim to become stunned no matter how many HP they have. So the attacker can just keep fighting them without taking damage. Or stun the victim to let a low level char attack the mob

Please Log in or Create an account to join the conversation.

More
22 Apr 2025 19:43 #10680 by ironfist
Replied by ironfist on topic stun in a skill with case
Yes, I am saying those are the issues that you'll need to solve to have it work correctly because a lot of that is what is already in the code.  I'm just showing the example as a way to help you get to that goal.

Please Log in or Create an account to join the conversation.

More
Yesterday 19:57 #10683 by JTP
Replied by JTP on topic stun in a skill with case
I really don’t see what is wrong. As far as I know it should work. But it doesn’t

Please Log in or Create an account to join the conversation.

More
Yesterday 21:34 #10685 by ironfist
Replied by ironfist on topic stun in a skill with case
Because there are those instances in the code that "fix" POS_STUNNED after it you set it, at least the way stock code is.  If you check the value in your code at various point, the value of POS_STUNNED was indeed set, but the default code doesn't really allow for someone to stay stunned in combat unless they are low health so it resets it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.226 seconds