Jump to content

How to find out NPC's BaseID?


Tywin2010

Recommended Posts

However, if you're using OBSE, using OBSE function 'SetRefEssential' in console mode is easier.

 

Thank you, LFact, I indeed have OBSE installed.

 

However, this commend still doesn't seem to work for me...

 

If I understood it right, I am supposed to write in the console:

 

if ( 14034254.isRefEssential ) 14034254.setRefEssential 0

 

Is that right?

 

(as per http://cs.elderscrolls.com/constwiki/index.php/IsRefEssential article; 14034254 is Saerileth's RefID, found via console)

Link to comment
Share on other sites

However, if you're using OBSE, using OBSE function 'SetRefEssential' in console mode is easier.

 

Thank you, LFact, I indeed have OBSE installed.

 

However, this commend still doesn't seem to work for me...

 

If I understood it right, I am supposed to write in the console:

 

if ( 14034254.isRefEssential ) 14034254.setRefEssential 0

 

Is that right?

 

(as per http://cs.elderscrol.../IsRefEssential article; 14034254 is Saerileth's RefID, found via console)

 

No. It simply works like SetEssential in console mode, instead it uses RefID instead of BaseID. So it should be like:

<Click on NPC> or prid <NPC RefID>
SetRefEssential 0/1

in console mode. or:

<NPC RefID>.SetRefEssential 0/1

 

I don't think you can write and run 'if~elseif~endif' in console mode. The console mode works like one-line interpreter, in a way.

Link to comment
Share on other sites

However, if you're using OBSE, using OBSE function 'SetRefEssential' in console mode is easier.

 

Thank you, LFact, I indeed have OBSE installed.

 

However, this commend still doesn't seem to work for me...

 

If I understood it right, I am supposed to write in the console:

 

if ( 14034254.isRefEssential ) 14034254.setRefEssential 0

 

Is that right?

 

(as per http://cs.elderscrol.../IsRefEssential article; 14034254 is Saerileth's RefID, found via console)

 

No. It simply works like SetEssential in console mode, instead it uses RefID instead of BaseID. So it should be like:

<Click on NPC> or prid <NPC RefID>
SetRefEssential 0/1

in console mode. or:

<NPC RefID>.SetRefEssential 0/1

 

I don't think you can write and run 'if~elseif~endif' in console mode. The console mode works like one-line interpreter, in a way.

 

Thank you very much, LFact, it worked! (And I have almost given up hope on making Saerileth non-Essential.)

Link to comment
Share on other sites

Thank you for replies, everyone.

 

I seem to have found it in the editor via by viewing mod's "Details" in CS, and it was also confirmed by the mod's author. However, when I try to make Saerileth (NPC in question) non-essential, it still doesn't seem to work.

 

When I type SetEssential A909Saeri 0 (should make NPC non-essential, I understand) in console I recieve the following response:

 

Script 'SysWindowCompileAndRun', line 1:

Item 'A909Saeri' not found for parameter Actor Base.

Compiled script not saved!

 

Could anyone explain to me, does that mean that I am imputting a wrong ID, or am I doing something else wrong? (This is my first time trying to use the console.)

 

Ghehe. Yes, you're doing something wrong. That was the editor ID, you're looking for the form ID. Go to the objects list and find the actor you want, then expand the very small collumn (so small you can't see any numbers or letters in there). You should get something like this: 0AE337BE. It's always an 8symbol long code.

Link to comment
Share on other sites

  • 9 years later...

 

 

However, if you're using OBSE, using OBSE function 'SetRefEssential' in console mode is easier.

Thank you, LFact, I indeed have OBSE installed.

 

However, this commend still doesn't seem to work for me...

 

If I understood it right, I am supposed to write in the console:

 

if ( 14034254.isRefEssential ) 14034254.setRefEssential 0

 

Is that right?

 

(as per http://cs.elderscrol.../IsRefEssential article; 14034254 is Saerileth's RefID, found via console)

 

No. It simply works like SetEssential in console mode, instead it uses RefID instead of BaseID. So it should be like:

<Click on NPC> or prid <NPC RefID>
SetRefEssential 0/1
in console mode. or:

<NPC RefID>.SetRefEssential 0/1
I don't think you can write and run 'if~elseif~endif' in console mode. The console mode works like one-line interpreter, in a way.

 

Thank you so much, LFact. I thought I would never find an easy way to change the essential condition for a modded NPC and needed to take the route of using CS to change this parameter.

 

I have a CM Partner named "Jada" who started acting possessed after I took a blood-soaked Leather Cuirass off a Dremora Seducer and gave it to her to wear. Being that Oblivion is an RPG, I wanted to pretend that she was cursed by the armor and had to be executed, of course I couldn't do this because she was an essential NPC. But thanks to your solution, I can now put the demon down.

 

Thank you, kind sir!

Link to comment
Share on other sites

  • 1 month later...

@TheV3raHawk

Or you can use this mod: https://www.nexusmods.com/oblivion/mods/20509

I haven't touched the game for years, now I doubt I can give anyone such answers ever again.

Yeah I get what you mean. This game was my first ever open world game at the age of 8 yrs when it came out, I've just recently returned to it a few months ago and have enjoyed every minute of it and with much more to come I'm sure!

 

I probably won't use this mod in my current playthrough, but I'll definitely consider it for my next. Thank you for the suggestion, I really do appreciate it. I honestly didn't believe I'd get any kind of response in this thread haha.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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