moonshineeeee Posted March 9, 2022 Share Posted March 9, 2022 I was working on a new quest including a new npc and several new items. At first when I create a new amulet and add script to it all works fine. However when I quitted the Creation Kit and start to work on it the following day I found it unable to add property to a new script of the new npc.Whatever I name the new property it always tells me "cannot name a variable or property the same as a known type". Even when I compiling the script source of the amulet,which is working successfully in game, the error will show up. I have used names like "TutorialQuest","ImJustTesting" or "WhatareYouTalkingAbout"...No matter how hard I tried, that compiler always tells me "cannot name a variable or property the same as a known type" which is making me mad! Can anyone tell me what is actually happening? It's so disturbing having such a trouble when working on my own little mod halfway. Link to comment Share on other sites More sharing options...
rkkn Posted March 9, 2022 Share Posted March 9, 2022 whenever I get this error, the "known type" is a script name. like if there's a SuperQuest script anywhere in the include folder, no variables can be named superquest Link to comment Share on other sites More sharing options...
Sphered Posted March 9, 2022 Share Posted March 9, 2022 You cant name your properties certain things. Like you cant call one "Actor" or "Quest" or "x" etc because those are already used by something else in the game Scriptname isnt the only thing to check there Link to comment Share on other sites More sharing options...
moonshineeeee Posted March 10, 2022 Author Share Posted March 10, 2022 Thanks Sphered and rkkn. I know what you are meaning but I wasn't making that kind of mistake.Actually yesterday after I post my problem I did other things for a while. Then when I decide to take a look that problem simply disappered.All works well when I add scripts to the npc and edit sources. However, there's still one problem puzzling me.Most vanilla item can add scripts but some cannot...The editing interface is all dark except itd name and id, and nothing happens when I click "add script". For example, Firiniel's End,an elven bow which appears in the quest "Bound Until Death" and Andurs' Arkay Amulet. This problem exists from the beginning of my work.I may avoid those items but I wonder why. Link to comment Share on other sites More sharing options...
Recommended Posts