One-Way Walk Combos
Overview
Creator:
justin
Added: 16 Jan 2015
Tags:
FFC
Downloads: 35
|
View Script
Download Example (868.12 KB) |
Information
Combo that allows Link to only walk in one direction through it. With a separate combo that can change the direction of the one-way combos.
Great for puzzles and mazes.
Great for puzzles and mazes.
Description Setup Reviews Comments
Only std.zh is required.
1. Create one-way tile for each direction (up, down, left, right) - rotate tile feature is helpful. Create solid combos using these tiles (can be animated). Order your combos - Up, Down, Left, Right. Set the ONEWAY_UP constant in the script file to your Up combo.
2. Set FFC_MISC_ONEWAY to a value 0-15, that is not used by other scripts (other FFC->Misc[] ) values or constants
3. Import the script, and assign the three FFC scripts to slots.
4. Place the FFC_OneWay script on the screen on your OneWay solid combos, set the FFC combo to an invisible combo not Combo0. Set D0 to 1 if you want any changes in the OneWay combo's direction to be saved for screen changes.
5. Don't worry too much about lining up the FFC perfectly, the script snaps it to the grid. But this means if you are slightly left or up of the combo you intend that it'll be on the left or above combo.
Note about screen edges. The OneWay can be placed on a screen edge to scroll offscreen. But with "Smart Screen Scrolling" rule off you can scroll back onto the screen unaffected by the OneWay combo. "Smart Screen Scrolling" rule on will prevent scrolling onto the screen because the OneWay combo is a solid combo. Impossible to check for OneWay combo on adjacent screen, so you can't scroll left onto a OneWay Left.
If using the FFC_OneWayChanger as well... can be whatever combo you want, or blank (not Combo0) if placing it over a "step-like" combo on screen. Stepping on it does the change.
D0 = FFC# that it is changing. If you set it to a number not running the FFC_OneWay script it won't do anything. Leave D0 at zero, if you want the changer to change all OneWays on screen.
D1 = the new direction for the OneWay. Or -1 for next direction. -2 for previous direction. -3 for opposite direction. -4 for random direction. -5 no direction
D2 = reset. Stepping once on the changer sets the new direction. Stepping again resets to original screen direction ? 0 = no, 1 = yes
Note about reset: it resets to the original direction screen when you came on screen. not to the previous direction. if using save on FFC_OneWay, it will be the saved value.
FFC_OneWaySameChanger - as above except the D values are...
D0 = the direction that will be changed. all OneWay's currently this direction will be changed to...
D1 = the new direction. same values as with D1 for FFC_OneWayChanger
There is no reset feature on this function.
1. Create one-way tile for each direction (up, down, left, right) - rotate tile feature is helpful. Create solid combos using these tiles (can be animated). Order your combos - Up, Down, Left, Right. Set the ONEWAY_UP constant in the script file to your Up combo.
2. Set FFC_MISC_ONEWAY to a value 0-15, that is not used by other scripts (other FFC->Misc[] ) values or constants
3. Import the script, and assign the three FFC scripts to slots.
4. Place the FFC_OneWay script on the screen on your OneWay solid combos, set the FFC combo to an invisible combo not Combo0. Set D0 to 1 if you want any changes in the OneWay combo's direction to be saved for screen changes.
5. Don't worry too much about lining up the FFC perfectly, the script snaps it to the grid. But this means if you are slightly left or up of the combo you intend that it'll be on the left or above combo.
Note about screen edges. The OneWay can be placed on a screen edge to scroll offscreen. But with "Smart Screen Scrolling" rule off you can scroll back onto the screen unaffected by the OneWay combo. "Smart Screen Scrolling" rule on will prevent scrolling onto the screen because the OneWay combo is a solid combo. Impossible to check for OneWay combo on adjacent screen, so you can't scroll left onto a OneWay Left.
If using the FFC_OneWayChanger as well... can be whatever combo you want, or blank (not Combo0) if placing it over a "step-like" combo on screen. Stepping on it does the change.
D0 = FFC# that it is changing. If you set it to a number not running the FFC_OneWay script it won't do anything. Leave D0 at zero, if you want the changer to change all OneWays on screen.
D1 = the new direction for the OneWay. Or -1 for next direction. -2 for previous direction. -3 for opposite direction. -4 for random direction. -5 no direction
D2 = reset. Stepping once on the changer sets the new direction. Stepping again resets to original screen direction ? 0 = no, 1 = yes
Note about reset: it resets to the original direction screen when you came on screen. not to the previous direction. if using save on FFC_OneWay, it will be the saved value.
FFC_OneWaySameChanger - as above except the D values are...
D0 = the direction that will be changed. all OneWay's currently this direction will be changed to...
D1 = the new direction. same values as with D1 for FFC_OneWayChanger
There is no reset feature on this function.


