Ai relationship: Difference between revisions
Jump to navigation
Jump to search
m (→See also) |
m (→Keyvalues) |
||
Line 5: | Line 5: | ||
==Keyvalues== | ==Keyvalues== | ||
* {{kv targetname}} | * {{kv targetname}} | ||
* '''subject''' | * '''subject''' | ||
:<target_name_or_class> This is the NPC(s) whose disposition will change. May be a targetname or a classname. | :<target_name_or_class> This is the NPC(s) whose disposition will change. May be a targetname or a classname. | ||
* '''target''' | * '''target''' | ||
:<target_name_or_class> This is the NPC(s) about whom the Subject(s) will change their disposition. May be a tarGetname or a classname. | :<target_name_or_class> This is the NPC(s) about whom the Subject(s) will change their disposition. May be a tarGetname or a classname. | ||
* '''disposition''' | * '''disposition''' | ||
:<choices> Choose the way the Subject(s) should feel about the Target(s) | :<choices> Choose the way the Subject(s) should feel about the Target(s) | ||
{| | |||
! Literal Value || Description | |||
|- | |||
| ? || Hate | |||
|- | |||
| ? || Fear | |||
|- | |||
| ? || Like | |||
|- | |||
| ? || Neutral | |||
|} | |||
* '''radius''' | * '''radius''' | ||
:<float> Radius for subject | :<float> Radius for subject | ||
* '''rank''' | * '''rank''' | ||
:<integer> How much the Subject(s) should Like/Hate/Fear the Target(s). Higher priority = stronger feeling. | :<integer> How much the Subject(s) should Like/Hate/Fear the Target(s). Higher priority = stronger feeling. | ||
* '''StartActive''' | * '''StartActive''' | ||
: {{boolean}} | : {{boolean}} | ||
* '''Reciprocal''' | * '''Reciprocal''' | ||
: {{boolean}} Set this to have the new relationship mirrored by Target | : {{boolean}} Set this to have the new relationship mirrored by Target |
Revision as of 06:20, 6 October 2005
Entity Description
Sets relationships between groups of NPCs in the AI.
Keyvalues
- Template:Kv targetname
- subject
- <target_name_or_class> This is the NPC(s) whose disposition will change. May be a targetname or a classname.
- target
- <target_name_or_class> This is the NPC(s) about whom the Subject(s) will change their disposition. May be a tarGetname or a classname.
- disposition
- <choices> Choose the way the Subject(s) should feel about the Target(s)
Literal Value | Description |
---|---|
? | Hate |
? | Fear |
? | Like |
? | Neutral |
- radius
- <float> Radius for subject
- rank
- <integer> How much the Subject(s) should Like/Hate/Fear the Target(s). Higher priority = stronger feeling.
- StartActive
- <boolean>
- Reciprocal
- <boolean> Set this to have the new relationship mirrored by Target
Inputs
- ApplyRelationship
- Apply relationship changes
- RevertRelationship
- Revert relationship changes
Outputs
Notes
The relationship can refer to the player as !player
(singleplayer) or any client as player
(singleplayer or multiplayer).