Jump to content

[LE] Help! "cannot name a variable or property the same as a known type" all the time


Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...