flag a player in "right clicks npc" event

Discuss any issues with Denizen-Bukkit scripts or functionality you may have while using it.
Post Reply
Goma_Terzu
User
User
Posts: 22
Joined: August 6th, 2016, 4:53 pm
Location: Germany
Contact:

flag a player in "right clicks npc" event

Post by Goma_Terzu » September 3rd, 2016, 11:06 am

Maybe I went full retard here, but suddenly using a flag on a player in the right click event does not seem to work anymore

"OneandonlyNPCrightClickEvent":
type: world
debug: true
events:
on player right clicks npc:
- flag player NPCID:<context.entity>
- narrate <player.flag[NPCID]>

The tag is null


[19:57:43 INFO]: ERROR in script 'ONEANDONLYNPCRIGHTCLICKEVENT'! Woah! Invalid arguments were specified!
[19:57:43 INFO]: +> [Denizen] +> MESSAGE follows: 'Must specify a flag action or value.'
[19:57:43 INFO]: +> [Denizen] Usage: flag ({player}/npc/server/<entity>) [<name>([<#>])](:<action>)[:<value>] (duration:<value>)
[19:57:43 INFO]: +> [Denizen] (Attempted: FLAG "player" "NPCID:<context.entity>")

Goma_Terzu
User
User
Posts: 22
Joined: August 6th, 2016, 4:53 pm
Location: Germany
Contact:

Re: flag a player in "right clicks npc" event

Post by Goma_Terzu » September 3rd, 2016, 11:39 am

It seems like you just can't use the flag-name "NPCID". I changed it to "LetzterNPC" and now it works.

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 199
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: flag a player in "right clicks npc" event

Post by mcmonkey » September 3rd, 2016, 6:09 pm

Goma_Terzu wrote:It seems like you just can't use the flag-name "NPCID". I changed it to "LetzterNPC" and now it works.
LOL. Awkward limitation of Denizen-Bukkit...
NPC, NPCID, Player are all reserved key words that mean to switch the context of the command.
Denizen lead developer.
http://mcmonkey.org

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest