DenizenScript / Denizen

NPC and general Spigot scripting, using the Denizen Scripting Language!
https://denizenscript.com/
MIT License
207 stars 104 forks source link

Stumped, Chat Triggers stopped working #88

Closed itsmethatswho closed 11 years ago

itsmethatswho commented 11 years ago

I started using Denizens recently and made some scripts that were working fine. Then I saw that there are some triggers for dtlTraders, so I began trying to rework my NPC's to use both when chat triggers just stopped working completely. I feel like I'm overlooking something really dumb, but I've been trying to fix it over the last two days and they just aren't working.

I've tried using chat scripts off the denizen's wiki 'how to's' specifically: http://wiki.citizensnpcs.com/Denizen/Interact_Scripts#Steps_Node

and it isn't working either. I've tried disabling transactions on the npc, completely deleting him and making him new (he's currently a copy of another trait: trader npc), disabling citizen settings like chat close and in general messing around with him. Here's the npc's current info:

Denizen Info: Name: Innkeeper Ike Trigger Status: green- proximity, transaction, chat, click Interact Scripts: 0 BedQuest

Here are the pastebins: /denizen debug: http://pastebin.com/UzkJDP7A assignment: http://pastebin.com/BuMhk7Bg script: http://pastebin.com/P1KGeauU This script if a fragment of what it should be, but I've chopped it down to try and get it to work.

The files are all loading up on the server alright and I've double checked for yaml errors. Any help would be appreciated!

MrFlarkie commented 11 years ago

I think you just forgot to put quotes :

The corrected script :

Chat Trigger: '1': Trigger: §7My name is §1//§7. Script:

Try it and let me know.

itsmethatswho commented 11 years ago

Tried adding them and no changes. No changes in the bug report either.

Alright here's what I tried. I set up a brand new 'test' NPC with just denizens and setup the script for him. It worked. Then I deleted the newly made NPC and renamed 'Innkeeper Ike' -> 'test' and it did not work. Something with the NPC's settings must be interfering with the Chat Trigger.

update: Ok here's what I tried next. I pulled up the citizens/saves.yml and watched it when I removed the trader trait from Innkeeper Ike. It was registering as gone with /npc in game, but in the config it was still there. I stopped the server to see if that would change it brought it back up and sure enough the trader trait was back.

NP, I thought I could work around this. I went in and altered the citizen/saves file by hand deleting all trader trait settings and started up the server again. Innkeeper Ike was no longer a trader, but still refused to use his chat triggers.

Tried deleting Innkeeper Ike and bringing him back as just a denizen (again). Still no luck, so I thought maybe there was some weird correlation with the NPC ID. Deleted poor Innkeeper Ike yet again. Created a test NPC in a different location to fill the NPC 4 ID, then created Innkeeper Ike in the same location, but with a new ID and he still doesn't want to chat with me :( I've come to the conclusion he's not a very good innkeeper.

Now the MC servers are down and my testing is at an end. I need to try renaming my working test NPC Innkeeper Ike to see if I can get him to chat. Maybe I need a new name, like Innkeeper Fred. He sounds chatty.

MrFlarkie commented 11 years ago

Sorry, but there I do not know where it may come ...

itsmethatswho commented 11 years ago

It's alright I'll keep playing with it and see if I can find it.

itsmethatswho commented 11 years ago

I figured it out and yes it was something simple and dumb. My proximity chat was 2 blocks and there was a counter between the NPC and me... Upped the proximity and problem fixed.