Difference between revisions of "User talk:D2k204"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Qazaaq
(changes to IsQuestItem)
imported>DragoonWraith
Line 7: Line 7:
Thank you.<br />
Thank you.<br />
[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 06:33, 16 October 2009 (EDT)
[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 06:33, 16 October 2009 (EDT)
:Well, your particular code wouldn't do anything; it would reach the Goto, not know of any Label 100 (because it hasn't reached that line yet), and then just continue and reach the Label as normal. Why are you trying to skip the endif, anyway? That doesn't actually do anything.
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 18:15, 16 October 2009 (EDT)


== changes to IsQuestItem ==
== changes to IsQuestItem ==

Revision as of 17:15, 16 October 2009

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)

Well, your particular code wouldn't do anything; it would reach the Goto, not know of any Label 100 (because it hasn't reached that line yet), and then just continue and reach the Label as normal. Why are you trying to skip the endif, anyway? That doesn't actually do anything.
Dragoon Wraith TALK 18:15, 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)