npctalk: add a bunch of new options to JSON #27734
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
SUMMARY: Infrastructure "npctalk: add a bunch of new options to JSON"
Purpose of change
Add a variety of new options:
and
dynamic linesu_driving
,npc_driving
, andno_vehicle
dynamic lineshas_pickup_list
dynamic linemission_goal
,mission_complete
,mission_incomplete
conditionsnpc_following
,npc_friend
,npc_hostile
conditionsnpc_train_styles
,npc_train_skills
conditionsadd_debt
effectmission_opinion
opinion modifiersDescribe the solution
and
is implemented as a vector of dynamic_line_t and each entry in the vector is called and the result is concatenated together.u_driving
andnpc_driving
check if the player or NPC is currently in control of a moving vehicle.no_vehicle
is true if both of the previous are false.has_pickup_list
checks if the NPC has a pickup list in their follower rules.mission_goal
checks if the current selected mission for the conversation matches the specific type.All the others are straightforward boolean checks of the relevant attribute.
Additional Context
Long term plan is at #27643