Custom function to get MORE1L / MORE1H from MORE1 - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Custom function to get MORE1L / MORE1H from MORE1 (/Thread-Custom-function-to-get-MORE1L-MORE1H-from-MORE1) |
Custom function to get MORE1L / MORE1H from MORE1 - Coruja - 11-15-2012 05:26 AM As anyone know, a single MORE1 can be distingued in 2 parts: MORE1L and MORE1H I have an item that store "MORE1" tags from many itens, and I need to separate these tags into MORE1L and MORE1H. How I can do this using custom formulas? its something like this: Code: [ITEMDEF i_lol] PS: obviously the easy way is store it directly on the tag like TAG.ITEM1.Durability=<MORE1>,<MORE1L>,<MORE1H> but it doesnt make sense as I can store a simple and shorter tag to calculate the value later only when its necessary. For 20.000+ items with more than 100.000 tags this thing will make a big difference RE: Custom function to get MORE1L / MORE1H from MORE1 - RanXerox - 11-15-2012 05:48 AM Since TAGs are strings, it will end up being just as complicated and I doubt there is any computational "savings" to be had by storing the two numeric values as one string... I would use TAG.ItemX.Durability=LOW,HIGH and then distinctly access the two values in the TAG using STREAT and STRARG, and access the respective values on the item using MORE1L and MORE1H. There is probably no value in storing the combined value in the TAG (though not knowing your code, I could be wrong) |