Jump to content

Dynamic Tile Overlay (ZASM)

Overview
Creator: Timelord Added: 12 Jul 2016 Tags: FFC Downloads: 33
Rating[?]: No rating
View Script Download Example
(904.21 KB)
Information

Description Setup Reviews Comments

  • Unzip the package OverlayTIle.zip and drop the file FFC_OverlayTIle.txt into your ZQuest path.
  • In ZQuest, go to Menu->Quest->Scripts->Import ASM FFC Script.
  • Select an empty slot.
  • Name the slot OverlayTile.
  • When prompted, select the file 'FFC_OverlayTile.txt' in the dialogue box.
  • ZC will parse it, and add it to your ffc table. From this point onward, you will be able to select it as normal when placing ffcs on the screen.
  • Place an ffc on a screen, set its script to 'OverlayTile', and set its combo data to something other than '0'.
Script Args:

D0, D1: Base and overlay tile of first overlay set. D0 is the main tile, and we will overlay D1 over it.
D2, D3: Second set.
D4, D5: Third set.
D6, D7: Fourth set.

If any value in these sets is '0', no overlay for that set will occur.

See the demo quest for an example use.

This ZASM file is intended as a stopgap method to access this feature, until a future ZC version includes an instruction (e.g. void OverlayTIle(int src, int dest) ) for ZScript to do this.

Note: Pure likes to remove the leading space in the code. All ZASM instructions require a leading space before them, or you will receive an error. if you see an error (illegal instruction (d0), add a space before the first instance of PUSHR d0 in the assembly.