#(Keithsguest) Wrong script name despite being correct

25 messages · Page 1 of 1 (latest)

raw crystal
#

so as youll be able to see in the images linked to this thread im currently experiencing an issue when im trying to assign a script to an npc and for some reason its telling me i have the wrong script name despite me copy pasting the name from the file itself, i tried with the .dsc at the end and without it at the end but neither works

fallen hareBOT
#

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.

raw crystal
#

so i tried reloading the plugin files first and when i did it the first time it gave me this

#

and so i went in and i think i fixed the issue because when i reloaded the second time it showed me this, but as you can see it still didnt register as that name

#

so im wondering if the script i wrote itself is bugged or if it just not connecting for some reason, im using the latest stable build from the linked releases page

#

changed it to a txt so you guys can read it

versed gorge
maiden thistleBOT
raw crystal
versed gorge
#

I know a little about Assignment scripts. But shouldn't it be type: assignment?

#

!l Assignment Script Containers

maiden thistleBOT
# versed gorge !l Assignment Script Containers

Assignment script-containers provide functionality to NPCs by 'assignment' of the container. Assignment
scripts are meant to be used when customizing the normal behavior of NPCs. This can be used on a 'per-NPC' basis,
but the encouraged approach is to design assignment scripts in a way that they can be used for multiple NPCs,
perhaps with the use of constants or flags to determine specific information required by the scripts.

Features unique to assignment script-containers include 'actions' and 'interact script' assignment.
Like any script, the ability to run local utility scripts can be accomplished as well. This allows fully
interactive NPCs to be built purely with Assignment Scripts, and for advanced situations, world scripts and
interact scripts can provide more functionality.
See als...

Group

Script Container System

versed gorge
lethal coral
#

@raw crystal did you write this script?

raw crystal
raw crystal
#

Chat gpt a guy named Vod and myself

lethal coral
#

Well, ideally your script shouldn't be task. It should be an assignment script with an interact script linked to it. Also referencing the npc only by it's id is nooot best practice. Save the NPC in a server flag and reference it by calling the flag. The define/choose is an overcomplicated !c random. Line 23 can be replaced with !c money. Not sure what Line 24 is supposed to be, but it probably makes more sense to have a single list instead of several flags, to check if someone already received the reward. Also :true is not necessary. If you flag an object without providing a value, the value will automatically be true. The flag npc_message_counter doesn't make sense to me currently.

#

Did you read the guide yet?

#

!guide

maiden thistleBOT
mortal reefBOT
#

@raw crystal

Thread Close Blocked

Thread was closed either automatically by timeout or by the Discord manual close button. If closing was intentional, please use </resolved:1028673926114594866> or </invalid:1028673926898909185>.