EunosXX

Zelda1 drop mechanics.

Sep 13th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. Very important video game stuff here.
  2.  
  3. Anatomy of a Zelda 1 kill.
  4. When an enemy is killed, a death sound plays instantly. At the same time, the consecutive counters are increased but not the random counter (bomb and fairy are in fact on separate counters).
  5. At the same time, a death animation begins to run for 21 frames. I call this the death spark.
  6. After 21 frames the spark animation ends, the random counter increments by 1, and a drop is calculated for that enemy based on the counters on that exact frame. Priority is Forced Fairy > Forced Bomb/Rupee > Random.
  7.  
  8. So, if one enemy is in its death spark, and more are killed, you may get unexpected results.
  9.  
  10. ---------------------------------------
  11. Example:
  12.  
  13. Darkwing entered the raft anteroom with 8 consecutive and random on 9 (meaning next kill was heart, then bomb, then rupee).
  14. He bombed and killed three darknuts.
  15. The first kill was instant on the center darknut. Consecutive goes to 9, random counter doesn't increase yet.
  16.  
  17. The second and third kills happened shortly after the explosion, as two darknuts on the left and right of the bomb turned into it.
  18. The left one was hit before the death spark from the first kill was completed. Now the consecutive goes to 10 on a bomb kill.
  19. When the center darknut's spark resolved, the counters were checked and a forced bomb was detected and dropped. This is the moment that the bomb/rupee counter resets. At the same time, the random counter was incremented by 1 to 0 (so the next kill could drop a bomb randomly).
  20. Shortly after the first darknut drops an item, the second darknut's spark resolves and the random counter cycles from 0 to 1. The the second darknut's drop was a lucky random bomb on "1".
  21.  
  22. ---------------------------------------
  23.  
  24. Had the three kills happened simultaneously, the forced bomb overwrites the random chance because they are calculated on the same enemy.
  25. If the second and third darknuts are too late to the bomb party, the first one's death spark resolves with consecutive still on 9.
Add Comment
Please, Sign In to add comment