Misc Room Script Flags- I know that they exist and even that there are 5 types. Here's the only one I know of.
Screen->Flags[SF_MISC]&0x008;//Screen flag Script 2So, what are the other four? How can they be used most effectively?
if ((Screen->Flags[SF_MISC] & 0x02) != 0)That's how you check those. Some of the parentheses seem redundant but they're actually important. Each category of screen flags is actually a single number, and you need to use bitwise operations to read the individual flags. 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40 are the 7 flags for the Misc. category.
When you say "crash", do you mean that ZC hangs with music still playing, or does the entire program actually just crash out? The former sounds like an infinite loop lacking a Waitframe, but I couldn't say anything about the latter.Mysterious Script Crashes- Some times, for no apparent reason; scripts activate when they shouldn't. At others, they don't work when they should (and have up to that point). When no change has been made to the scripts in the meantime, how can the source of these errors be discovered?
Any movement pattern you care to create can be made by just directly adjusting Ghost_X and Ghost_Y every frame.Other Movement Patterns- I'm familiar enough with the various Ghost.zh commands to figure out how to use each one. However, other movement patterns have been suggested; for example a sine wave or an infinity loop. Another pattern I don't know how to mimic is that of the common Wizzrobe. So how can these be done? And what are some other movement patterns?
Ghost_X = t*Cos(t); Ghost_Y = t*Sin(t); t++;This is a simple spiral outward, for example.
If your secrets/flags are just binary state things, you could fit a lot more of them on a single screen by using bitwise operations. Instead of having 8 Screen->D variables to work with, you could trigger flags in each one, giving you something like 17 * 8 binary toggles.Detecting If All Switches/FFCS Have Been Activated- One script that I had provided for me does this. I'm trying to refine another (the one utilized by the script you'll see in the Multiple Songs/Ocarinas topic) where when all of the ffcs running that script are activated; then other secrets, triggers, ffcs or whatever is activated as well.
This script is probably one of my most revolutionary designs, since It easily allows you to create up to 8 secrets on screen that can be triggered permanently and 15 others that can be set off temporarily; opens up extra secret flags; bypasses the whole secret combo setup routine and generally allows a greater amount of variety in the puzzle setup available to the player. So, naturally I want it to be the best it can be.
I don't know much of anything about Tango, sorry.