Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More flexibility in player walking towards item on action use #367

Open
StraToN opened this issue Sep 23, 2023 · 1 comment
Open

More flexibility in player walking towards item on action use #367

StraToN opened this issue Sep 23, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@StraToN
Copy link

StraToN commented Sep 23, 2023

Is your feature request related to a problem? Please describe.
From Cidney on Discord:

Right now it looks like the player always walks towards the ESCItem when clicked (either the center of the item or a waypoint). If the ESCItem isn't reachable (say, you're looking at the sky) and there's no waypoint in the walkable area, it fails silently. This is getting to a be a bit of an annoyance.

Usually in adventure games the player only moves to use, not to look. Is it possible to give the designer more control over this?

Describe the solution you'd like
2 proposals:

  1. either we remove completely the player walking automatically towards the ESCItem and it's then required to code the walk on the ESC script
  2. either we add a parameter to ESCItem to enable or disable automatic walking (and if disabled, then it is also required to explicitly add a walk command in the ESC script)

Solution 2 would have our preference.
However we need to think of hybrid cases where we want look action to not walk towards object, and other actions to walk towards it. One parameter may not be sufficient here.

Describe alternatives you've considered
See above

Additional context
Add any other context or screenshots about the feature request here.

@StraToN StraToN added the enhancement New feature or request label Sep 23, 2023
@oierbravo
Copy link

oierbravo commented Sep 23, 2023

There is a way to achieve such behavior with Event flags.
Event flags

:look | TK
say current_player "I don't see anything unusual about it."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants