Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PROBLEM] Weapon Weight multiplied * 10?
Author Message
Baeguth
Apprentice
*

Posts: 12
Likes Given: 4
Likes Received: 0 in 0 posts
Joined: Aug 2017
Reputation: 0



Post: #1
[PROBLEM] Weapon Weight multiplied * 10?
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?
08-16-2017 01:51 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: [PROBLEM] Weapon Weight multiplied * 10?
Like in skills, the last digit is the decimal.
So 120 is 12.0 and Archery 1000 is actually 100.0
08-16-2017 02:35 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #3
RE: [PROBLEM] Weapon Weight multiplied * 10?
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
08-16-2017 03:48 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)