Page 1 of 1

Re: Fix combatsystem and I will make a quest! (I promise)

Posted: 06 Mar 2014 22:23
by Habiki
On a similar note, let's say there's a team combat situation going on in Faerun, for example. The team is attacking a group of four orcs and they're all targeting the leader. The leader attacks the first orc, the team assists and kills the first orc. Immediately after the kill, the team members assist again to target the next orc, but that orc is "not in combat" until there is physical contact made by or upon the leader. This can result in teammates not assisting in combat.

Re: Fix combatsystem and I will make a quest! (I promise)

Posted: 06 Mar 2014 22:31
by OgreToyBoy
or set timer for assist, then you can afk on and on and on :)

Re: Fix combatsystem and I will make a quest! (I promise)

Posted: 06 Mar 2014 22:51
by Zhar
OgreToyBoy wrote:or set timer for assist, then you can afk on and on and on :)
Pretty much this. In my macros I've always set delay to assist (3 seconds usually) and never had problems like that. I have delay timers on most things as I hate spam and error messages so even if 5 things attack me I will issue the <special> command only once, likewise, if many things attack team leader/member or he attacks multiple targets in rapid succession I will only issue a single assist command.

For the lazy:

Code: Select all

/def check_assist = \
    /if (assisting) \
        /if (!assisted) \
            /repeat -3 1 /send assist %leader %;\
        /endif %;\
    /endif

/def -Fp1 -mregexp -t'>? ?([A-Z][a-z]*) attacks' team_attack = \
    /if (leader =~ {P1}) \
        /check_assist %;\
    /endif

/def -Fp1 -mregexp -t'attacks ([A-Z][a-z]*)' team_under_attack = \
    /if (leader =~ {P1}) \
        /check_assist %;\
    /endif

/def -Fp1 -mregexp -t'>? ?([A-Z][a-z]*) turns to attack' team_next_attack = \
    /if (leader =~ {P1}) \
        /check_assist %;\
    /endif

/def -Fp1 -mregexp -t'>? ?([A-Z][a-z]*) assists' team_assist = \
    /if (leader =~ {P1}) \
        /check_assist %;\
    /endif

/def -F -mregexp -t'>? ?([A-Z][a-z]*) killed .*\.$' team_killed = \
    /if (leader !~ "none") \
        /check_assist %;\
    /endif

/def -F -mregexp -t'^You assist' you_assist = \
    /set assisted 1 %;\
    /repeat -3 1 /set assisted 0
Note that in the team those triggers only ever check leader for assist purposes and ignore team members (the only exception being if something died, then it tries to assist).

Re: Fix combatsystem and I will make a quest! (I promise)

Posted: 07 Mar 2014 12:05
by Zhar
Hmmm... I never experienced it as broken and it never really bothered me.

Re: Fix combatsystem and I will make a quest! (I promise)

Posted: 07 Mar 2014 21:53
by Zar
I don't think it is broken.
If you fight three orcs, you kill one. Who is your next target?

If you want to be deterministic, make a trigger to attack next target.
If you want to wait mud to decide next target, let it be on its own rules (First mob that hits you starts to be your target)

Re: Fix combatsystem and I will make a quest! (I promise)

Posted: 18 Mar 2016 17:23
by Mim
I can also make a quest.

-:"Push queen."