Skip to content

Instantly share code, notes, and snippets.

@Swyter
Last active September 2, 2023 03:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Swyter/ef636cd74e569b60675ef879c6512ea2 to your computer and use it in GitHub Desktop.
Save Swyter/ef636cd74e569b60675ef879c6512ea2 to your computer and use it in GitHub Desktop.
Sphinx -- Heliopolis Farmer Brothers scripting notes
HT_Objective_Hel_Exterior_Farm_PlotTime: in-game timestamp in seconds when they originally started to dig
(gettimer - gPlotTime > 300 seconds) means done
HT_Objective_Hel_Exterior_Farm_FarmerState: 0 = waiting for player to kill all eyes,
1 = waiting in the hut to pick a plot,
2 = walking to farm plot,
3 = digging,
4 = walking back to hut,
5 = waiting for player to give reward
HT_Objective_Hel_Exterior_Farm_Plot: Active/current plot index, from 1 to 16 (this and the one below are set by each plot context action)
HT_Objective_Hel_Exterior_Farm_PlotList: bitfield of spent/dug plots, the set bit index comes from the Farm_Plot objective
16 bits when completed, starts at index 1: 0x1FFFE / 0001 1111 1111 1111 1110
HT_Objective_Hel_Exterior_Farm_Complete: 0 = false, 1 = all plots dug
HT_Objective_Hel_Exterior_Farm_Plot01: used for the trigger state, self-incremented by FarmPlotRelay01 and 02
HT_Objective_Hel_Exterior_Farm_Plot02: see the FarmPlot script in IO_hel_ext_palace.elf
HT_Objective_Hel_Exterior_Farm_Plot03: first frame -> WaitForClose is nothing being shown / initial. (0)
HT_Objective_Hel_Exterior_Farm_Plot04: WaitForClose -> WaitForOpen1 is scarab sign being planted. (1)
HT_Objective_Hel_Exterior_Farm_Plot05: WaitForOpen1 -> WaitForOpen2 is the sign being removed/nothing being shown again/started digging. (2)
HT_Objective_Hel_Exterior_Farm_Plot06: WaitForOpen2 -> WaitForever is the plant suddenly growing. waits forever at the end. (3)
HT_Objective_Hel_Exterior_Farm_Plot07:
HT_Objective_Hel_Exterior_Farm_Plot08:
HT_Objective_Hel_Exterior_Farm_Plot09:
HT_Objective_Hel_Exterior_Farm_Plot10:
HT_Objective_Hel_Exterior_Farm_Plot11:
HT_Objective_Hel_Exterior_Farm_Plot12:
HT_Objective_Hel_Exterior_Farm_Plot13:
HT_Objective_Hel_Exterior_Farm_Plot14:
HT_Objective_Hel_Exterior_Farm_Plot15:
HT_Objective_Hel_Exterior_Farm_Plot16:
4
1 3 5
__ 2 6 7
( ) _ _ 8 /
( ) _____ / \ 9 /
/ /_____ /
_ _ / / \__/
/ 10 \
11 \_________
12 \
13 \
14
15
16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment