Talk:Two-way radio

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search

What determines if a faction will send help?

First, start with faction Ranking for player (likes_u), multiply by 3, and add Respect (respects_u). This is the base value of the variable "bonus".

ex: if you are Liked (6-10) and Spoken Of (11-20), "bonus" will be in the range of 29 to 50.

Then, modify "bonus" based on faction flags:

  • If "(t)heir ultimate goal is rebuilding civilization" (FACGOAL_CIVILIZATION), add 2
  • If "(t)hey earn money by mercenary work" (FACJOB_MERCENARIES), add 4
  • If "(t)hey earn money by medical aid" (FACJOB_DOCTORS), add 2
  • If "(t)hey are known for their charitable nature" (FACVAL_CHARITABLE), add 3

But!

  • If "(t)hey are known for their isolationism" (FACVAL_LONERS), subtract 3
  • If "(t)hey are known for treachery (FACVAL_TREACHERY), subtract a random number (range 0~8)

NOTE: This is not the same order of operations as the code in iuse.cpp (iuse::two_way_radio), but should be equivalent in result.


If the final value of "bonus" is higher than 25, you will get an NPC sent your way ("They reply, "Help is on the way!""). The event EVENT_HELP (currently disabled) will be executed to spawn this NPC within a certain timeframe and distance, noted below. A note will be added to your memorial log, and the faction will lose a small amount of Ranking (3~5) and Respect (0~8) for you.

If the final value of "bonus" is from -4 to 25, your request is rejected by the faction ("They reply, "Sorry, you're on your own!""). You will lose 0~5 points of Respect with them.

If the final value of "bonus" is -5 or lower, your request will be ridiculed by the faction ("They reply, "Hah! We hope you die!""). You also lose 1~8 points of Respect with them.

What determines if a faction will send help?

wizards probably