In "partySkill", the "dist" and "target_dist" duplicate ?

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

Message
Author
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

In "partySkill", the "dist" and "target_dist" duplicate ?

#1 Post by sofax222 »

The "dist" seems the same with the "target_dist", in "partySkill", except thr "0..8" default value.

But, in the "attackSkillSlot"...
The "dist" is not the same with the "target_dist" !!

Should the "dist" of "partySkill" be maked the same with the "dist" of the "attackSkillSlot ?

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: In "partySkill", the "dist" and "target_dist" duplicate ?

#2 Post by EternalHarvest »

There's a lot of unobviousness in this, yes.

partySkill:
Will not be used if "target_dist" is wrong for distance between you and target player, uniformly for all target player conditions.
Will not be used if "dist" is wrong for distance between skill caster and target player, but only if skill is not yours (homunculus etc skill). Is it ever used anywhere else?

attackSkillSlot:
Will not be used if "target_dist" is wrong for distance between you and target monster, uniformly for all target monster conditions.
Attack distance will change to "dist" if attackSkillSlot is used.

In attackSkillSlot, it looks ok. target_dist is a condition, dist is an option for how to use the skill.

Post Reply