2 item scripts, FFC script and global one for setting up limited items. First one is use count limit, like sword sharpening in Majora`s Mask. Item disappears from Link`s inventory after it was used certain number of times. The second one is time limited item that disappears from Link`s inventory after certain time since pickup.
Update 24.05.2024 - Refactored so it uses it`s own global array, not that junk GlobalRAM. Simplified Global script combining.
Update 25.05.2024 - Added FFC script that can prevent time/use limited item/s frim expiring in specific screens.
Uses 1 global array (256 ints).
1. Assign SetItemLimit into OnPickUp item script
2. Assign UpdateItemDurability into OnAction item script, if needed
//D0 - unused
//D1 - Use count/Time limit, if D1 >0 - time limit, in second. If <0, Abs -> Item Durability, use count, ala Minecraft.
//D2 - Sound to play on expiration.
//D3 - Message to render, when item expires.
//D4 - Pickup string. Redundant in 2.55
3. Global Script combining: put UpdateTimeLimitItems() into main loop of Active global script.
ffc script TimeLimitItemController
//FFC script to control whether time limit is running for items or not.
//Place invicible FFC anywhere in the screen.
//D0 - Item to be excempt for time expiration in this screen. 0 - all time-limited items.