whenPartyMembersNear: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
m (Conversion script moved page WhenPartyMembersNear to whenPartyMembersNear: Converting page titles to lowercase)
No edit summary
Line 1: Line 1:
; whenPartyMembersNear <range>
; whenPartyMembersNear <[[References#Range_Operators|range]]>
: Range of party members nearby necessary to trigger this block. We are also part of that party member count.
: Range of party members nearby necessary to trigger this block. We are also part of that party member count.


=== Example ===


* Use Clementia when there's at least another party member nearby.
; whenPartyMembersNearDist <[[References#Range_Operators|range]]>
: Range of distance that amount of party members (specified in "whenPartyMembersNear") have to be to trigger this block. If unset, defaults to less than [[removeActorWithDistance]] or [[clientSight]] or 15 cells (in this order).
: '''Notes:''' this does nothing if "whenPartyMembersNear" is unset or invalid.


=== Examples: ===
* use Magnificat when there's at least another party member nearby:
partySkill Magnificat {
    target_whenStatusInactive Magnificat
    whenPartyMembersNear > 1
}
* use Clementia (lvl 2) when there's at least another party member less or equal than seven cells away


  partySkill Clementia {
  partySkill Clementia {
    lvl 2
     target_whenStatusInactive Blessing
     target_whenStatusInactive Blessing
     whenPartyMembersNear > 2
     whenPartyMembersNear > 1
    whenPartyMembersNearDist <= 7
  }
  }


=== See Also ===
* [[whenPartyMembersNearDist]]


[[Category:Self Condition]]
[[Category:Self Condition]]

Revision as of 21:50, 7 May 2021

whenPartyMembersNear <range>
Range of party members nearby necessary to trigger this block. We are also part of that party member count.


whenPartyMembersNearDist <range>
Range of distance that amount of party members (specified in "whenPartyMembersNear") have to be to trigger this block. If unset, defaults to less than removeActorWithDistance or clientSight or 15 cells (in this order).
Notes: this does nothing if "whenPartyMembersNear" is unset or invalid.


Examples:

  • use Magnificat when there's at least another party member nearby:
partySkill Magnificat {
    target_whenStatusInactive Magnificat
    whenPartyMembersNear > 1
}
  • use Clementia (lvl 2) when there's at least another party member less or equal than seven cells away
partySkill Clementia {
    lvl 2
    target_whenStatusInactive Blessing
    whenPartyMembersNear > 1
    whenPartyMembersNearDist <= 7
}