#(pattonsteel) Error Message: Trigger 'CHAT' on NPC '3/Rune' activated and used but not properly se

23 messages · Page 1 of 1 (latest)

warm agate
#

Hello, I'm looking for a hand in figuring out what went wrong with this script. It appears to be functioning as intended in game, but I'm seeing an error appear in the console, which I do not understand how to correct.
Error Message: Trigger 'CHAT' on NPC '3/Rune' activated and used but not properly set via the 'trigger' command in 'on assignment'.

in the on assignment, of the npc I had added the trigger as - trigger name:click state:true, by following the doc's example, not sure if I implemented it correctly.

Denizen Debug Log
My NPC Script

edgy belfryBOT
#

(pattonsteel) Error Message: Trigger 'CHAT' on NPC '3/Rune' activated and used but not properly se

edgy belfryBOT
#

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.

warm agate
#

Also this might sound stupid, are the comments causing this issue? Also why are some comments red and some green? I'm writing these scripts in VSCode with the plugin

round oxide
karmic umbraBOT
round oxide
#
    Error Message: Trigger 'CHAT' on NPC '3/Rune' activated and used but not properly set via the 'trigger' command in 'on assignment'. 

ah thats a minor issue, you forgot to have the chat trigger turned on in your assignment script

#

!c trigger u

karmic umbraBOT
# round oxide !c trigger u
Required Plugins or Platforms

Citizens

Group

npc

Syntax

trigger [name:<trigger>] (state:{toggle}/true/false) (cooldown:<duration>) (radius:<#>)

Short Description

Enables or disables a trigger.

Use to enable the click trigger.
- trigger name:click state:true
Use to enable the chat trigger with a 10-second cooldown and a radius of 5 blocks.
- trigger name:chat state:true cooldown:10s radius:5
Use to disable the proximity trigger.
- trigger name:proximity state:false
round oxide
#

check examples ^

warm agate
#

I see

#

followup question, do I need to add all the triggers if they are in seperate steps of my script?

round oxide
warm agate
#

Okay so if I only want it to be active after a click trigger has been done, I can put the - trigger chat inside of the click trigger script

#

is that a good way of doing it? or should I be zapping to a different step

round oxide
warm agate
#

I'm making it so that the click initiates conversation, then chat triggers progress it

round oxide
#

ahh just zap em to another step

warm agate
#

okay

#

can I ask some other misc questions in this thread or should I make a new one?

round oxide
#

probably be better to make a new one

warm agate
#

okay