Difference between revisions of "Talk:If"

Jump to navigation Jump to search
283 bytes added ,  02:22, 22 September 2009
no edit summary
imported>DragoonWraith
imported>Notthross
Line 150: Line 150:
:::As for "quoted hex FormIds", what do you mean? The only time you should ever be worrying about the actual numerical FormID is when you're using the console. In scripts, you can use the EditorID; the compiler will automatically insert the appropriate FormID when you save. EditorIDs are just massively easier to read, so even though FormIDs will ''work'', it's a really bad idea to use them. You do need them in the console, because most of the EditorIDs aren't actually loaded during runtime - only Quest and Reference IDs, IIRC. (actually, I suppose you would also need to know FormIDs for GetFormFromMod, an OBSE function).
:::As for "quoted hex FormIds", what do you mean? The only time you should ever be worrying about the actual numerical FormID is when you're using the console. In scripts, you can use the EditorID; the compiler will automatically insert the appropriate FormID when you save. EditorIDs are just massively easier to read, so even though FormIDs will ''work'', it's a really bad idea to use them. You do need them in the console, because most of the EditorIDs aren't actually loaded during runtime - only Quest and Reference IDs, IIRC. (actually, I suppose you would also need to know FormIDs for GetFormFromMod, an OBSE function).
:::[[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>]] 23:22, 10 August 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>]] 23:22, 10 August 2009 (EDT)
== Brackets ==
=== Can Brackets Stop 'if' Statements? ===
I'm still unsure on this. Would the game process this entire line:
<pre>
if ( Var1 == 0 ) && Var2 == 0
  ;do stuff
</pre>
even if the first variable were true? --[[User:Notthross|Notthross]] 03:22, 22 September 2009 (EDT)
Anonymous user

Navigation menu