| AMIA ARCHIVE https://www.amiaworld.net/phpBB3/ |
|
| Scripting question https://www.amiaworld.net/phpBB3/viewtopic.php?f=2&t=60828 |
Page 1 of 1 |
| Author: | Hrothmus [ Sat, Sep 10 2011, 0:26 AM ] |
| Post subject: | Scripting question |
Is it possible to have an item that is only usable at a specific time? For example: a ring that casts Mage armour only when the time of day is 1200 (in game time)? |
|
| Author: | corypx [ Sat, Sep 10 2011, 0:28 AM ] |
| Post subject: | Re: Scripting question |
Hrothmus wrote: Is it possible to have an item that is only usable at a specific time? For example: a ring that casts Mage armour only when the time of day is 1200 (in game time)? well there is a cursed item that can only be used on a location at a settime, so I would assume they can work something out. |
|
| Author: | Glim [ Sat, Sep 10 2011, 0:28 AM ] |
| Post subject: | Re: Scripting question |
Yes. Cast it automaticly at that time? That's going to eat up some server resources, having a constant check (I would think). But just to only have it function at a certain time, activated by a player still. Easy. |
|
| Author: | Hrothmus [ Sat, Sep 10 2011, 0:41 AM ] |
| Post subject: | Re: Scripting question |
Interesting.... very good to know. Thanks for the quick responses. |
|
| Author: | Feonir [ Sat, Sep 10 2011, 2:13 AM ] |
| Post subject: | Re: Scripting question |
It wouldnt need a heartbeat script, all the script has to do is on use, check what time is, if it isnt appointed time, then nothing happens, or backfire or <insert shit here>. The old Lycan rings used to do that, only worked in outdoor areas and only worked after nighttime. |
|
| Author: | Glim [ Sat, Sep 10 2011, 3:31 AM ] |
| Post subject: | Re: Scripting question |
Feonir wrote: It wouldnt need a heartbeat script, all the script has to do is on use, check what time is, if it isnt appointed time, then nothing happens, or backfire or <insert shit here>. The old Lycan rings used to do that, only worked in outdoor areas and only worked after nighttime. Yup. I distinguished between ability to cast on use, at a given time, or to cast automatically at a given time. The former doesn't need a heartbeat, as you say. The latter most likely would. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|