problems with quest globals?
Firstly, yes I made sure the qglobals was set to 1 on the npc.
Secondly, after flagging them I repopped, rezoned and reset the server. Thirdly, yes, I have quest_globals in my database. What I'm trying to do is write a simple blackjack quest where you can give plat to the npc and have them open a tab for you. But the second I put anything related to a qglobal in the quest it seems to stop working. I've been copying directly off of the wiki page. I tried troubleshooting by taking only the beginning of the quest off. She won't even reply to a hail. Here is the fragment I'm testing on the other dealer in highkeep. Quote:
However, when I remove all references to qglobals it works. Quote:
What am I missing here? Knowing me it's probably something painfully obvious. Thanks, guys. =) |
It might be that your if statements are missing quotation marks.
Code:
if($text=~/Hail/i && defined $qglobals{"BlackJackTab"}){ |
Quote:
|
I don't think it's the quotes because it worked just fine when I took all mentions of globals out. She said, "My dialog is working."
However, when it does have qglobals in it she doesn't even say that. Thanks for helping me brainstorm, though. =) |
I have noticed that some systems fail if you don't put parenthesis around the defined/not defined check. Most likely not your case, but wouldn't hurt to try.
Do qgloabls work for you in any script? If not, I am thinking something with your folder structure - perhaps you don't have all the quest/plugin/global files in the right location. |
So I tried putting parenthesis around the defined check and it didn't change it.
Here is what it looked like just in case I misunderstood. Quote:
So that means it's probably an error with the structure of the one I wrote? I'll keep playing with it and keep you guys posted. |
I found the issue with your quest, where you're using $qglobals{"BlackJackTab"} it's throwing this error: http://prntscr.com/48ks7c
To find errors like this in your quest you can use this: #logs quest. Here is a copy that works using concatenation. EDIT: Here's a screenshot of it working. |
You're right, Kingly. I think I got it going now.
I think the error was being caused by the usage not being set up correctly. I had it as: Quote:
Quote:
I REALLY appreciate the help all. |
You're welcome. Also, I'd recommend using plugin::Whisper, as it only sends to one client and doesn't flood the chat whenever someone interacts with the NPC.
|
Quote:
if($text=~/Hail/i && !defined($qglobals{BlackJackTab})){ But like I said, it is rare and usually system specific. Good to see you are set. Good luck! |
All times are GMT -4. The time now is 12:46 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.