Question regarding target_aggressives

International

Moderator: Moderators

Kodain
Noob
Noob
Posts: 5
Joined: 05 Sep 2011, 11:52
Noob?: No

Question regarding target_aggressives

#1 Post by Kodain »

Greetings,

I did make a quick search on the function, but couldn't find anything of value. My issue is this:

I'm currently running a priest/crusader combo, both bots, and getting my sader to use Grand Cross when mobs are on him is no issue, due to the aggressives function, but I want him to go to the rescue of the priest if it gets mobbed, so I looked to the target_aggressives function. The documentation, followed by the single thread I could find of it did puzzle me though.

This is the current block I use:

Code: Select all

attackSkillSlot Grand Cross {
	lvl 10
	dist 1.5
	hp > 40%
	sp
	onAction attack
	target_aggressives > 2
	inLockOnly 0
	notInTown 1
	timeout 1
}
The issue is seemingly that it will use GC whenever he gets into contact with just 1 mob, not more than 2 as the code would suggest. Is it possible I need to add "target Priest" in order for target_aggressives to work?

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

Re: Question regarding target_aggressives

#2 Post by EternalHarvest »

In attack-related config blocks, target is always a monster you're currently attacking.
Kodain
Noob
Noob
Posts: 5
Joined: 05 Sep 2011, 11:52
Noob?: No

Re: Question regarding target_aggressives

#3 Post by Kodain »

Thank you for the reply.

Yes I was guessing at that. But is there a way to make the Crusader use Grand Cross when it senses X amount of monsters around him attacking him or the party? Getting him to use it when X amount of monsters attack him is no issue, but I'd like him to use it in case the priest gets mobbed, so when he goes in to attack one of them, he will notice "Aha, X or more are attacking the priest: Time to Grand Cross".

Regards,
Kodain