So, I've been using this: CurrentQuestState("Talk to Dave") ~= "active" so the NPC has something to say while the player isn't on the quest yet. Is that little "~" actually a thing? I got it from on of your posts and it works. I have a problem with it though.
I have a conversation condition that is:
(CurrentQuestState("Clean up time") == "active") and
(CurrentQuestState("Collect 10 crates") == "success") and
(Variable["numbrokenitemsfound"] >= 10)
Ok, so I have success with the one and other one is active when I go to turn it in and the NPC says "what's up." The condition I have for the NPC to say "what's up" is:
CurrentQuestState("Talk to Dave") ~= "active"
Also, I can't turn in the quest unless this "Talk to Dave" quest is in the player button script for this turn in. I take the success dave scipt out of the player button and I can't turn in everything
I have CurrentQuestState("Talk to Dave") ~= "active" with the "~" in there for when the player isn't on the quest line yet, and speaks the "what's up." The NPC should only say "what's up" if the player is not doing any quest with that NPC.
quest situation
- supadupa64
- Posts: 200
- Joined: Sun Mar 06, 2016 9:40 pm
- Contact:
quest situation
Last edited by supadupa64 on Sat Apr 30, 2016 9:59 pm, edited 1 time in total.
Game I'm working on:
Website: http://www.RuctionGames.com
Steam: http://store.steampowered.com/app/49682 ... en_Tablet/
Website: http://www.RuctionGames.com
Steam: http://store.steampowered.com/app/49682 ... en_Tablet/
Re: CurrentQuestState("Talk to Dave") ~= "active"
Hi,
Once the Dialogue System has evaluated all the dialogue entry links, it will have a list of valid entries. Then it will play the first entry in that list.
When you get to that point in the conversation (actually, when you get to the previous entry), open the Dialogue Editor to the Conversations tab and select your conversation. You should see green arrows pointing to the entries whose Conditions are true, and red arrows pointing to entries whose Conditions are false.
- ~= means is not equal to
- == means is equal to
- Dialogue Text: "What's up?"
Conditions: CurrentQuestState("Talk to Dave") ~= "active"
Once the Dialogue System has evaluated all the dialogue entry links, it will have a list of valid entries. Then it will play the first entry in that list.
When you get to that point in the conversation (actually, when you get to the previous entry), open the Dialogue Editor to the Conversations tab and select your conversation. You should see green arrows pointing to the entries whose Conditions are true, and red arrows pointing to entries whose Conditions are false.
- supadupa64
- Posts: 200
- Joined: Sun Mar 06, 2016 9:40 pm
- Contact:
Re: quest situation
You say I should see green arrows? My arrows are white that go from the START to each node.
But what I'm really trying to figure out is this below:
I have a conversation condition that is:
(CurrentQuestState("Clean up time") == "active") and
(CurrentQuestState("Collect 10 crates") == "success") and
(Variable["numbrokenitemsfound"] >= 10)
It should let me complete it since I've met the conditions, but instead it's starting the conversation below with the condition:
CurrentQuestState("Talk to Dave") ~= "active"
But what I'm really trying to figure out is this below:
I have a conversation condition that is:
(CurrentQuestState("Clean up time") == "active") and
(CurrentQuestState("Collect 10 crates") == "success") and
(Variable["numbrokenitemsfound"] >= 10)
It should let me complete it since I've met the conditions, but instead it's starting the conversation below with the condition:
CurrentQuestState("Talk to Dave") ~= "active"
Game I'm working on:
Website: http://www.RuctionGames.com
Steam: http://store.steampowered.com/app/49682 ... en_Tablet/
Website: http://www.RuctionGames.com
Steam: http://store.steampowered.com/app/49682 ... en_Tablet/
Re: quest situation
You'll only see green arrows in live view mode -- that is, if you've opened the Dialogue Editor onto an active conversation at runtime. It'll look similar to this:
If you're setting them on dialogue entry nodes, then one of two things must be happening:
1. The first conversation condition (Clean up time, Collect 10 crates, etc.) is false.
or
2. The second condition (Talk to Dave) is also true, and it appears earlier in the list of links or its link has higher priority.
To check #1: Paste in the entire condition as a Watch in the Watches tab at runtime. This way you can check if it's actually true or false.
To check #2: Inspect the previous node. At the bottom of the Inspector view, look at the "Links To:" section.
This is a screenshot of Outline mode, but the "Links To:" section is the same format as the Inspector in Node mode:
Notice that there are two links:
Are you setting these conditions on dialogue entry nodes in the Dialogue Editor? Or are you setting them on separate Conversation Triggers on the NPC?supadupa64 wrote:But what I'm really trying to figure out is this below:
I have a conversation condition that is:
(CurrentQuestState("Clean up time") == "active") and
(CurrentQuestState("Collect 10 crates") == "success") and
(Variable["numbrokenitemsfound"] >= 10)
It should let me complete it since I've met the conditions, but instead it's starting the conversation below with the condition:
CurrentQuestState("Talk to Dave") ~= "active"
If you're setting them on dialogue entry nodes, then one of two things must be happening:
1. The first conversation condition (Clean up time, Collect 10 crates, etc.) is false.
or
2. The second condition (Talk to Dave) is also true, and it appears earlier in the list of links or its link has higher priority.
To check #1: Paste in the entire condition as a Watch in the Watches tab at runtime. This way you can check if it's actually true or false.
To check #2: Inspect the previous node. At the bottom of the Inspector view, look at the "Links To:" section.
This is a screenshot of Outline mode, but the "Links To:" section is the same format as the Inspector in Node mode:
Notice that there are two links:
- Damn. Hold until I return.
- Collateral damage. Open it.
- supadupa64
- Posts: 200
- Joined: Sun Mar 06, 2016 9:40 pm
- Contact:
Re: quest situation
Ok, so I went to the START node and moved the Talk to Dave condition conversation to the bottom and everything worked great. Thanks!
Game I'm working on:
Website: http://www.RuctionGames.com
Steam: http://store.steampowered.com/app/49682 ... en_Tablet/
Website: http://www.RuctionGames.com
Steam: http://store.steampowered.com/app/49682 ... en_Tablet/
Re: quest situation
Great! I'm glad it was an easy thing in the end.