Welcome to the Builder Academy

Question could use help with this trigger im working on

More
15 Jan 2025 16:28 - 15 Jan 2025 16:32 #10519 by JTP
So this is the trigger. Not 100% sure if I got it right.

problem is if 2 mobs with this trigger is in the same room. And I attack one, then they both say something.

I need help figuring our how to make it only for 1 mob at a time. Only the mob attacked should say something once.

Any sugestions to make this trigger better would be nice, thanks.


Trigger Intended Assignment: Mobiles
Trigger Type: Act , Numeric Arg: 1, Arg list: *
Commands:
if %actor.fighting%
switch %random.3%
  case 1
    say Message 3.
  break
  case 2
    say Message 2.
  break
  case 3
    say Message 3.
  break
done
wait 120 s
end
Last edit: 15 Jan 2025 16:32 by JTP.

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

More
18 Jan 2025 11:29 #10525 by thomas
if %actor.fighting% == %self%

That should do it.

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

Time to create page: 0.172 seconds