Achieving an objective by moving an object from one area to another

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Jivonte
Posts: 11
Joined: Thu Aug 08, 2024 6:04 pm

Achieving an objective by moving an object from one area to another

Post by Jivonte »

Hello, I just bought the dialogue system a few days ago and have been following the tutorials since I just started doing the gamedev thing a few weeks ago so I am fairly new to most of this stuff. I am currently recreating the "Quests" tutorial video "finding 3 crates" but in 3d, and it works, but I would like it to be a bit different. Instead of the objective being completed by just pressing E on the 3 crates, I would like it so that I would have to manually move the crates from point A to point B locaion, and that the Objective counter only counts up once you place the boxes down at point B.

Please help me I have been stuck at this phase for days now hehe, sorry if it sounds stupid, I have zero gamedev experience. thanks! :D
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Achieving an objective by moving an object from one area to another

Post by Tony Li »

Hi,

Thanks for using the Dialogue System!

I added an example scene and a note in: How To: Use Usable Events.

If you're destroying or deactivating the object that you're "picking up," you'll need to play the sound on a different object.
Jivonte
Posts: 11
Joined: Thu Aug 08, 2024 6:04 pm

Re: Achieving an objective by moving an object from one area to another

Post by Jivonte »

Thanks for the sound tips, its actually working now, any tips that could help with the first question? I browsed through all your tutorials and cant seem to single this out. About how to complete an objective by moving an object from point A to point B? sorry for the hassle sir. 😅
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Achieving an objective by moving an object from one area to another

Post by Tony Li »

Hi,

(Make sure to check your email and spam folder to validate your forum account.)

How you move boxes will depend on the rest of your Unity project. For example, is it a first/third person game with a player character like Fortnite? Is it an avatar-less game like StarCraft or Civilization? Is it something else? Actually moving the boxes is almost certainly outside the scope of the Dialogue System, and you'll have to use something else to handle that part.

But to update the quest, you can probably use a Dialogue System Trigger. For example, add a trigger collider to location B. Set the Dialogue System Trigger's Trigger dropdown to OnTriggerEnter, set the Conditions > Required Layer or Tag to the box's layer or tag, and configure the Actions section to increment your quest in one way or another. You'll also want to lock the boxes in place in location B or get rid of them so the player can't just pick up the same box and drop it in again. Note that this is just one way to do it. Sorry to be vague, but it's hard to provide specifics without knowing the rest of your project.
Jivonte
Posts: 11
Joined: Thu Aug 08, 2024 6:04 pm

Re: Achieving an objective by moving an object from one area to another

Post by Jivonte »

Ah, this is an accurate answer to my question, thank you so much for the reply! It's just what I needed to know
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Achieving an objective by moving an object from one area to another

Post by Tony Li »

Glad to help! If you get stuck or have questions on any Dialogue System aspects of that, don't hesitate to ask here.
Post Reply