Dimitrisgb Posted February 18, 2021 Author Share Posted February 18, 2021 I am trying to make a small quest.I am creating a script, in which an NPC follows me, after I speak to him, but I get the message "Variable dahlablifollow unreferenced in local context."What am I missing? Link to comment Share on other sites More sharing options...
DrakeTheDragon Posted February 18, 2021 Share Posted February 18, 2021 What is "dahlablifollow" meant to be in this context? The EditorID of the follow script package?No, wait, "unreferenced in local context" means it was defined somewhere but never used. For whatever the reason the compiler doesn't like unused variables in scripts. Either use it somewhere or get rid of its definition at top and the error should go away. Link to comment Share on other sites More sharing options...
Pellape Posted February 18, 2021 Share Posted February 18, 2021 Just add a ; in front of the definition, if you can find it is. Does it works otherwise? Link to comment Share on other sites More sharing options...
Dimitrisgb Posted February 18, 2021 Author Share Posted February 18, 2021 Logn story short: You are about to help a non hostile NPC track down and kill some Bandits Ringleaders. If you agree, he follows you and you go see another friendly NPC, who will tell you where the Ringleaders are. Note that Ihaven't created the quest stages yet. Also, I had XOBSE be deleted again, for no reason, even though it was working just fine. I restarted my conputer and installed again. No problems for now. Link to comment Share on other sites More sharing options...
Dimitrisgb Posted February 18, 2021 Author Share Posted February 18, 2021 Just add a ; in front of the definition, if you can find it is. Does it works otherwise?I put the ; in front of the definition and now I get another message: "Missing variable name in variable declaration". What I wrote on the third line (the problematic) is "short; ELSDlabhiReffollow". Link to comment Share on other sites More sharing options...
DrakeTheDragon Posted February 18, 2021 Share Posted February 18, 2021 You need to comment out the entire line, not only the variable name, more like so: ; short ELSDlabhiReffollow However, that's not the same name it was complaining about before: "Variable dahlablifollow unreferenced in local context." Link to comment Share on other sites More sharing options...
Pellape Posted February 18, 2021 Share Posted February 18, 2021 (edited) A simple misspelling than?? If you use Notepad++ in the way I suggest, you cant misspell anything... ;) It tracks all crap you add to the script but so does CSE but it is easier to read the script in Notepad++ with the TES4 language plugin. Edited February 18, 2021 by Pellape Link to comment Share on other sites More sharing options...
Dimitrisgb Posted February 18, 2021 Author Share Posted February 18, 2021 Ok, problem solved. Thanx. Now I can't give the script to the NPC, o matter what kind of script it is, quest, object, or magic effect. I can't find it on the list which is bellow the NPC's name. Link to comment Share on other sites More sharing options...
Pellape Posted February 18, 2021 Share Posted February 18, 2021 NPC uses object as it is an object. Link to comment Share on other sites More sharing options...
Dimitrisgb Posted February 18, 2021 Author Share Posted February 18, 2021 NPC uses object as it is an object.I set the script as an object one, but I still can't find it. Link to comment Share on other sites More sharing options...
Recommended Posts