Aurastatcalc problem?!

Weekly updated column for helping skill development. Users can't directly post requests but a PM or mail can be sent to Skill-Clinician.

Moderator: Skill Clinician

Post Reply
User avatar
SpiKe.
Forum Tech Support
Champion of the Light
Posts: 280
Joined: Thu Jul 28, 2011 5:25 pm
Location: Germany
Contact:
Germany

Aurastatcalc problem?!

Post by SpiKe. » Sun Mar 26, 2017 11:48 pm

Hello,

i tried to add a new passive weapon mastery which grants Attackrate/Damage/Defense/FHR by following this guide viewtopic.php?f=4&t=60552&hilit=new+passive+mastery.
I made some changes by not adding the aura to the item itself, but to a charm in my inventory. The aura only works if stat X = 2.
This works by putting a point into the passive (+1) and equipping the item (also +1).

Now im getting a silly problem. When i put a point into the passive and equip the weapon (spear) everything works fine. When i unequip the weapon, stats are still available until i refresh the aura or re-enter the game.

My calc for this is the following:

Code: Select all

(stat('2hstart'.accr) == 2) ? (skill('Spear Mastery'.blvl) * par5) : 0
If i'm not fully mistaken it should be "If 2hstart = 2 -> execute the calc, else return 0 (do nothing)". This doesn't work.

The silly part here is. If i change the 0 to a 1:

Code: Select all

(stat('2hstart'.accr) == 2) ? (skill('Spear Mastery'.blvl) * par5) : 1
it works BUT i always gain 1% to every stat assigned to this aura even if 2hstart is not 2.

Would like to know if it's a known bug that "0" doesn't work and if someone maybe know how to fix this (if it's even possible to fix).

Thanks in advance.
Greetings

Nostalgic_Modder
Posts: 38
Joined: Fri Jan 20, 2017 6:24 am
United States of America

Re: Aurastatcalc problem?!

Post by Nostalgic_Modder » Mon Mar 27, 2017 7:38 am

Perhaps make the calculation zero the stat before doing the check?

(stat('2hstat'.accr)>0) ? (stat('2hstat'.accr)-100) : (stat('2hstart'.accr) == 2) ? (skill('Spear Mastery'.blvl) * par5) : 0

Of course make sure the stat can not go negative.

User avatar
SpiKe.
Forum Tech Support
Champion of the Light
Posts: 280
Joined: Thu Jul 28, 2011 5:25 pm
Location: Germany
Contact:
Germany

Re: Aurastatcalc problem?!

Post by SpiKe. » Mon Mar 27, 2017 4:42 pm

Same effect as before :(

User avatar
kingpin
Retired Admin
Cherub
Posts: 10954
Joined: Sat Jan 11, 2003 12:51 pm
Contact:
Sweden

Hand-picked

Re: Aurastatcalc problem?!

Post by kingpin » Sun Apr 23, 2017 7:22 am

Best way would be add code that update the passive then unequip the item, as we discussed I will look into the code.

Post Reply

Return to “Skill Clinic”