Timer isn't being called - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Timer isn't being called (/Thread-Timer-isn-t-being-called) |
Timer isn't being called - Fake Lunk - 06-20-2012 04:42 PM Hi everyone, in the script below I'm trying to create an object which checks the death condition of the player. However, When the timer completes, it doesn't get to the trigger. so the script stops before that. Anyone might wonder why the @Timer isn't being called? ps: this script is supposed to work when the player is dead, in case this info is relevant. thanks everyone Code: //**************************************************// RE: Timer isn't being called - Shaklaban - 06-20-2012 09:13 PM well your item is not placed on the world, you must place it on a character or a position. Code: serv.newitem i_death_status RE: Timer isn't being called - Fake Lunk - 06-20-2012 11:04 PM Thank you Shaklaban! I thought that when created it was placed in the same position of the SRC or ARGO. Worked fine now! RE: Timer isn't being called - Fake Lunk - 06-24-2012 05:30 AM Sorry for the bump! But I wonder if there's a way to link two different objects (one don't have any relation with the first or its "cont"). I thought I could search for the uid of one of the objects and apply it to the Link of the second... but how can I find for a specific UID? thanks RE: Timer isn't being called - Shaklaban - 06-24-2012 05:49 AM hmm personally i never use links, i just give them tag and call it by refs for example: tag.myitem=<argo.uid> //for example we want to link argo and when i need to call it: ref1=<tag0.myitem> if <ref1> //if the item exist ref1.say hello ... endif RE: Timer isn't being called - Fake Lunk - 06-24-2012 05:55 AM that sounds a good approach, but still how could I get to set the ref as an other object that I can't find trhu argo/src/i ? I mean, I got an object X that is equipped by a char, and I want object X to find object Y properties. Object Y is in a room, far away from the char who's holding object X., for example. Is that possible? Thanks for you help Shaklaban! RE: Timer isn't being called - Shaklaban - 06-24-2012 10:45 AM Yes possible but you need to know uid of y, you can hold it on a tag on a x object. RE: Timer isn't being called - Fake Lunk - 06-25-2012 05:01 AM ha! wasn't sure how to link the uid to the other object. Now I made it! Thanks once again Shaklaban! For further doubts I linked a object with another by either using "Link" or "Tag" (like Shaklaban said). You can link like that: - get the UID (serial) number of the object you want to link - when creating the other object, simply use something like: Code: On=@Create thanks you all |