#(normalped) Left click trigger for npc's assignment

20 messages · Page 1 of 1 (latest)

lime narwhal
#

Action "on click" allows you to track the right mouse click on NPC from citizens, but how to track the left mouse click? Thanks

silent capeBOT
#

(normalped) Left click trigger for npc's assignment

silent capeBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

snow forge
#

!a damage

fast eagleBOT
# snow forge !a damage
Triggers

when the NPC is damaged by a player and the Damage trigger fires. Action does not run if you do not enable the Damage trigger.

Context

<context.damage> returns how much damage was done.

Determine

"cancelled" to cancel the damage event.

snow forge
#

Left click is damage

#

Npc needs to be vulnerable tho

lime narwhal
snow forge
#

Then that works out for you?

#

Or do you mean NOT vulnerable?

#

You can just cancel the damage event

lime narwhal
snow forge
#

!c determine

fast eagleBOT
# snow forge !c determine
Group

queue

Syntax

determine (passively) [<value>]

Short Description

Sets the outcome of a script.

Description

Sets the outcome of a script.
The most common use case is within script events (for example, to cancel the event).
This is also required for all procedure scripts.
It may be useful in other cases (such as a task script that returns a result, via the save argument).

By default, the determine command will end the queue (similar to !command stop).
If you wish to prevent this, specify the "passively" argument.

To make multiple determines, simply use the determine command multiple times in a row, with the "passively" argument on each.

lime narwhal
# snow forge `Determine "cancelled" to cancel the damage event.`

Thanks a lot! finally it works, but only with "damaged":
on damaged: - chat text targets:<context.damager> - determine cancelled
For some reason nothing happens with "damage", the event is not canceled and nothing is displayed in the chat:
on damage: - chat text - determine cancelled

wheat cradleBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

Error: Missing thread owner. Did they leave the Discord? If so, just use </resolved:1028673926114594866> yourself.

sleek jetty
#

oh