Time/Use Limit Item
Overview
Creator:
Alucard648
Updated: 24 May 2024
Tags:
Global,
Item
Downloads: 18
|
View Script
Download Package (859.46 KB) |
Information
Time and Use count limited items. Made on request by SkyFlare.
Description Setup Reviews Comments
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.
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.



