Selector out of range action?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Arcanor
Posts: 81
Joined: Sun Oct 05, 2014 4:20 am

Selector out of range action?

Post by Arcanor »

I'd like to display an Alert when the player clicks on an Actor that's beyond their Usable range. Looking Selector.cs Update(), I see that nothing happens if distance > usable.maxUseDistance.

Is this kind of functionality something you might consider adding to Dialogue System? Or should I hack something in?
Arcanoria Games - http://www.arcanoria.com - indie game development blog
twitter: https://twitter.com/WaltCollins3 @WaltCollins3
Game titles: Pesticide Patrol, Arcanoria Chronicles, CyberGhost, Arcanoria
PLAY NOW: http://arcanor.itch.io/
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Selector out of range action?

Post by Tony Li »

Good idea! I'll add this and post a patch containing the updated Selector.cs.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Selector out of range action?

Post by Tony Li »

Walt - I just PM'ed you your access info for the customer download page where you can download a patch. The updated Selector lets you specify a "too far" alert message and/or invoke a custom event such as calling Play() on an Audio Source.
Arcanor
Posts: 81
Joined: Sun Oct 05, 2014 4:20 am

Re: Selector out of range action?

Post by Arcanor »

Thanks so much Tony. That sounds great! I'll test it out today and let you know how it works in my game.

Awesome service!!!
Arcanoria Games - http://www.arcanoria.com - indie game development blog
twitter: https://twitter.com/WaltCollins3 @WaltCollins3
Game titles: Pesticide Patrol, Arcanoria Chronicles, CyberGhost, Arcanoria
PLAY NOW: http://arcanor.itch.io/
Arcanor
Posts: 81
Joined: Sun Oct 05, 2014 4:20 am

Re: Selector out of range action?

Post by Arcanor »

Works great, thanks Tony!
Arcanoria Games - http://www.arcanoria.com - indie game development blog
twitter: https://twitter.com/WaltCollins3 @WaltCollins3
Game titles: Pesticide Patrol, Arcanoria Chronicles, CyberGhost, Arcanoria
PLAY NOW: http://arcanor.itch.io/
Post Reply