![]() |
[PROBLEM] Weapon Weight multiplied * 10? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: [PROBLEM] Weapon Weight multiplied * 10? (/Thread-PROBLEM-Weapon-Weight-multiplied-10) |
[PROBLEM] Weapon Weight multiplied * 10? - Baeguth - 08-16-2017 01:51 AM Hello, I'm trying to obtain the WEIGHT of the weapon used inside the @HIT @HITMISS triggers. I know that ARGO is the weapon used inside those triggers. I've a weapon in which i've set WEIGHT: WEIGHT = 12 I dont know why when i try to get the WEIGHT in @HIT @HITMISS triggers through: <ARGO.WEIGHT> It returns a value multiplied * 10. Every time. WHY? For example right now for that weapon it always returns 120. Is it a normal behaviour? RE: [PROBLEM] Weapon Weight multiplied * 10? - darksun84 - 08-16-2017 02:35 AM Like in skills, the last digit is the decimal. So 120 is 12.0 and Archery 1000 is actually 100.0 RE: [PROBLEM] Weapon Weight multiplied * 10? - Coruja - 08-16-2017 03:48 AM yes that's the decimal digit WEIGHT=12 is the same of 1.2, the client paperdoll can only show integer numbers so it will display just "1" but internally on sphere this value is "1.2" so when you use <WEIGHT> it will return the raw value used by sphere (12). To get the real value you must use <fval <WEIGHT>> to change it to "1.2", or <eval <WEIGHT>/10> to change it to "1" if you prefer. To get precise results inside formulas you can also use the raw value (12) on the formula and just split the final result into /10 |