Need help with modifiying skill.

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
fdanielc
Posts: 24
Joined: Sun Apr 01, 2012 10:29 pm

Need help with modifiying skill.

Post by fdanielc »

My thought is:

A skill in duelist class that uses charges in this way. For Ex:

1 charge = 1.10 pAtk
2 charges = 1.20 pAtk

and so on until 6 charges.

My problem is how to make the skill consume the available charges and apply the stats for each level of charges?

Help needed. Thank you
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Need help with modifiying skill.

Post by MELERIX »

if you mean about formula, use: (1 + (0.1 * current charges))
fdanielc
Posts: 24
Joined: Sun Apr 01, 2012 10:29 pm

Re: Need help with modifiying skill.

Post by fdanielc »

MELERIX wrote:if you mean about formula, use: (1 + (0.1 * current charges))
The formula i can do, what i can't is:

"requiredCharges" When using this definition in skill, it's the only "value" of charges that it will consume.

But i wan't it to consume all available charges up to 6 (max i wan't).
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Need help with modifiying skill.

Post by MELERIX »

then modify the condition.

<player Charges="3" /> to other amount of charges.
fdanielc
Posts: 24
Joined: Sun Apr 01, 2012 10:29 pm

Re: Need help with modifiying skill.

Post by fdanielc »

MELERIX wrote:then modify the condition.

<player Charges="3" /> to other amount of charges.
I wan't the skill to take the amount of charges the player has. Not a defined amount of charges.

For ex:

Player Charges 4 = Skill take's 4 charges + give stats for 4 charges
Player Charges 5 = Skill take's 5 charges + give stats for 5 charges
Player Charges 8 = Skill take's only 6 charges + give stats for 6 charges
Post Reply