#(uncvr) Quick inject question

14 messages · Page 1 of 1 (latest)

dusky berry
#

How do I inject a task script that is located in a different denizen script folder?

unkempt sandalBOT
#

(uncvr) Quick inject question

unkempt sandalBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

ruby granite
#

file does not matter

#

!c inject

tacit minnowBOT
# ruby granite !c inject
Group

queue

Syntax

inject [<script>] (path:<name>) (instantly)

Short Description

Runs a script in the current queue.

Description

Injects a script into the current queue.
This means this task will run with all of the original queue's definitions and tags.
It will also now be part of the queue, so any delays or definitions used in the injected script will be accessible in the original queue.

dusky berry
#

wait, so to inject there has to be a pice of script inside a dsc file with type task, and the name of that task is the thing that I put after inject or no?

#

I have a task

COOLDOWN_ITEM:
    type: task
    script:
        - flag player <[material]>.cooldown expire:<[time]>s
        - itemcooldown <[material]> d:<[time]>s

inside the Tasks.dsc file, to inject do I just inject COOLDOWN_ITEM or inject Tasks?

worn gull
#

COOLDOWN_ITEM

#

You don’t need to “import” anything into your scripts if that’s what you’re asking

dusky berry
#

inject COOLDOWN_ITEM doesnt work for me 0_o

#

ah nvm im special ed