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
#(Keithsguest) Wrong script name despite being correct
25 messages · Page 1 of 1 (latest)
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.
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
!haste
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
Content of Denizen Script Paste #118348: Message Sequence with a reward that you only get once... pasted 2023/12/09 08:35:23 UTC-08:00, Paste length: 1892 characters across 28 lines, Content: npc_dialogue_script: type: task
I know a little about Assignment scripts. But shouldn't it be type: assignment?
!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
- define npc_id <13>
Also<13>is not a real tag
If it's just npc id, it should be just- define npc_id 13
@raw crystal did you write this script?
Ohhhhh that’s my bad
Me and my friend have been attempting to learn script writing, what can I do to improve it if you don’t mind me asking
Chat gpt a guy named Vod and myself
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
Guides
View the Denizen Beginner's Guide at https://guide.denizenscript.com/
@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>.