This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

User talk:PersianLink

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

Question: Which function shows the name of an NPC in the lower left corner?[edit source]

I need to know which function shows the name of an NPC[edit source]

In fact I want to write a Death Note mod... For those of you who don't know it's a notebook which kills who's written in it. Well, the thing which shows the names is a special feature in the Death Note story so I want to disable this function and maybe trigger a script to this function...

Thanks for help... PersianLink 19:05, 30 October 2008 (EDT)

That's not a function per se, that's hard-coded behavior.
You need to use OBSE v0016 for this - so far that's only in beta, so you'll have to wait til it's finalized before releasing your plug-in. But you can work on it before then. The functions you want are GetCrosshairRef and GetName (which is from v0016 and hasn't been documented on this site yet; see the OBSE Commands Documentation for information). You can then use that name to add it to a book... but I'm not exactly sure how it works. You might be best off asking in the OBSE thread.
Also, the Questions category is now-obsolete. Please do not add pages to it.
Dragoon Wraith TALK 12:50, 3 November 2008 (EST)
I'm sorry for adding something to the question category, I just didn't know how to get an answer for my problem.
Well, I'll wait for that OBSE version... Since this is no essential part of my mod. I'll probably be able to release my mod before. I have to outwipe some mistakes before. 1) I can't activate the book from my inventory, OnActivate somehow doesn't work. 2) I can't pick up the book. I tried to make a choice by using an OnActivate messagebox with the choices "Read" and "Write". The "Write" part worked and activated the script, but the "Read" part somehow didn't activate the book as a normal one should be activated. 3) I need a function which "enchants" an NPC as soon as he talks to the player or probably it would be enough if he's enchanted as soon as he comes within a certain reach. I tried to place a trigzone round the player but this didn't work.
Here's a vid of how the mod's working this far http://www.youtube.com/watch?v=bfH6GusRCIc
Thanks for your answer, PersianLink 13:04, 3 November 2008 (EST)