![]() |
Timer and decay flag - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Timer and decay flag (/Thread-Timer-and-decay-flag) Pages: 1 2 |
Timer and decay flag - CptObvious - 04-27-2012 05:48 AM Good day, I'm having an annoying problem with the decay flag. I have to launch a sector.allitems checking a tag on everything and deleting it. When I do this I get a ton of console errors like Quote:ERROR:Timer expired without DECAY flag 'curtain' (UID=40001bb3)?Well... "curtain" is an item set as static (used in game .static i_curtain) and its timer is -1 as it should be. What is the problem? Is something about the attr_static or attr_move_never? Is about the sector.allitems? Whaaaat?! >_< RE: Timer and decay flag - Shaklaban - 04-27-2012 06:47 AM there is no problem its harmless in this situation. RE: Timer and decay flag - admin phoenix - 04-27-2012 06:11 PM you have to put an return 1 under the on@timer trigger at the end of your code RE: Timer and decay flag - CptObvious - 04-28-2012 04:42 AM LOL but these items have no @timer! Plus their timer is -1 and nothing can change this property °O° RE: Timer and decay flag - Anarch Cassius - 04-28-2012 04:56 AM The timer became -1 after it expired. If you just use .add to place a static it will have no timer. If you ever move the object and it doesn't have the no decay flag it will set its timer to the countdown for decay. Normally this would just delete the item... but yours isn't set to decay either, so Sphere is letting you know it expects you to be doing something when the timer goes off because it sure as heck has no idea what to do. So it warns you and set the timer to -1 and continues. RE: Timer and decay flag - Khaos - 04-29-2012 12:47 PM These might help. Code: on=@create or Code: on=@create RE: Timer and decay flag - CptObvious - 04-29-2012 07:01 PM Well the situation is a bit confusing. I placed some items using the .static and some setting timer=-1 in the script (without flags). All of them, in the .info, have timer=-1. When the sector.allitems occurs all of the items give that console error, without decaying. It's like the sector.allitems resets the timer, so it become 0, so the item should decay but can't do it, so there is the error *_* RE: Timer and decay flag - Khaos - 04-30-2012 12:54 AM Yes, I gave you the attribute answer. Which you can set on items that don't have it. RE: Timer and decay flag - CptObvious - 04-30-2012 07:21 PM Oh, so I have to set them decay even if they shall not decay. I'm trying right now ![]() RE: Timer and decay flag - Khaos - 05-01-2012 11:30 AM I assume my flag method worked? |