Enemy Returner
Overview
Creator:
justin
Added: 03 Dec 2015
Tags:
Enemy,
FFC,
Global
|
View Script |
Information
Trick ZC into respawning enemies when it normally wouldn't.
Update: Now with a global version and the original FFC version.
Update: Now with a global version and the original FFC version.
Description Setup Reviews Comments
Only requires std.zh
Set the two constants to suit your quest.
ERETURNER_ENEMY is the enemy# of an immobile enemy. It will never be seen. Something like the Fire enemy (#85 in classic set) works great.
ERETURNER_SCREEND. Screen->D[] registers are variables specific to each screen. Other scripts might use these. Choose a number 0-7 unused by other scripts in your quest.
--- these next three only needed for Global version
ERETURNER_NUMVISITS. To the number of screen visits required in the global version.
Adjust ERETURNER_SFMISCGS if other scripts use the General Use (script) screen flags, see notes in code about how to change.
Add glb_EReturner(); to somewhere before Waitframe(); in global loop (or use sample global if no other global scripts running).
----
Attach script to FFC
D0 = Number of enemies the script should reset to. ie The number of enemies originally on screen.
D1 = Number of visits to the screen for it to be reset.
D2 = set to 1 to not run if no enemies on screen (let ZC do its normal respawning in this case). Leave at 0 to always run
Notes on FFC
- Number of visits doesn't count when number of enemies onscreen is greater or equal to D0.
- Setting D0 to greater than number of enemies originally onscreen doesn't seem to break anything, but probably not a good idea.
- Setting D1 to 1 would be like Enemies Always Return screen flag, but with greater control like only respawning 4 of the 8 enemies everytime.
Set the two constants to suit your quest.
ERETURNER_ENEMY is the enemy# of an immobile enemy. It will never be seen. Something like the Fire enemy (#85 in classic set) works great.
ERETURNER_SCREEND. Screen->D[] registers are variables specific to each screen. Other scripts might use these. Choose a number 0-7 unused by other scripts in your quest.
--- these next three only needed for Global version
ERETURNER_NUMVISITS. To the number of screen visits required in the global version.
Adjust ERETURNER_SFMISCGS if other scripts use the General Use (script) screen flags, see notes in code about how to change.
Add glb_EReturner(); to somewhere before Waitframe(); in global loop (or use sample global if no other global scripts running).
----
Attach script to FFC
D0 = Number of enemies the script should reset to. ie The number of enemies originally on screen.
D1 = Number of visits to the screen for it to be reset.
D2 = set to 1 to not run if no enemies on screen (let ZC do its normal respawning in this case). Leave at 0 to always run
Notes on FFC
- Number of visits doesn't count when number of enemies onscreen is greater or equal to D0.
- Setting D0 to greater than number of enemies originally onscreen doesn't seem to break anything, but probably not a good idea.
- Setting D1 to 1 would be like Enemies Always Return screen flag, but with greater control like only respawning 4 of the 8 enemies everytime.



