init
This commit is contained in:
95
Prototypes/NPCs/debug.yml
Normal file
95
Prototypes/NPCs/debug.yml
Normal file
@@ -0,0 +1,95 @@
|
||||
# SPDX-FileCopyrightText: 2024 Tornado Tech <54727692+Tornado-Technology@users.noreply.github.com>
|
||||
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
- type: htnCompound
|
||||
id: DebugCounterCompound
|
||||
branches:
|
||||
- tasks:
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:AddFloatOperator
|
||||
targetKey: Count
|
||||
amount: 1
|
||||
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:SayKeyOperator
|
||||
key: Count
|
||||
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:RandomOperator
|
||||
targetKey: IdleTime
|
||||
minKey: MinimumIdleTime
|
||||
maxKey: MaximumIdleTime
|
||||
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:WaitOperator
|
||||
key: IdleTime
|
||||
preconditions:
|
||||
- !type:KeyExistsPrecondition
|
||||
key: IdleTime
|
||||
|
||||
- type: htnCompound
|
||||
id: DebugRandomCounterCompound
|
||||
branches:
|
||||
- tasks:
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:SetRandomFloatOperator
|
||||
targetKey: Count
|
||||
minAmount: 0
|
||||
maxAmount: 100
|
||||
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:SayKeyOperator
|
||||
key: Count
|
||||
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:RandomOperator
|
||||
targetKey: IdleTime
|
||||
minKey: MinimumIdleTime
|
||||
maxKey: MaximumIdleTime
|
||||
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:WaitOperator
|
||||
key: IdleTime
|
||||
preconditions:
|
||||
- !type:KeyExistsPrecondition
|
||||
key: IdleTime
|
||||
|
||||
- type: htnCompound
|
||||
id: DebugRandomLessCompound
|
||||
branches:
|
||||
- tasks:
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:SetRandomFloatOperator
|
||||
targetKey: Count
|
||||
minAmount: 0
|
||||
maxAmount: 100
|
||||
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:SayKeyOperator
|
||||
key: Count
|
||||
preconditions:
|
||||
- !type:KeyFloatLessPrecondition
|
||||
key: Count
|
||||
value: 50
|
||||
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:RandomOperator
|
||||
targetKey: IdleTime
|
||||
minKey: MinimumIdleTime
|
||||
maxKey: MaximumIdleTime
|
||||
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:WaitOperator
|
||||
key: IdleTime
|
||||
preconditions:
|
||||
- !type:KeyExistsPrecondition
|
||||
key: IdleTime
|
||||
|
||||
- tasks:
|
||||
- !type:HTNPrimitiveTask
|
||||
operator: !type:SpeakOperator
|
||||
speech: "fuck!"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user