User talk:D2k204

From the Oblivion ConstructionSet Wiki
Revision as of 13:42, 16 October 2009 by imported>Qazaaq (changes to IsQuestItem)
Jump to navigation Jump to search

Common Bugs Suggestion

Hey,

Your suggestion for the RemoveItem bug in the Common Bugs page does not work - Goto does not work with Labels that appear before the Goto. While your contributions are appreciated, please test your suggestions before adding them to pages.

Thank you.
Dragoon Wraith TALK 06:33, 16 October 2009 (EDT)

changes to IsQuestItem

Are you certain your changes to IsQuestItem are correct? I think you may be confusing ref variables with references. ref is a variable type that can store a formID, in most cases this is either:

  • A reference ID, which is a form ID that refers to one specific 3D instance of an object. For example; a sword standing against the wall at the smithy.
  • An object ID, which is a form ID that refers to a template for references. For example SteelLongsword (not sure this is the correct ID); this is the template for all steel longsword instances in the 3D world.

Note that inventory items are neither, they don't exist as a 3D model in the game world, but they are somewhat like an instance. Let's leave them out of this.

IsQuestItem is supposed to work on both references and objects. So if you have a specific reference of which you'd like to know if it's a quest item you call the function like this:

reference.IsQuestItem

You could get references from GetFirstRef/GetNextRef for example.

If you know the object ID you'd call IsQuestItem like this:

IsQuestItem objectID

You could get an ObjectID from GetEquippedObject for example.

So, are you sure IsQuestItem works the way it says in the article now?
--Qazaaq 14:42, 16 October 2009 (EDT)