Advertisement
Moolah60

AC Villager Move Out Logic

Apr 11th, 2021
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. 1) Every villager in town is checked. The villager selected to move out is the one the remaining unchecked villagers are checked against, and we will refer to it as the "reference villager".
  2.  
  3. 2) Every villager gets checked will the following. If the villager being checked has a lower value than the reference villager, it becomes the reference villager (the one that will be moved out at the end). If the values are equal, then the reference villager does not change.
  4.  
  5. 2a) First, the number of memories are checked. Lower becomes the reference villager.
  6. 2b) Second, the number of letters in the memories. Lower becomes the reference villager.
  7. 2c) Third, the number of different towns in their memories. Lower becomes the reference villager.
  8. 2d) Fourth, the number of villagers with the same personalities as the reference and villager being checked against are counted. Whichever is higher becomes the reference villager.
  9. 2e) If all of the following is the same, keep the reference the villager the same, and add the other villager to a "candidate list" where it may be randomly removed. The reference villager is also part of this list.
  10. 2d) Repeat steps 2a - 2d until every villager has been compared.
  11.  
  12. 3) Next, if the reference villager has moved towns before, but another villager hasn't, that villager will become the reference villager. In otherwords, a villager that has not moved before is selected as the reference villager.
  13.  
  14. 4) Otherwise, we do another series of checks:
  15.  
  16. 4a) If both villagers moved, the number of times they moved are compared. The one that has moved less times becomes the reference villager.
  17. 4b) If both villagers times moved is the same, then the reference villager does not change and the next villager is compared.
  18.  
  19. 5) Finally, if there is only a single villager (the reference villager), then that villager is selected. However, if multiple villagers had the same values from step 2, then one of them is selected randomly to move out.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement