Being able to have conditional responses
I looked aorund and either I am not seeing it or I just am searching wrong.. I was looking to see how about doing a conditional reponse for quest characters that have more than one turn-in. Example;
Character X: Hail toon Toon Response: I am looking for a [code], can you find one? Character X: a code Toon Response: Yes silly text to have something do something for you. Character X: Gives Toon code. Character X: Hail toon. Toon response: Now that I have the code, script this. Character Y: Hail toon. Ton response: I am looking for a [code], can you find one? I am guessing it will have to do with flagging the character for the turn in. But ultimately I want to have the dialogue progress as things are turned in and not repeat. Can I get pointed to where I need ot be. I was reading through the PoP flagging but I am still new to scripting. Thanks in advance! |
You should look into qglobals. Search the forums and wiki and there should be plenty of information about what you are looking for.
|
Will do thanks.
|
Ok I caruised a few posts I say and came across the Hails one. I decided to try it out. I copied it to an NPC with no quest assigned, set his qglobal to 1. Restarted the server. I had one error in the logs when I tried hailing him fixed the squiggle right I missed. Restarted again. But I still do not get the NPC to respond. I removed plugin::whisper with quest::say since I do not have the whisper plugin. I do not get any log output of any error.
I read different guides and a lto of conflicting data... example one Code:
quest::setglobals("Hails", 1, 5, "F"); Code:
quest::setglobals("Hails", "1", "5", "F"); |
Quote:
This is what I use: Code:
quest::setglobal("global", 1, 5, F); Example of conditional conversation from a quest I wrote a while back: Code:
sub EVENT_SAY |
All times are GMT -4. The time now is 10:21 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.