Total Miner Forums

Total Miner => Total Miner Discussion => Guides => Topic started by: Craig on January 03, 2016, 09:44:59 AM

Title: Behaviour Node Documentation
Post by: Craig on January 03, 2016, 09:44:59 AM
This topic will document each behaviour node.

General Behaviour Tree Help:

Logic:
Dialog (http://totalminerforums.net/index.php?topic=15740.msg165954#msg165954): NPC Dialog.
Exit (http://totalminerforums.net/index.php?topic=15740.msg165955#msg165955): Returns control to the most recent Update node.
Proxy (http://totalminerforums.net/index.php?topic=15740.msg165956#msg165956): Insert a sub behaviour tree.
Update (http://totalminerforums.net/index.php?topic=15740.msg165957#msg165957): Causes continual updating (execution) of the tree.

Actions:
Attack (http://totalminerforums.net/index.php?topic=15740.msg165958#msg165958): Attack the NPC's current target.
ChangeState (http://totalminerforums.net/index.php?topic=15740.msg165959#msg165959): Change the NPC's main state.
Deactivate (http://totalminerforums.net/index.php?topic=15740.msg165960#msg165960): Deactivate the NPC.
Equip (http://totalminerforums.net/index.php?topic=15740.msg165961#msg165961): Equip hands with items from inventory.
Flee (http://totalminerforums.net/index.php?topic=15740.msg165962#msg165962): Flee the NPC's current target.
Follow (http://totalminerforums.net/index.php?topic=15740.msg165963#msg165963): Follow the NPC's current target.
Health (http://totalminerforums.net/index.php?topic=15740.msg165964#msg165964): Increase or reduce current Health.
Jump (http://totalminerforums.net/index.php?topic=15740.msg165965#msg165965): Cause the NPC to jump.
LookAt (http://totalminerforums.net/index.php?topic=15740.msg165966#msg165966): Control what the NPC should look at.
Message (http://totalminerforums.net/index.php?topic=15740.msg165967#msg165967): Send information to other NPC's.
Move (http://totalminerforums.net/index.php?topic=15740.msg165968#msg165968): Move the NPC.
Properties (http://totalminerforums.net/index.php?topic=15740.msg165969#msg165969): Set various properties for the NPC.
Script (http://totalminerforums.net/index.php?topic=15740.msg165970#msg165970): Execute a script.
StandStill (http://totalminerforums.net/index.php?topic=15740.msg165971#msg165971): Cause the NPC to stop moving.
SwingHand (http://totalminerforums.net/index.php?topic=15740.msg165972#msg165972): Cause the NPC to swing a hand.
Timer (http://totalminerforums.net/index.php?topic=15740.msg165973#msg165973): Perform actions based on a timer.
Wait (http://totalminerforums.net/index.php?topic=15740.msg165974#msg165974): Wait for an amount of time before continuing.
Wander (http://totalminerforums.net/index.php?topic=15740.msg165975#msg165975): Wander around a defined area.

Conditionals:
FindTarget (http://totalminerforums.net/index.php?topic=15740.msg165976#msg165976): Find a specific target.
HasHistory (http://totalminerforums.net/index.php?topic=15740.msg165977#msg165977): Query (player) history.
IsAge (http://totalminerforums.net/index.php?topic=15740.msg165978#msg165978): Query age.
IsBlock (http://totalminerforums.net/index.php?topic=15740.msg165979#msg165979): Query what block is at a location.
IsDistance (http://totalminerforums.net/index.php?topic=15740.msg165980#msg165980): Query distance.
IsEquipped (http://totalminerforums.net/index.php?topic=15740.msg165981#msg165981): Query if specific items are currently equipped.
IsHealth (http://totalminerforums.net/index.php?topic=15740.msg165982#msg165982): Query health.
IsInZone (http://totalminerforums.net/index.php?topic=15740.msg165983#msg165983): Query if inside a zone.
IsRandom (http://totalminerforums.net/index.php?topic=15740.msg165984#msg165984): Perform actions based on randomness.
IsTargeted (http://totalminerforums.net/index.php?topic=15740.msg165985#msg165985): Query if the NPC is currently targeted.
IsVisible (http://totalminerforums.net/index.php?topic=15740.msg165986#msg165986): Query what other NPC's or players are visible.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:18:02 AM
General Behaviour Tree Help
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:18:20 AM
Dialog: NPC Dialog.

Used to create of conditional multi-branched dialog with NPCs.

Properties:

Text: The dialog text. This is some dialog the NPC will say to you or you will say to the NPC.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:18:33 AM
Exit: Returns control to the most recent Update node.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:18:43 AM
Proxy: Insert a sub behaviour tree.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:29:14 AM
Update: Causes continual updating (execution) of the tree.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:29:28 AM
Attack: Attack the current target.

By default, the NPC will move within strike range before striking.

Properties:

Exclude Types: Actor types the NPC should not attack.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:29:42 AM
ChangeState: Change the NPC's main state.

Properties:

NewState: The state to change the NPC into.

Alive: The NPC is alive and well.
Dying: The NPC has died. The death throes animation will be played.
Respawning: The NPC is spawning for the first time, or respawning from death.
Despawning: The NPC is despawning. The despawn animation will be played.
Sleeping: The NPC is sleeping.
InActive: The NPC is no longer active and will be removed from the game world immediately.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:29:54 AM
Deactivate: Deactivate the NPC.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:30:07 AM
Equip: Equip hands with items from inventory.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:30:19 AM
Flee: Flee the NPC's current target.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:30:33 AM
Follow: Follow the NPC's current target.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:30:47 AM
Health: Increase or reduce current Health.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:31:01 AM
Jump: Cause the NPC to jump.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:31:15 AM
LookAt: Control what the NPC should look at.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:31:29 AM
Message: Send information to other NPC's.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:31:43 AM
Move: Move the NPC.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:31:56 AM
Properties: Set various properties for the NPC.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:32:11 AM
Script: Execute a script.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:32:23 AM
StandStill: Cause the NPC to stop moving.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:32:36 AM
SwingHand: Cause the NPC to swing a hand.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:32:49 AM
Timer: Perform actions based on a timer.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:33:01 AM
Wait: Wait for an amount of time before continuing.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:33:14 AM
Wander: Wander around a defined area.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:33:29 AM
FindTarget: Find a specific target.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:33:46 AM
HasHistory: Query history.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:33:58 AM
IsAge: Query age.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:34:11 AM
IsBlock: Query what block is at a location.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:34:24 AM
IsDistance: Query distance.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:34:37 AM
IsEquipped: Query if specific items are currently equipped.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:34:51 AM
IsHealth: Query health.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:35:04 AM
IsInZone: Query if inside a zone.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:35:19 AM
IsRandom: Perform actions based on randomness.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:35:32 AM
IsTargeted: Query if the NPC is currently targeted.
Title: Re: Behaviour Node Documentation
Post by: Craig on January 04, 2016, 04:35:44 AM
IsVisible: Query what other NPC's or players are visible