C-Dawg
11-13-2006, 08:24 PM
I'm wondering if there is (or could be) a way for an FFC to check whether it is on the same square as one of Link's weapons in use. For instance, his sword, an arrow, an exploding bomb, etc. Currently this works with secret combos (sortof - see my bug reports) but it would be more efficient to use scripts to track damage behavior.
It strikes me that you could simulate this behavior using an invisible FFC that "tracks" Link's attack. For instance, it could wait for Link's action to be "Attack," and then place an invisible FFC at the location his sword will swing for as long as his sword is there. If slashing is enabled, it can start where the sword starts and move along Link. Then, you could check whether the FFCs collide.
I dont' think this will work with other items, though, since I don't think there's a way to test what item Link is using.
Just for background, what I'm trying to do is program a boss with the following behavior:
1. Consists of one 2/2 body and two 2/2 wings
2. Flies around the room in, periodically spawning bombachus
3. If Link hits one wing with an arrow, it will stop flapping for a brief period
4. If Link his the other wing quickly enough, the boss will drop to the floor and be stunned. Boss is vulnerable to sword damage (tiered secret combos are fine) in this state only.
5. After a short period, boss will hop back up and take to the sky again.
With a way to detect whether the wing FFCs are in contact with an arrow, this is pretty easy. But without it, you'd have to resort to screen-based warping to determine which wing was hit first.
It strikes me that you could simulate this behavior using an invisible FFC that "tracks" Link's attack. For instance, it could wait for Link's action to be "Attack," and then place an invisible FFC at the location his sword will swing for as long as his sword is there. If slashing is enabled, it can start where the sword starts and move along Link. Then, you could check whether the FFCs collide.
I dont' think this will work with other items, though, since I don't think there's a way to test what item Link is using.
Just for background, what I'm trying to do is program a boss with the following behavior:
1. Consists of one 2/2 body and two 2/2 wings
2. Flies around the room in, periodically spawning bombachus
3. If Link hits one wing with an arrow, it will stop flapping for a brief period
4. If Link his the other wing quickly enough, the boss will drop to the floor and be stunned. Boss is vulnerable to sword damage (tiered secret combos are fine) in this state only.
5. After a short period, boss will hop back up and take to the sky again.
With a way to detect whether the wing FFCs are in contact with an arrow, this is pretty easy. But without it, you'd have to resort to screen-based warping to determine which wing was hit first.