Difference between revisions of "Help talk:Function syntax"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Arthmoor
(Variable types?)
 
imported>DragoonWraith
(→‎String and Bool types?: response to Arthmoor)
Line 1: Line 1:
Aren't the <i>string</i> and <i>bool</i> types specific to OBSE? I don't recall ever seeing either one used in a purely vanilla script.
== String and Bool types? ==
 
Aren't the <i>string</i> and <i>bool</i> types specific to OBSE? I don't recall ever seeing either one used in a purely vanilla script. --[[User:Arthmoor|Arthmoor]]
 
:String is used as an argument value by Oblivion script... you're probably right that no function returns one, though. I may amend the wording there.
 
:Boolean values are used by functions all the time, though there is no special <tt>bool</tt> variable type. That might be unclear. But the page is primarily intended to explain the descriptions used by the Wiki, which ''does'' use <tt>bool</tt> to indicate a boolean value (even though the variable passed to the function or receiving the result would be declared as a <tt>short</tt>).
 
:I'll try to make that a bit clearer.
 
:Oh, and please sign comments on discussion pages with <tt><nowiki>~~~~</nowiki></tt>; it'll insert your name and a timestamp, which is convenient for keeping track of who is saying what.
:[[User:DragoonWraith|<span style="font-family: Oblivion; size=2;">D</span>ragoon <span style="font-family: Oblivion; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion; size=2;">TALK</span>]] 17:34, 1 September 2011 (EDT)

Revision as of 16:34, 1 September 2011

String and Bool types?

Aren't the string and bool types specific to OBSE? I don't recall ever seeing either one used in a purely vanilla script. --Arthmoor

String is used as an argument value by Oblivion script... you're probably right that no function returns one, though. I may amend the wording there.
Boolean values are used by functions all the time, though there is no special bool variable type. That might be unclear. But the page is primarily intended to explain the descriptions used by the Wiki, which does use bool to indicate a boolean value (even though the variable passed to the function or receiving the result would be declared as a short).
I'll try to make that a bit clearer.
Oh, and please sign comments on discussion pages with ~~~~; it'll insert your name and a timestamp, which is convenient for keeping track of who is saying what.
Dragoon Wraith TALK 17:34, 1 September 2011 (EDT)