Jump to content

Tower of Hanoi Puzzle

Overview
Creator: Alucard648 Added: 23 Aug 2021 Tags: FFC Downloads: 11
Rating[?]: No rating
View Script Download Package
(1.04 MB)
Information

Description Setup Reviews Comments

1. Set up tiles. One for disk, which will be scaled horizontally depending on disk width. Then up to 4 in horizontal line for tower foundation.
2. Make combo using leftmost foundation tile made previously.
3. Check out constants at the top of script file. Ecpecially FFC_MISC_TOWER_OF_HANOI_NUMDISKS - FFC->Misc[] variable - set it to avoid conflicts with other scripts. Same thing with LINK_MISC_TOWER_OF_HANOI_DISK_IN_HAND - Link->Misc[] variable - set it to avoid conflicts with other scripts.
4. import and compile the script. Assign 2 FFC script slots to scripts.
5. Place invisible FFC with TowerOfHanoiController script. No arguments needed.
6. Place at least 3 FFC`s with combo from step 2, Tile Width equal to foundation width (in tiles) from step 1 and Combo Width (in pixels) for foundation hitbox. Assign TowerOfHanoi script to each of those FFC`s and InitD arguments:
  • D0 Number of disks at the start. Disk width is automatic.
  • D1 At least 1 FFC must have this argument set to anything >0. All disks must be moved to this FFC to trigger puzzle solution.
  • D2 Tile used to render disks. Scaled with disc width. Defaults to TILE_TOWER_OF_HANOI_DISK from top of script file, if set to 0.
7. Test, enjoy, report bugs...