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

[WIP] Little rework of Find Dog quest #45015

Closed
wants to merge 2 commits into from
Closed

[WIP] Little rework of Find Dog quest #45015

wants to merge 2 commits into from

Conversation

El-Jekozo
Copy link
Contributor

Little rework of Find Dog quest

Summary

SUMMARY: None

Purpose of change

Little rework of "Find lost dog" mission, to be more JSONised and actually working. As stated here #44833 , it's not working properly. This rework should fix this issue.

Describe the solution

I made a little rework of this quest to be more JSONised, added effect of getting dog_whistle upon starting and spawning friendly dog in closest house, changed dialogue, so that it will reflects on how MGOAL_FIND_MONSTER works.

Describe alternatives you've considered

I put "search_range": 75 just in case someone plays with large distances between towns, and that value may change to larger or smaller number.

Testing

I did a test locally, works mostly as intended. For some reason, sometimes, mission may put dog on house_roof or house_basement, although I stated "z": 0 at assign_mission_target. Additional testing is appreciated.

Additional context

Little rework of Find Dog quest
@Night-Pryanik
Copy link
Contributor

For some reason, sometimes, mission may put dog on house_roof or house_basement, although I stated "z": 0 at assign_mission_target.

I guess this is happening because this snippet "om_terrain": "house", "om_terrain_match_type": "PREFIX" could find house_roof or house_basement. And z=0 is used only when searching for appropriate house on the overmap. In other words: game searches for house_foo on z=0 level, not places monster on this specified z-level.

Also you should remove place_dog mission start function as with your change it isn't used anywhere anymore.

@curstwist curstwist added [JSON] Changes (can be) made in JSON Missions Quests and missions NPC / Factions NPCs, AI, Speech, Factions, Ownership labels Oct 22, 2020
@El-Jekozo
Copy link
Contributor Author

El-Jekozo commented Oct 23, 2020

Also you should remove place_dog mission start function as with your change it isn't used anywhere anymore.

I'm not so good with C++, so if someone point out on what should I remove (or if someone more experienced suggest changes to PR) I would appreciate it.

@El-Jekozo
Copy link
Contributor Author

I'm back on this issue. Any thoughts how to do it right? To search only on specific z-lvl.
At first I thought that specifying z-lvl will search only on that z-lvl, but it turns out, it didn't. It still search on any z-lvl and can chose any tile with house prefix, such as house_n_roof or house_n_basement, and it places dog on a tagged tile, that can be on any z. So the only solution I see at the moment would be searching for specific house(?), but there will be problems with replacing overmap tile(?).

@El-Jekozo El-Jekozo changed the title Little rework of Find Dog quest [WIP] Little rework of Find Dog quest Nov 19, 2020
@stale
Copy link

stale bot commented Dec 20, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

@stale stale bot added the stale Closed for lack of activity, but still valid. label Dec 20, 2020
@El-Jekozo El-Jekozo closed this Dec 26, 2020
@El-Jekozo El-Jekozo deleted the find-dog-rework branch December 26, 2020 14:49
@faefux
Copy link
Contributor

faefux commented Jan 18, 2021

Hi, @El-Jekozo. What needs to be done for this to be mergable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[JSON] Changes (can be) made in JSON Missions Quests and missions NPC / Factions NPCs, AI, Speech, Factions, Ownership stale Closed for lack of activity, but still valid.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants