Difference between revisions of "NPC Aggression (Game Mechanics)"
(New page: {{PageCleanup}} {{PageHeader|Game Mechanics|Mechanics Category}} {| border="0" width="100%" cellpadding=6 |- |valign=top| =Navigation= {| align="center" width="280px" |- || {{Auction (Mes...) |
(→Awareness Checks) |
||
Line 67: | Line 67: | ||
− | The ability for | + | The ability for an Npc to detect another target depends on a number of factors: |
− | * The Target's distance from the | + | * The Target's distance from the Npc |
− | + | ||
* The target's posture | * The target's posture | ||
* The target's movement speed | * The target's movement speed | ||
− | * The usage of | + | * The usage of camouflage |
* Being in combat with the target | * Being in combat with the target | ||
Line 79: | Line 78: | ||
− | The distance of a target from the | + | The distance of a target from the Npc is the initial trigger for Npc behaviors. Npcs begin actual target detection checks at 64 meters. Whenever a target enters the detection range of Npcs, the system begins an awareness check cycle where at every cycle, the target's current posture, movement speed and distance are calculated into an detection response chance by the Npc. Target's with mask scent or camouflage utilize their own roll check at this stage. Successful passing of the mask scent or camouflage will override any awareness checks against the target. If the Npc passes the detection chance then the target's presence is made aware to the Npc and awareness triggers begin. When a Npc becomes aware of a target within its awareness range, the Npc indicates their knowledge of the target through a flytext question mark "?" |
'''Distance affects on awareness -''' | '''Distance affects on awareness -''' | ||
− | The closer a target is to the | + | The closer a target is to the Npc, the greater the chances that the Npc will be made aware of the target. A Npc's awareness increases significantly against targets that are at 40 meters or closer to them. |
'''Posture affects on awareness -''' | '''Posture affects on awareness -''' | ||
− | The three types of posture of a target will have great effects on the detection chances of the creature. Standing posture provides the least chance to the target in its check against a | + | The three types of posture of a target will have great effects on the detection chances of the creature. Standing posture provides the least chance to the target in its check against a Npc's awareness; Kneeling provides a lesser chance to the target and Prone posture provides the best chances to the target. |
Line 94: | Line 93: | ||
− | The movement speed of the target offers a penalty against its check with a | + | The movement speed of the target offers a penalty against its check with a Npc's awareness. The slower that the target is moving, the higher its chances of remaining undetected. Stationary targets have the best chance of remaining hidden while targets that are walking, running, mounted or using vehicles have higher chances. |
'''Being in Combat -''' | '''Being in Combat -''' | ||
− | If the target has initiated an attack on the | + | If the target has initiated an attack on the Npc then this will automatically trigger awareness of the target, however aggression will not be triggered until the creature has detected the target. Npcs in combat will initiate patrolling behavior and roam around trying to detect their attacker. |
<br><br> | <br><br> |
Revision as of 21:38, 20 July 2009
This article or section needs proper wiki formatting. |
Game Mechanics - Mechanics Category
SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.
|
Game MechanicsCreatures in SWG use a complex system to detect the presence of potential enemies. Once a target is detected, a number of processes execute to determine if the creature should attack the target or not. The process of target detection and creature response are explained under the following categories:
Awareness ChecksThe ability for an Npc to detect another target depends on a number of factors:
Note: There are no known formulas for detection chances.
The closer a target is to the Npc, the greater the chances that the Npc will be made aware of the target. A Npc's awareness increases significantly against targets that are at 40 meters or closer to them. Posture affects on awareness - The three types of posture of a target will have great effects on the detection chances of the creature. Standing posture provides the least chance to the target in its check against a Npc's awareness; Kneeling provides a lesser chance to the target and Prone posture provides the best chances to the target.
If the target has initiated an attack on the Npc then this will automatically trigger awareness of the target, however aggression will not be triggered until the creature has detected the target. Npcs in combat will initiate patrolling behavior and roam around trying to detect their attacker.
Approach Trigger EventsWhenever an npc, creature or player enters within a 64 meter range of a creature and the creature passes an initial awareness check, several events may be triggered depending on the creature:
Fight or Flight Response Upon detecting a target, the creature will then initiate another roll to determine what it's response will be. Non aggressive creatures will choose from a number of responses (dependant on the type of creature) ranging from bluff charging the target to actually fleeing the target's immediate presence. Pack creatures will automatically go to the aid and defense of similar social group creatures that are under attack by the target. Aggressive creatures may engage in charges and/or then begin a check to determine if they will actively attack the spotted target. The chance for a creature to immediately begin combat with the detected target is determined by the creature's ferocity. A higher ferocity increases the chance that a creature will become aggressive against the detected target in range. An aggression check cycle is started which uses the creature's ferocity value to determine the chance that it will then begin attacking provided that the target remains in a detected state. The closer a detected target is to the creature, the higher the chances are that the creature will perform some kind of response (bluff charge, fleeing, aggression). Whenever a creature is involved in a fight or flight response it will issue a unique alarm signal "\\|/" Note: During Pre-cu, if a creature target was already damage by a player and the player escaped combat and came back within 64 meters of the target, then the creature was given enhanced awareness of the player and detection chances. This dramatically increased the re-aggro rate. Formulas Needed
Source References
|