Advertisement
gribbleshnibit8

Cipscis' Script Validator Source

Mar 3rd, 2014
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 394.70 KB | None | 0 0
  1. function variable(varName, type) {
  2. this.varName = varName;
  3. this.type = type;
  4. this.sets = 0;
  5. this.checks = 0;
  6. }
  7.  
  8. function editorID(type) {
  9. this.type = type;
  10. }
  11.  
  12. function blocktype(scriptType, names) {
  13. this.scriptType = scriptType;
  14. this.docLink = names.docLink == undefined ? '' : names.docLink;
  15. this.name = names.name == undefined ? '' : names.name
  16. }
  17.  
  18. function scriptFunction(returnType, callingConvention, SEVersion, params, names, notes) {
  19. if (returnType != undefined)
  20. this.returnType = returnType;
  21. if (callingConvention in {
  22. 'R': 1,
  23. 'S': 1,
  24. 'E': 1,
  25. 'B': 1,
  26. 'D': 1
  27. })
  28. this.callingConvention = callingConvention;
  29. if (SEVersion != undefined)
  30. this.SEVersion = SEVersion;
  31. if (params != undefined)
  32. this.params = params;
  33. if (names != undefined) {
  34. this.docLink = names.docLink;
  35. this.name = names.name;
  36. this.shortName = names.shortName;
  37. this.longName = names.longName;
  38. }
  39. if (notes != undefined)
  40. this.notes = notes;
  41. }
  42.  
  43. function alias(functionDef) {
  44. return new scriptFunction(functionDef.returnType, functionDef.callingConvention, functionDef.SEVersion, functionDef.params, {
  45. docLink: functionDef.docLink,
  46. name: functionDef.shortName,
  47. shortName: functionDef.shortName,
  48. longName: functionDef.longName
  49. }, functionDef.notes);
  50. }
  51.  
  52. function scriptFunctionParam(dataType, name, optional, values, deprecated) {
  53. this.dataType = dataType;
  54. this.name = name;
  55. this.optional = optional != undefined && optional != false;
  56. this.values = values != undefined ? values : false;
  57. this.deprecated = deprecated != undefined && deprecated != false;
  58. }
  59.  
  60. function scriptFunctionNote(condition, content, level) {
  61. this.condition = condition;
  62. this.content = content;
  63. this.level = level;
  64. }
  65. dictionary = {
  66. keywords: {},
  67. fallout3blocktypes: {},
  68. newvegasblocktypes: {},
  69. blocktypes: {},
  70. values: {},
  71. fallout3functions: {},
  72. fosefunctions: {},
  73. newvegasfunctions: {},
  74. nvsefunctions: {},
  75. functions: {}
  76. } {
  77. dictionary.keywords['to'] = {
  78. type: '2',
  79. name: 'to'
  80. };
  81. dictionary.keywords['return'] = {
  82. type: '2',
  83. name: 'Return',
  84. non_contextual_errors: []
  85. }
  86. dictionary.keywords['return'].non_contextual_errors[''] = /^(;(.*))?$/;
  87. dictionary.keywords['return'].non_contextual_errors['Condition not allowed'] = /^[^;]+(;(.*))?$/;
  88. dictionary.keywords['scriptname'] = {
  89. type: '1',
  90. name: 'ScriptName',
  91. longName: 'ScriptName',
  92. shortName: 'scn',
  93. non_contextual_errors: []
  94. }
  95. dictionary.keywords['scriptname'].non_contextual_errors[''] = /^([^\d\W]\w*)\s*(;(.*))?$/;
  96. dictionary.keywords['scriptname'].non_contextual_errors['EditorID missing'] = /^(;(.*))?$/;
  97. dictionary.keywords['scriptname'].non_contextual_errors['Multiple editorIDs'] = /^[^\s;]+(\s+[^\s;]+)+\s*(;(.*))?$/;
  98. dictionary.keywords['scriptname'].non_contextual_errors['EditorID starts with a number'] = /^\d\w*\s*(;(.*))?$/;
  99. dictionary.keywords['scriptname'].non_contextual_errors['EditorID contains invalid character'] = /^(\w*[^\s\w;])+\w*\s*(;(.*))?$/;
  100. dictionary.keywords['scriptname'].contextual_validate = function (script) {
  101. switch (script.hasScriptName) {
  102. case 1:
  103. script.pushError('Script already has a ScriptName declaration');
  104. break;
  105. case 2:
  106. script.pushError('ScriptName declaration must take place before any valid code');
  107. default:
  108. script.hasScriptName = 1;
  109. }
  110. if (script.scriptType & 1)
  111. script.scriptType--;
  112. if (script.isValid == true) {
  113. var scriptName = script.input[script.lineNumber].match(/^\s*\w+\s+(\w+)/);
  114. if (scriptName != null)
  115. scriptName = scriptName[1];
  116. else
  117. return; if (!(scriptName.toLowerCase() in script.editorIDs)) {
  118. if (scriptName.toLowerCase() in script.variables['#local'] || scriptName.toLowerCase() in script.variables['#global'])
  119. script.pushError('"' + scriptName + '" is a variable name, so cannot be used as an editorID');
  120. else if (scriptName.toLowerCase() in dictionary.keywords)
  121. script.pushError('"' + scriptName + '" is a keyword');
  122. else if (scriptName.toLowerCase() in dictionary.functions)
  123. script.pushError('"' + scriptName + '" is a function');
  124. else
  125. script.editorIDs[scriptName.toLowerCase()] = new editorID('SCPT');
  126. }
  127. }
  128. }
  129. dictionary.keywords['scn'] = {
  130. type: '1',
  131. name: 'scn',
  132. longName: 'ScriptName',
  133. shortName: 'scn',
  134. non_contextual_errors: dictionary.keywords['scriptname'].non_contextual_errors,
  135. contextual_validate: dictionary.keywords['scriptname'].contextual_validate
  136. }
  137. dictionary.keywords['begin'] = {
  138. type: '1',
  139. name: 'Begin',
  140. non_contextual_errors: []
  141. }
  142. dictionary.keywords['begin'].non_contextual_errors[''] = /^[^\s;]+(\s+[^\s;]+)*\s*(;(.*))?$/;
  143. dictionary.keywords['begin'].non_contextual_errors['Blocktype missing'] = /^(;(.*))?$/;
  144. dictionary.keywords['begin'].contextual_validate = function (script) {
  145. if (script.inBlock != '') {
  146. script.pushError('Begin statement illegal within Begin/End block');
  147. if (script.conditionalLevel) {
  148. script.pushError(script.conditionalLevel + ' endif statement' + (script.conditionalLevel > 1 ? 's' : '') + ' missing in block ' + script.blockNumber);
  149. script.conditionalLevel = 0;
  150. }
  151. }
  152. script.indentIncrement = -1;
  153. var blocktype = script.input[script.lineNumber].match(/^\s*begin\s+(\w+)/i);
  154. blocktype = blocktype == null ? 'unknown' : blocktype[1].toLowerCase();
  155. script.inBlock = blocktype;
  156. if (script.isValid == true) {
  157. if (!(blocktype in dictionary.blocktypes))
  158. script.pushError('Invalid blocktype');
  159. else {
  160. var availableScriptTypes = 14 & dictionary.blocktypes[blocktype].scriptType;
  161. if (script.scriptType & availableScriptTypes)
  162. script.scriptType &= availableScriptTypes
  163. else
  164. script.pushError('Blocktype invalid for this type of script');
  165. }
  166. }
  167. if (script.scriptType & 1)
  168. script.scriptType--;
  169. script.blockNumber++;
  170. }
  171. dictionary.keywords['end'] = {
  172. type: '1',
  173. name: 'End',
  174. non_contextual_errors: []
  175. }
  176. dictionary.keywords['end'].non_contextual_errors[''] = /^(;(.*))?$/;
  177. dictionary.keywords['end'].non_contextual_errors['Condition not allowed'] = /^[^;]+(;(.*))?$/;
  178. dictionary.keywords['end'].contextual_validate = function (script) {
  179. if (script.inBlock == '')
  180. script.pushError('End statement illegal outside Begin/End block');
  181. else
  182. script.inBlock = ''; if (script.conditionalLevel) {
  183. script.pushError(script.conditionalLevel + ' endif statement' + (script.conditionalLevel > 1 ? 's' : '') + ' missing');
  184. script.conditionalLevel = 0;
  185. }
  186. if (script.scriptType & 1)
  187. script.scriptType--;
  188. }
  189. dictionary.keywords['if'] = {
  190. type: '1',
  191. name: 'if',
  192. non_contextual_errors: []
  193. }
  194. dictionary.keywords['if'].non_contextual_errors[''] = /^[^;]+(;(.*))?$/;
  195. dictionary.keywords['if'].non_contextual_errors['Condition missing'] = /^(;(.*))?$/;
  196. dictionary.keywords['if'].contextual_validate = function (script) {
  197. script.conditionalLevel++;
  198. script.indentIncrement = -1;
  199. script.elseDone[script.conditionalLevel] = 0;
  200. if (script.conditionalLevel > 10)
  201. script.pushError('Too many nested if statements');
  202. if (script.isValid == true)
  203. validateExpression(script.input[script.lineNumber].replace(/^\s*if\s*/i, "").match(/^([^\s]*(\s*([^"';\s]*|"[^"]*?"|'[^']*?'))*)\s*(;(.*))?$/)[1]);
  204. }
  205. dictionary.keywords['elseif'] = {
  206. type: '1',
  207. name: 'elseif',
  208. non_contextual_errors: dictionary.keywords['if'].non_contextual_errors
  209. }
  210. dictionary.keywords['elseif'].contextual_validate = function (script) {
  211. if (script.conditionalLevel)
  212. script.indentIncrement = -1;
  213. else {
  214. script.conditionalLevel = 1;
  215. script.pushError('elseif statement invalid without preceeding if statement');
  216. }
  217. if (script.elseDone[script.conditionalLevel])
  218. script.pushError('elseif statement invalid after else statement on line ' + script.elseDone[script.conditionalLevel]);
  219. if (script.isValid == true)
  220. validateExpression(script.input[script.lineNumber].replace(/^\s*elseif\s*/i, "").match(/^([^\s]*(\s*([^"';\s]*|"[^"]*?"|'[^']*?'))*)\s*(;(.*))?$/)[1]);
  221. }
  222. dictionary.keywords['else'] = {
  223. type: '1',
  224. name: 'else',
  225. non_contextual_errors: dictionary.keywords['end'].non_contextual_errors
  226. }
  227. dictionary.keywords['else'].contextual_validate = function (script) {
  228. if (script.conditionalLevel)
  229. script.indentIncrement = -1;
  230. else {
  231. script.conditionalLevel = 1;
  232. script.pushError('else statement invalid without preceeding if statement');
  233. }
  234. if (script.elseDone[script.conditionalLevel])
  235. script.pushError('else statement invalid after else statement on line ' + script.elseDone[script.conditionalLevel]);
  236. else
  237. script.elseDone[script.conditionalLevel] = script.lineNumber;
  238. }
  239. dictionary.keywords['endif'] = {
  240. type: '1',
  241. name: 'endif',
  242. non_contextual_errors: dictionary.keywords['else'].non_contextual_errors
  243. }
  244. dictionary.keywords["endif"].contextual_validate = function (script) {
  245. if (script.conditionalLevel)
  246. script.conditionalLevel--;
  247. else
  248. script.pushError('endif statement invalid without preceeding if statement');
  249. }
  250. dictionary.keywords['set'] = {
  251. type: '2',
  252. name: 'set',
  253. non_contextual_errors: []
  254. }
  255. dictionary.keywords['set'].non_contextual_errors[''] = /^([^\d\W]\w*\.)?\w+\s+to\s+[^;]+(;(.*))?$/i;
  256. dictionary.keywords['set'].non_contextual_errors['EditorID starts with a number'] = /^\d[^\s;]*\.\w+\s+to\s+[^;]+\s*(;(.*))?$/i;
  257. dictionary.keywords['set'].non_contextual_errors['EditorID contains invalid character'] = /^[^\s;]+\.\w+\s+to\s+[^;]+\s*(;(.*))?$/i;
  258. dictionary.keywords['set'].non_contextual_errors['Invalid variable name'] = /^[^\s;]+\s+to\s+[^;]+\s*(;(.*))?$/i;
  259. dictionary.keywords['set'].non_contextual_errors['Variable name missing'] = /^(to\s+[^;]*)?\s*(;(.*))?$/i;
  260. dictionary.keywords['set'].non_contextual_errors['Expression missing'] = /^[^\s;]+(\.\w+)?\s+to\s*(;(.*))?$/i;
  261. dictionary.keywords['set'].non_contextual_errors['"to" missing'] = /^[^\s;]+(\.\w+)?(\s+[^\s;]+)*\s*(;(.*))?$/i;
  262. dictionary.keywords['set'].contextual_validate = function (script) {
  263. var incrSets;
  264. if (script.isValid == true) {
  265. var ID = script.input[script.lineNumber].match(/^\s*set\s+((\w+)\.)?(\w+)\s+to\s+([^;])+(;(.*))?$/i)[2];
  266. var varName = script.input[script.lineNumber].match(/^\s*set\s+((\w+)\.)?(\w+)\s+to\s+([^;])+(;(.*))?$/i)[3];
  267. if (ID != undefined && ID != '') {
  268. if (!(ID.toLowerCase() in script.editorIDs)) {
  269. if (ID.toLowerCase() in script.variables['#local'] || ID.toLowerCase() in script.variables['#global'])
  270. script.pushError('"' + ID + '" is a variable name, so cannot be used as an editorID');
  271. else if (ID.toLowerCase() in dictionary.keywords)
  272. script.pushError('"' + ID + '" is a keyword');
  273. else
  274. script.editorIDs[ID.toLowerCase()] = new editorID();
  275. }
  276. }
  277. if (varName.toLowerCase() in script.variables['#local'] == false || (ID != undefined && ID != '')) {
  278. if (varName.toLowerCase() in script.editorIDs)
  279. script.pushError('"' + varName + '" is an editorID for a non-global form');
  280. else if (varName.toLowerCase() in dictionary.keywords)
  281. script.pushError('"' + varName + '" is a keyword');
  282. else if (varName.toLowerCase() in dictionary.functions)
  283. script.pushError('"' + varName + '" is a function');
  284. else if (ID == undefined && !(varName in script.variables['#global'])) {
  285. script.variables['#global'][varName.toLowerCase()] = new variable(varName);
  286. script.pushWarning('"' + varName + '" is not declared in this script. Make sure it is a global variable')
  287. } else {
  288. if (ID == 'constructor')
  289. ID = '#constructor';
  290. if (!(ID in script.variables))
  291. script.variables[ID] = {};
  292. script.variables[ID][varName.toLowerCase()] = new variable(varName);
  293. }
  294. } else if (varName.toLowerCase() in script.variables['#local'])
  295. incrSets = 1;
  296. if (script.isValid == true)
  297. validateExpression(script.input[script.lineNumber].replace(/^\s*set\s+([^\W\d]\w+\.)?\w+\s+to\s*/i, "").match(/^([^\s]*(\s*([^"';\s]*|"[^"]*?"|'[^']*?'))*)\s*(;(.*))?$/)[1]);
  298. if (incrSets == 1)
  299. script.variables['#local'][varName.toLowerCase()].sets++;
  300. }
  301. }
  302. dictionary.keywords['int'] = {
  303. type: '2',
  304. name: 'int',
  305. non_contextual_errors: []
  306. }
  307. dictionary.keywords['int'].contextual_validate = function (script) {
  308. if (script.inBlock != '') {
  309. script.pushError('Variable declaration illegal within Begin/End block');
  310. }
  311. var varName = trim(script.input[script.lineNumber]).replace(/^\w+\s+/, "").replace(/\s*(;(.*))?$/, "");
  312. if (script.isValid == true) {
  313. if (varName.toLowerCase() in script.variables['#local'])
  314. script.pushError('Variable "' + varName + '" has already been declared');
  315. else if (varName.toLowerCase() in script.variables['#global'])
  316. script.pushError('"' + varName + '" is the name of a global variable');
  317. else if (varName.toLowerCase() in dictionary.keywords)
  318. script.pushError('"' + varName + '" is a keyword');
  319. else if (varName.toLowerCase() in script.editorIDs)
  320. script.pushError('"' + varName + '" is an editorID for a non-global form');
  321. else
  322. script.variables['#local'][varName.toLowerCase()] = new variable(varName, 'int');
  323. }
  324. }
  325. dictionary.keywords['int'].non_contextual_errors[''] = /^\w*[^\W\d]+\w*\s*(;(.*))?$/;
  326. dictionary.keywords['int'].non_contextual_errors['Variable name missing'] = /^(;(.*))?$/;
  327. dictionary.keywords['int'].non_contextual_errors['Variable name cannot be a number'] = /^\d+\s*(;(.*))?$/;
  328. dictionary.keywords['int'].non_contextual_errors['Multiple variable names'] = /^[^\s;]+(\s+[^\s;]+)+\s*(;(.*))?$/;
  329. dictionary.keywords['int'].non_contextual_errors['Variable name contains invalid character'] = /^(\w*[^\s\w;])+\w*\s*(;(.*))?$/;
  330. dictionary.keywords['short'] = {
  331. type: '2',
  332. name: 'short',
  333. shortName: 'int',
  334. non_contextual_errors: dictionary.keywords['int'].non_contextual_errors,
  335. contextual_validate: dictionary.keywords['int'].contextual_validate
  336. }
  337. dictionary.keywords['long'] = {
  338. type: '2',
  339. name: 'int',
  340. shortName: 'int',
  341. non_contextual_errors: dictionary.keywords['int'].non_contextual_errors,
  342. contextual_validate: dictionary.keywords['int'].contextual_validate
  343. }
  344. dictionary.keywords['float'] = {
  345. type: '2',
  346. name: 'float',
  347. non_contextual_errors: dictionary.keywords['int'].non_contextual_errors
  348. }
  349. dictionary.keywords['float'].contextual_validate = function (script) {
  350. if (script.inBlock != '') {
  351. script.pushError('Variable declaration illegal within Begin/End block');
  352. }
  353. var varName = trim(script.input[script.lineNumber]).replace(/^\w+\s+/, '').replace(/\s*(;(.*))?$/, '');
  354. if (script.isValid == true) {
  355. if (varName.toLowerCase() in script.variables['#local'])
  356. script.pushError('Variable "' + varName + '" has already been declared');
  357. else if (varName.toLowerCase() in script.variables['#global'])
  358. script.pushError('"' + varName + '" is the name of a global variable');
  359. else if (varName.toLowerCase() in dictionary.keywords)
  360. script.pushError('"' + varName + '" is a keyword');
  361. else if (varName.toLowerCase() in script.editorIDs)
  362. script.pushError('"' + varName + '" is an editorID for a non-global form');
  363. else
  364. script.variables['#local'][varName.toLowerCase()] = new variable(varName, 'float');
  365. }
  366. }
  367. dictionary.keywords['ref'] = {
  368. type: '2',
  369. name: 'ref',
  370. non_contextual_errors: dictionary.keywords['int'].non_contextual_errors
  371. }
  372. dictionary.keywords['ref'].contextual_validate = function (script) {
  373. if (script.inBlock != '') {
  374. script.pushError('Variable declaration illegal within Begin/End block');
  375. }
  376. var varName = trim(script.input[script.lineNumber]).replace(/^\w+\s+/, '').replace(/\s*(;(.*))?$/, '');
  377. if (script.isValid == true) {
  378. if (varName.toLowerCase() in script.variables['#local'])
  379. script.pushError('Variable "' + varName + '" has already been declared');
  380. else if (varName.toLowerCase() in script.variables['#global'])
  381. script.pushError('"' + varName + '" is the name of a global variable');
  382. else if (varName.toLowerCase() in dictionary.keywords)
  383. script.pushError('"' + varName + '" is a keyword');
  384. else if (varName.toLowerCase() in script.editorIDs)
  385. script.pushError('"' + varName + '" is an editorID for a non-global form');
  386. else
  387. script.variables['#local'][varName.toLowerCase()] = new variable(varName, 'ref');
  388. }
  389. }
  390. dictionary.keywords['reference'] = {
  391. type: '2',
  392. name: 'reference',
  393. shortName: 'ref',
  394. non_contextual_errors: dictionary.keywords['ref'].non_contextual_errors,
  395. contextual_validate: dictionary.keywords['ref'].contextual_validate
  396. }
  397. } {
  398. {
  399. dictionary.fallout3blocktypes['gamemode'] = new blocktype(7, {
  400. docLink: 'http://geck.bethsoft.com/index.php/GameMode',
  401. name: 'GameMode'
  402. });
  403. dictionary.fallout3blocktypes['menumode'] = new blocktype(7, {
  404. docLink: 'http://geck.bethsoft.com/index.php/MenuMode',
  405. name: 'MenuMode'
  406. });
  407. dictionary.fallout3blocktypes['onactivate'] = new blocktype(4, {
  408. docLink: 'http://geck.bethsoft.com/index.php/OnActivate',
  409. name: 'OnActivate'
  410. });
  411. dictionary.fallout3blocktypes['onactorequip'] = new blocktype(4, {
  412. docLink: 'http://geck.bethsoft.com/index.php/OnActorEquip',
  413. name: 'OnActorEquip'
  414. });
  415. dictionary.fallout3blocktypes['onactorunequip'] = new blocktype(4, {
  416. docLink: 'http://geck.bethsoft.com/index.php/OnActorUnequip',
  417. name: 'OnActorUnequip'
  418. });
  419. dictionary.fallout3blocktypes['onadd'] = new blocktype(4, {
  420. docLink: 'http://geck.bethsoft.com/index.php/OnAdd',
  421. name: 'OnAdd'
  422. });
  423. dictionary.fallout3blocktypes['onclose'] = new blocktype(4, {
  424. docLink: 'http://geck.bethsoft.com/index.php/OnClose',
  425. name: 'OnClose'
  426. });
  427. dictionary.fallout3blocktypes['oncombatend'] = new blocktype(4, {
  428. docLink: 'http://geck.bethsoft.com/index.php/OnCombatEnd',
  429. name: 'OnCombatEnd'
  430. });
  431. dictionary.fallout3blocktypes['ondeath'] = new blocktype(4, {
  432. docLink: 'http://geck.bethsoft.com/index.php/OnDeath',
  433. name: 'OnDeath'
  434. });
  435. dictionary.fallout3blocktypes['ondestructionstagechange'] = new blocktype(4, {
  436. docLink: 'http://geck.bethsoft.com/index.php/OnDestructionStageChange',
  437. name: 'OnDestructionStageChange'
  438. });
  439. dictionary.fallout3blocktypes['ondrop'] = new blocktype(4, {
  440. docLink: 'http://geck.bethsoft.com/index.php/OnDrop',
  441. name: 'OnDrop'
  442. });
  443. dictionary.fallout3blocktypes['onequip'] = new blocktype(4, {
  444. docLink: 'http://geck.bethsoft.com/index.php/OnEquip',
  445. name: 'OnEquip'
  446. });
  447. dictionary.fallout3blocktypes['ongrab'] = new blocktype(4, {
  448. docLink: 'http://geck.bethsoft.com/index.php/OnGrab',
  449. name: 'OnGrab'
  450. });
  451. dictionary.fallout3blocktypes['onhit'] = new blocktype(4, {
  452. docLink: 'http://geck.bethsoft.com/index.php/OnHit',
  453. name: 'OnHit'
  454. });
  455. dictionary.fallout3blocktypes['onhitwith'] = new blocktype(4, {
  456. docLink: 'http://geck.bethsoft.com/index.php/OnHitWith',
  457. name: 'OnHitWith'
  458. });
  459. dictionary.fallout3blocktypes['onload'] = new blocktype(4, {
  460. docLink: 'http://geck.bethsoft.com/index.php/OnLoad',
  461. name: 'OnLoad'
  462. });
  463. dictionary.fallout3blocktypes['onmagiceffecthit'] = new blocktype(4, {
  464. docLink: 'http://geck.bethsoft.com/index.php/OnMagicEffectHit',
  465. name: 'OnMagicEffectHit'
  466. });
  467. dictionary.fallout3blocktypes['onmurder'] = new blocktype(4, {
  468. docLink: 'http://geck.bethsoft.com/index.php/OnMurder',
  469. name: 'OnMurder'
  470. });
  471. dictionary.fallout3blocktypes['onopen'] = new blocktype(4, {
  472. docLink: 'http://geck.bethsoft.com/index.php/OnOpen',
  473. name: 'OnOpen'
  474. });
  475. dictionary.fallout3blocktypes['onpackagechange'] = new blocktype(4, {
  476. docLink: 'http://geck.bethsoft.com/index.php/OnPackageChange',
  477. name: 'OnPackageChange'
  478. });
  479. dictionary.fallout3blocktypes['onpackagedone'] = new blocktype(4, {
  480. docLink: 'http://geck.bethsoft.com/index.php/OnPackageDone',
  481. name: 'OnPackageDone'
  482. });
  483. dictionary.fallout3blocktypes['onpackagestart'] = new blocktype(4, {
  484. docLink: 'http://geck.bethsoft.com/index.php/OnPackageStart',
  485. name: 'OnPackageStart'
  486. });
  487. dictionary.fallout3blocktypes['onrelease'] = new blocktype(4, {
  488. docLink: 'http://geck.bethsoft.com/index.php/OnRelease',
  489. name: 'OnRelease'
  490. });
  491. dictionary.fallout3blocktypes['onreset'] = new blocktype(4, {
  492. docLink: 'http://geck.bethsoft.com/index.php/OnReset',
  493. name: 'OnReset'
  494. });
  495. dictionary.fallout3blocktypes['onsell'] = new blocktype(4, {
  496. docLink: 'http://geck.bethsoft.com/index.php/OnSell',
  497. name: 'OnSell'
  498. });
  499. dictionary.fallout3blocktypes['onstartcombat'] = new blocktype(4, {
  500. docLink: 'http://geck.bethsoft.com/index.php/OnStartCombat',
  501. name: 'OnStartCombat'
  502. });
  503. dictionary.fallout3blocktypes['ontrigger'] = new blocktype(4, {
  504. docLink: 'http://geck.bethsoft.com/index.php/OnTrigger',
  505. name: 'OnTrigger'
  506. });
  507. dictionary.fallout3blocktypes['ontriggerenter'] = new blocktype(4, {
  508. docLink: 'http://geck.bethsoft.com/index.php/OnTriggerEnter',
  509. name: 'OnTriggerEnter'
  510. });
  511. dictionary.fallout3blocktypes['ontriggerleave'] = new blocktype(4, {
  512. docLink: 'http://geck.bethsoft.com/index.php/OnTriggerLeave',
  513. name: 'OnTriggerLeave'
  514. });
  515. dictionary.fallout3blocktypes['onunequip'] = new blocktype(4, {
  516. docLink: 'http://geck.bethsoft.com/index.php/OnUnequip',
  517. name: 'OnUnequip'
  518. });
  519. dictionary.fallout3blocktypes['saytodone'] = new blocktype(6, {
  520. docLink: 'http://geck.bethsoft.com/index.php/SayToDone',
  521. name: 'SayToDone'
  522. });
  523. dictionary.fallout3blocktypes['scripteffectfinish'] = new blocktype(8, {
  524. docLink: 'http://geck.bethsoft.com/index.php/ScriptEffectFinish',
  525. name: 'ScriptEffectFinish'
  526. });
  527. dictionary.fallout3blocktypes['scripteffectstart'] = new blocktype(8, {
  528. docLink: 'http://geck.bethsoft.com/index.php/ScriptEffectStart',
  529. name: 'ScriptEffectStart'
  530. });
  531. dictionary.fallout3blocktypes['scripteffectupdate'] = new blocktype(8, {
  532. docLink: 'http://geck.bethsoft.com/index.php/ScriptEffectUpdate',
  533. name: 'ScriptEffectUpdate'
  534. });
  535. } {
  536. dictionary.newvegasblocktypes = combineObjects([dictionary.fallout3blocktypes]);
  537. }
  538. dictionary.blocktypes = combineObjects([dictionary.fallout3blocktypes]);
  539. } {
  540. dictionary.values.attributes = {
  541. strength: 'Strength',
  542. perception: 'Perception',
  543. endurance: 'Endurance',
  544. charisma: 'Charisma',
  545. intelligence: 'Intelligence',
  546. agility: 'Agility',
  547. luck: 'Luck'
  548. }
  549. dictionary.values.skills = {
  550. barter: 'Barter',
  551. bigguns: 'BigGuns',
  552. energyweapons: 'EnergyWeapons',
  553. explosives: 'Explosives',
  554. lockpick: 'Lockpick',
  555. medicine: 'Medicine',
  556. meleeweapons: 'MeleeWeapons',
  557. repair: 'Repair',
  558. science: 'Science',
  559. smallguns: 'SmallGuns',
  560. sneak: 'Sneak',
  561. speech: 'Speech',
  562. throwing: 'Throwing',
  563. unarmed: 'Unarmed'
  564. }
  565. dictionary.values.actorValues = {
  566. actionpoints: 'ActionPoints',
  567. carryweight: 'CarryWeight',
  568. critchance: 'CritChance',
  569. healrate: 'HealRate',
  570. health: 'Health',
  571. meleedamage: 'MeleeDamage',
  572. unarmeddamage: 'UnarmedDamage',
  573. damageresist: 'DamageResist',
  574. poisonresist: 'PoisonResist',
  575. radresist: 'RadResist',
  576. speedmult: 'SpeedMult',
  577. fatigue: 'Fatigue',
  578. karma: 'Karma',
  579. xp: 'XP',
  580. perceptioncondition: 'PerceptionCondition',
  581. endurancecondition: 'EnduranceCondition',
  582. leftattackcondition: 'LeftAttackCondition',
  583. rightattackcondition: 'RightAttackCondition',
  584. leftmobilitycondition: 'LeftMobilityCondition',
  585. rightmobilitycondition: 'RightMobilityCondition',
  586. braincondition: 'BrainCondition',
  587. aggression: 'Aggression',
  588. assistance: 'Assistance',
  589. confidence: 'Confidence',
  590. energy: 'Energy',
  591. responsibility: 'Responsibility',
  592. mood: 'Mood',
  593. inventoryweight: 'InventoryWeight',
  594. paralysis: 'Paralysis',
  595. invisibility: 'Invisibility',
  596. chameleon: 'Chameleon',
  597. nighteye: 'NightEye',
  598. detectliferange: 'DetectLifeRange',
  599. fireresist: 'FireResist',
  600. waterbreathing: 'WaterBreathing',
  601. radiationrads: 'RadiationRads',
  602. bloodymess: 'BloodyMess',
  603. ignorecrippledlimbs: 'IgnoreCrippledLimbs',
  604. variable01: 'Variable01',
  605. variable02: 'Variable02',
  606. variable03: 'Variable03',
  607. variable04: 'Variable04',
  608. variable05: 'Variable05',
  609. variable06: 'Variable06',
  610. variable07: 'Variable07',
  611. variable08: 'Variable08',
  612. variable09: 'Variable09',
  613. variable10: 'Variable10'
  614. };
  615. dictionary.values.actorValues = combineObjects([dictionary.values.attributes, dictionary.values.skills, dictionary.values.actorValues])
  616. dictionary.values.axes = {
  617. x: 'X',
  618. y: 'Y',
  619. z: 'Z'
  620. };
  621. dictionary.values.menuModes = {
  622. 0: '0',
  623. 1: '1',
  624. 2: '2',
  625. 3: '3',
  626. 1001: '1001',
  627. 1002: '1002',
  628. 1003: '1003',
  629. 1004: '1004',
  630. 1007: '1007',
  631. 1008: '1008',
  632. 1009: '1009',
  633. 1012: '1012',
  634. 1013: '1013',
  635. 1014: '1014',
  636. 1016: '1016',
  637. 1023: '1023',
  638. 1027: '1027',
  639. 1035: '1035',
  640. 1036: '1036',
  641. 1047: '1047',
  642. 1048: '1048',
  643. 1051: '1051',
  644. 1053: '1053',
  645. 1054: '1054',
  646. 1055: '1055',
  647. 1056: '1056',
  648. 1057: '1057',
  649. 1058: '1058',
  650. 1059: '1059',
  651. 1060: '1060'
  652. };
  653. } {
  654. dictionary.fallout3functions['unusedfunction0'] = new scriptFunction('void', 'D', 0, [], {
  655. name: 'UnusedFunction0'
  656. });
  657. dictionary.fallout3functions['getdistance'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('ref', 'Target')], {
  658. docLink: 'http://geck.bethsoft.com/index.php/GetDistance',
  659. name: 'GetDistance'
  660. }, [new scriptFunctionNote(function (functionCall) {
  661. if (functionCall[0] != null)
  662. return functionCall[0].toLowerCase() in {
  663. player: 1,
  664. playerref: 1
  665. };
  666. else
  667. return false;
  668. }, 'GetDistance shouldn\'t be called on the player. Pass "player" as a parameter of GetDistance instead', 1), new scriptFunctionNote(function (functionCall) {
  669. if (functionCall[0] != null && functionCall[1] != null)
  670. return functionCall[0].toLowerCase() == functionCall[1].toLowerCase();
  671. else
  672. return false;
  673. }, 'You are calling GetDistance on the same reference as you are passing as its parameter', 1)]);
  674. dictionary.fallout3functions['additem'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID'), new scriptFunctionParam('int', 'Count'), new scriptFunctionParam('int', 'HideMessageFlag', true)], {
  675. docLink: 'http://geck.bethsoft.com/index.php/AddItem',
  676. name: 'AddItem'
  677. });
  678. dictionary.fallout3functions['setessential'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'BaseID'), new scriptFunctionParam('boolean', 'Flag')], {
  679. docLink: 'http://geck.bethsoft.com/index.php/SetEssential',
  680. name: 'SetEssential'
  681. });
  682. dictionary.fallout3functions['rotate'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'Axis'), new scriptFunctionParam('float', 'DegreesPerSec')], {
  683. docLink: 'http://geck.bethsoft.com/index.php/Rotate',
  684. name: 'Rotate'
  685. });
  686. dictionary.fallout3functions['getlocked'] = new scriptFunction('bool', 'R', 0, [], {
  687. docLink: 'http://geck.bethsoft.com/index.php/GetLocked',
  688. name: 'GetLocked'
  689. });
  690. dictionary.fallout3functions['getpos'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes)], {
  691. docLink: 'http://geck.bethsoft.com/index.php/GetPos',
  692. name: 'GetPos'
  693. });
  694. dictionary.fallout3functions['setpos'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes), new scriptFunctionParam('float', 'Pos')], {
  695. docLink: 'http://geck.bethsoft.com/index.php/SetPos',
  696. name: 'SetPos'
  697. });
  698. dictionary.fallout3functions['getangle'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes)], {
  699. docLink: 'http://geck.bethsoft.com/index.php/GetAngle',
  700. name: 'GetAngle'
  701. });
  702. dictionary.fallout3functions['setangle'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes), new scriptFunctionParam('float', 'Angle')], {
  703. docLink: 'http://geck.bethsoft.com/index.php/SetAngle',
  704. name: 'SetAngle'
  705. });
  706. dictionary.fallout3functions['getstartingpos'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes)], {
  707. docLink: 'http://geck.bethsoft.com/index.php/GetStartingPos',
  708. name: 'GetStartingPos'
  709. });
  710. dictionary.fallout3functions['getstartingangle'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes)], {
  711. docLink: 'http://geck.bethsoft.com/index.php/GetStartingAngle',
  712. name: 'GetStartingAngle'
  713. });
  714. dictionary.fallout3functions['getsecondspassed'] = new scriptFunction('float', 'B', 0, [], {
  715. docLink: 'http://geck.bethsoft.com/index.php/GetSecondsPassed',
  716. name: 'GetSecondsPassed'
  717. }, [new scriptFunctionNote(function (functionCall) {
  718. return script.inBlock.toLowerCase() == 'scripteffectupdate';
  719. }, 'Use "ScriptEffectElapsedSeconds" instead of "GetSecondsPassed" in a "ScriptEffectUpdate" block', 0), new scriptFunctionNote(function (functionCall) {
  720. return !(script.inBlock.toLowerCase() in {
  721. 'scripteffectupdate': 1,
  722. 'ontrigger': 1,
  723. 'gamemode': 1,
  724. 'menumode': 1
  725. });
  726. }, '"GetSecondsPassed" should not be used in this type of Begin/End block, as it does not run continuously', 1)]);
  727. dictionary.fallout3functions['activate'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ActionRef', true), new scriptFunctionParam('int', 'RunOnActivateBlockFlag', true)], {
  728. docLink: 'http://geck.bethsoft.com/index.php/Activate',
  729. name: 'Activate'
  730. });
  731. dictionary.fallout3functions['getactorvalue'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.actorValues)], {
  732. docLink: 'http://geck.bethsoft.com/index.php/GetActorValue',
  733. name: 'GetActorValue',
  734. shortName: 'GetAV',
  735. longName: 'GetActorValue'
  736. });
  737. dictionary.fallout3functions['getav'] = alias(dictionary.fallout3functions['getactorvalue']);
  738. dictionary.fallout3functions['setactorvalue'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.actorValues), new scriptFunctionParam('float', 'Value')], {
  739. docLink: 'http://geck.bethsoft.com/index.php/SetActorValue',
  740. name: 'SetActorValue',
  741. shortName: 'SetAV',
  742. longName: 'SetActorValue'
  743. });
  744. dictionary.fallout3functions['setav'] = alias(dictionary.fallout3functions['setactorvalue']);
  745. dictionary.fallout3functions['modactorvalue'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.actorValues), new scriptFunctionParam('float', 'Value')], {
  746. docLink: 'http://geck.bethsoft.com/index.php/ModActorValue',
  747. name: 'ModActorValue',
  748. shortName: 'ModAV',
  749. longName: 'ModActorValue'
  750. });
  751. dictionary.fallout3functions['modav'] = alias(dictionary.fallout3functions['modactorvalue']);
  752. dictionary.fallout3functions['setatstart'] = new scriptFunction('void', 'D', 0, [], {
  753. docLink: 'http://geck.bethsoft.com/index.php/SetAtStart',
  754. name: 'SetAtStart'
  755. });
  756. dictionary.fallout3functions['getcurrenttime'] = new scriptFunction('float', 'B', 0, [], {
  757. docLink: 'http://geck.bethsoft.com/index.php/GetCurrentTime',
  758. name: 'GetCurrentTime'
  759. });
  760. dictionary.fallout3functions['playgroup'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'AnimGroup'), new scriptFunctionParam('int', 'InitFlag')], {
  761. docLink: 'http://geck.bethsoft.com/index.php/PlayGroup',
  762. name: 'PlayGroup'
  763. });
  764. dictionary.fallout3functions['loopgroup'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'AnimGroup'), new scriptFunctionParam('int', 'InitFlag')], {
  765. docLink: 'http://geck.bethsoft.com/index.php/LoopGroup',
  766. name: 'LoopGroup'
  767. });
  768. dictionary.fallout3functions['skipanim'] = new scriptFunction('void', 'R', 0, [], {
  769. docLink: 'http://geck.bethsoft.com/index.php/SkipAnim',
  770. name: 'SkipAnim'
  771. });
  772. dictionary.fallout3functions['startcombat'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ActorID', true)], {
  773. docLink: 'http://geck.bethsoft.com/index.php/StartCombat',
  774. name: 'StartCombat'
  775. });
  776. dictionary.fallout3functions['stopcombat'] = new scriptFunction('void', 'R', 0, [], {
  777. docLink: 'http://geck.bethsoft.com/index.php/StopCombat',
  778. name: 'StopCombat'
  779. });
  780. dictionary.fallout3functions['getscale'] = new scriptFunction('float', 'R', 0, [], {
  781. docLink: 'http://geck.bethsoft.com/index.php/GetScale',
  782. name: 'GetScale'
  783. });
  784. dictionary.fallout3functions['ismoving'] = new scriptFunction('bool', 'R', 0, [], {
  785. docLink: 'http://geck.bethsoft.com/index.php/IsMoving',
  786. name: 'IsMoving'
  787. });
  788. dictionary.fallout3functions['isturning'] = new scriptFunction('bool', 'R', 0, [], {
  789. docLink: 'http://geck.bethsoft.com/index.php/IsTurning',
  790. name: 'IsTurning'
  791. });
  792. dictionary.fallout3functions['getlineofsight'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID')], {
  793. docLink: 'http://geck.bethsoft.com/index.php/GetLineOfSight',
  794. name: 'GetLineOfSight',
  795. shortName: 'GetLOS',
  796. longName: 'GetLineOfSight'
  797. });
  798. dictionary.fallout3functions['getlos'] = alias(dictionary.fallout3functions['getlineofsight']);
  799. dictionary.fallout3functions['addspell'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'EffectID')], {
  800. docLink: 'http://geck.bethsoft.com/index.php/AddSpell',
  801. name: 'AddSpell'
  802. });
  803. dictionary.fallout3functions['removespell'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'EffectID')], {
  804. docLink: 'http://geck.bethsoft.com/index.php/RemoveSpell',
  805. name: 'RemoveSpell'
  806. });
  807. dictionary.fallout3functions['cast'] = new scriptFunction('void', 'D', 0, [], {
  808. docLink: 'http://geck.bethsoft.com/index.php/Cast',
  809. name: 'Cast'
  810. }, [new scriptFunctionNote(function (functionCall) {
  811. return true;
  812. }, 'Use CastImmediateOnSelf instead', 1)]);
  813. dictionary.fallout3functions['getbuttonpressed'] = new scriptFunction('int', 'B', 0, [], {
  814. docLink: 'http://geck.bethsoft.com/index.php/GetButtonPressed',
  815. name: 'GetButtonPressed'
  816. }, [new scriptFunctionNote(function (functionCall) {
  817. return !(script.inBlock.toLowerCase() in {
  818. 'scripteffectupdate': 1,
  819. 'ontrigger': 1,
  820. 'gamemode': 1,
  821. 'menumode': 1
  822. });
  823. }, '"GetButtonPressed" should not be used in this type of Begin/End block, as it does not run continuously', 1)]);
  824. dictionary.fallout3functions['getinsamecell'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'Target')], {
  825. docLink: 'http://geck.bethsoft.com/index.php/GetInSameCell',
  826. name: 'GetInSameCell'
  827. });
  828. dictionary.fallout3functions['enable'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'FadeIn', true)], {
  829. docLink: 'http://geck.bethsoft.com/index.php/Enable',
  830. name: 'Enable'
  831. });
  832. dictionary.fallout3functions['disable'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'FadeIn', true)], {
  833. docLink: 'http://geck.bethsoft.com/index.php/Disable',
  834. name: 'Disable'
  835. });
  836. dictionary.fallout3functions['getdisabled'] = new scriptFunction('bool', 'R', 0, [], {
  837. docLink: 'http://geck.bethsoft.com/index.php/GetDisabled',
  838. name: 'GetDisabled'
  839. });
  840. dictionary.fallout3functions['menumode'] = new scriptFunction('bool', 'B', 0, [new scriptFunctionParam('int', 'Menu Number', true, dictionary.values.menuModes)], {
  841. docLink: 'http://geck.bethsoft.com/index.php/MenuMode_(Function)',
  842. name: 'MenuMode'
  843. });
  844. dictionary.fallout3functions['placeatme'] = new scriptFunction('ref', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID'), new scriptFunctionParam('int', 'Count', true), new scriptFunctionParam('float', 'Distance', true, false, true), new scriptFunctionParam('int', 'Direction', true, {
  845. 0: '0',
  846. 1: '1',
  847. 2: '2',
  848. 3: '3'
  849. }, true)], {
  850. docLink: 'http://geck.bethsoft.com/index.php/PlaceAtMe',
  851. name: 'PlaceAtMe'
  852. });
  853. dictionary.fallout3functions['playsound'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'SoundID')], {
  854. docLink: 'http://geck.bethsoft.com/index.php/PlaySound',
  855. name: 'PlaySound'
  856. });
  857. dictionary.fallout3functions['getdisease'] = new scriptFunction('void', 'D', 0, [], {
  858. name: 'GetDisease'
  859. });
  860. dictionary.fallout3functions['getvampire'] = new scriptFunction('void', 'D', 0, [], {
  861. name: 'GetVampire'
  862. });
  863. dictionary.fallout3functions['getclothingvalue'] = new scriptFunction('float', 'R', 0, [], {
  864. docLink: 'http://geck.bethsoft.com/index.php/GetClothingValue',
  865. name: 'GetClothingValue'
  866. });
  867. dictionary.fallout3functions['samefaction'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  868. docLink: 'http://geck.bethsoft.com/index.php/SameFaction',
  869. name: 'SameFaction'
  870. });
  871. dictionary.fallout3functions['samerace'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  872. docLink: 'http://geck.bethsoft.com/index.php/SameRace',
  873. name: 'SameRace'
  874. });
  875. dictionary.fallout3functions['samesex'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  876. docLink: 'http://geck.bethsoft.com/index.php/SameSex',
  877. name: 'SameSex'
  878. });
  879. dictionary.fallout3functions['getdetected'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  880. docLink: 'http://geck.bethsoft.com/index.php/GetDetected',
  881. name: 'GetDetected'
  882. });
  883. dictionary.fallout3functions['getdead'] = new scriptFunction('bool', 'R', 0, [], {
  884. docLink: 'http://geck.bethsoft.com/index.php/GetDead',
  885. name: 'GetDead'
  886. });
  887. dictionary.fallout3functions['getitemcount'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID')], {
  888. docLink: 'http://geck.bethsoft.com/index.php/GetItemCount',
  889. name: 'GetItemCount'
  890. }, [new scriptFunctionNote(function (functionCall) {
  891. return (/caps001/i.test(functionCall[1]));
  892. }, 'GetGold is more reliable than "GetItemCount" when checking how many caps an actor has in their inventory', 0)]);
  893. dictionary.fallout3functions['getgold'] = new scriptFunction('int', 'R', 0, [], {
  894. docLink: 'http://geck.bethsoft.com/index.php/GetGold',
  895. name: 'GetGold'
  896. });
  897. dictionary.fallout3functions['getsleeping'] = new scriptFunction('bool', 'R', 0, [], {
  898. docLink: 'http://geck.bethsoft.com/index.php/GetSleeping',
  899. name: 'GetSleeping'
  900. });
  901. dictionary.fallout3functions['gettalkedtopc'] = new scriptFunction('bool', 'R', 0, [], {
  902. docLink: 'http://geck.bethsoft.com/index.php/GetTalkedToPC',
  903. name: 'GetTalkedToPC'
  904. });
  905. dictionary.fallout3functions['say'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'ForceSubtitleFlag', true), new scriptFunctionParam('ref', 'Actor', true), new scriptFunctionParam('int', 'Undocumented int', true)], {
  906. docLink: 'http://geck.bethsoft.com/index.php/Say',
  907. name: 'Say'
  908. })
  909. dictionary.fallout3functions['sayto'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'TargetActor'), new scriptFunctionParam('ref', 'TopicID'), new scriptFunctionParam('int', 'ForceSubtitleFlag', true), new scriptFunctionParam('int', 'NoTargetLook', true)], {
  910. docLink: 'http://geck.bethsoft.com/index.php/SayTo',
  911. name: 'SayTo'
  912. });
  913. dictionary.fallout3functions['getscriptvariable'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'ObjectID'), new scriptFunctionParam('string', 'VarName')], {
  914. docLink: 'http://geck.bethsoft.com/index.php/GetScriptVariable',
  915. name: 'GetScriptVariable'
  916. }, [new scriptFunctionNote(function (functionCall) {
  917. return true;
  918. }, '"GetScriptVariable" is only available in conditions. Use "ObjectID.VarName" for remote variable access in scripts', 1)]);
  919. dictionary.fallout3functions['startquest'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'QuestName')], {
  920. docLink: 'http://geck.bethsoft.com/index.php/StartQuest',
  921. name: 'StartQuest'
  922. });
  923. dictionary.fallout3functions['stopquest'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'QuestName')], {
  924. docLink: 'http://geck.bethsoft.com/index.php/StopQuest',
  925. name: 'StopQuest'
  926. });
  927. dictionary.fallout3functions['getquestrunning'] = new scriptFunction('bool', 'B', 0, [new scriptFunctionParam('ref', 'QuestName')], {
  928. docLink: 'http://geck.bethsoft.com/index.php/GetQuestRunning',
  929. name: 'GetQuestRunning',
  930. shortName: 'GetQR',
  931. longName: 'GetQuestRunning'
  932. });
  933. dictionary.fallout3functions['getqr'] = alias(dictionary.fallout3functions['getquestrunning']);
  934. dictionary.fallout3functions['setstage'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'QuestName'), new scriptFunctionParam('int', 'StageIndex')], {
  935. docLink: 'http://geck.bethsoft.com/index.php/SetStage',
  936. name: 'SetStage'
  937. });
  938. dictionary.fallout3functions['getstage'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'QuestName')], {
  939. docLink: 'http://geck.bethsoft.com/index.php/GetStage',
  940. name: 'GetStage'
  941. });
  942. dictionary.fallout3functions['getstagedone'] = new scriptFunction('bool', 'B', 0, [new scriptFunctionParam('ref', 'QuestName'), new scriptFunctionParam('int', 'StageIndex')], {
  943. docLink: 'http://geck.bethsoft.com/index.php/GetStageDone',
  944. name: 'GetStageDone'
  945. });
  946. dictionary.fallout3functions['getfactionrankdifference'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'FactionID'), new scriptFunctionParam('ref', 'ActorID')], {
  947. docLink: 'http://geck.bethsoft.com/index.php/GetFactionRankDifference',
  948. name: 'GetFactionRankDifference'
  949. });
  950. dictionary.fallout3functions['getalarmed'] = new scriptFunction('bool', 'R', 0, [], {
  951. docLink: 'http://geck.bethsoft.com/index.php/GetAlarmed',
  952. name: 'GetAlarmed'
  953. });
  954. dictionary.fallout3functions['israining'] = new scriptFunction('bool', 'B', 0, [], {
  955. docLink: 'http://geck.bethsoft.com/index.php/IsRaining',
  956. name: 'IsRaining'
  957. });
  958. dictionary.fallout3functions['getattacked'] = new scriptFunction('bool', 'R', 0, [], {
  959. docLink: 'http://geck.bethsoft.com/index.php/GetAttacked',
  960. name: 'GetAttacked'
  961. });
  962. dictionary.fallout3functions['getiscreature'] = new scriptFunction('bool', 'R', 0, [], {
  963. docLink: 'http://geck.bethsoft.com/index.php/GetIsCreature',
  964. name: 'GetIsCreature'
  965. });
  966. dictionary.fallout3functions['getlocklevel'] = new scriptFunction('int', 'R', 0, [], {
  967. docLink: 'http://geck.bethsoft.com/index.php/GetLockLevel',
  968. name: 'GetLockLevel'
  969. });
  970. dictionary.fallout3functions['getshouldattack'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'TargetActor')], {
  971. docLink: 'http://geck.bethsoft.com/index.php/GetShouldAttack',
  972. name: 'GetShouldAttack'
  973. });
  974. dictionary.fallout3functions['getincell'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'CellID')], {
  975. docLink: 'http://geck.bethsoft.com/index.php/GetInCell',
  976. name: 'GetInCell'
  977. });
  978. dictionary.fallout3functions['getisclass'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('string', 'ClassID')], {
  979. docLink: 'http://geck.bethsoft.com/index.php/GetIsClass',
  980. name: 'GetIsClass'
  981. });
  982. dictionary.fallout3functions['getisrace'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'RaceID')], {
  983. docLink: 'http://geck.bethsoft.com/index.php/GetIsRace',
  984. name: 'GetIsRace'
  985. });
  986. dictionary.fallout3functions['getissex'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('string', 'Sex', false, {
  987. male: 'Male',
  988. female: 'Female'
  989. })], {
  990. docLink: 'http://geck.bethsoft.com/index.php/GetIsSex',
  991. name: 'GetIsSex'
  992. });
  993. dictionary.fallout3functions['getinfaction'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'FactionID')], {
  994. docLink: 'http://geck.bethsoft.com/index.php/GetInFaction',
  995. name: 'GetInFaction'
  996. });
  997. dictionary.fallout3functions['getisid'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID')], {
  998. docLink: 'http://geck.bethsoft.com/index.php/GetIsID',
  999. name: 'GetIsID'
  1000. });
  1001. dictionary.fallout3functions['getfactionrank'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'FactionID')], {
  1002. docLink: 'http://geck.bethsoft.com/index.php/GetFactionRank',
  1003. name: 'GetFactionRank'
  1004. });
  1005. dictionary.fallout3functions['getglobalvalue'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('string', 'VarName')], {
  1006. docLink: 'http://geck.bethsoft.com/index.php/GetGlobalValue',
  1007. name: 'GetGlobalValue'
  1008. }, [new scriptFunctionNote(function (functionCall) {
  1009. return true;
  1010. }, '"GetGlobalValue" is only available in conditions. Use "VarName" for global variable access in scripts', 1)]);
  1011. dictionary.fallout3functions['issnowing'] = new scriptFunction('bool', 'B', 0, [], {
  1012. docLink: 'http://geck.bethsoft.com/index.php/IsSnowing',
  1013. name: 'IsSnowing'
  1014. });
  1015. dictionary.fallout3functions['getdisposition'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  1016. docLink: 'http://geck.bethsoft.com/index.php/GetDisposition',
  1017. name: 'GetDisposition'
  1018. });
  1019. dictionary.fallout3functions['getrandompercent'] = new scriptFunction('int', 'B', 0, [], {
  1020. docLink: 'http://geck.bethsoft.com/index.php/GetRandomPercent',
  1021. name: 'GetRandomPercent'
  1022. });
  1023. dictionary.fallout3functions['streammusic'] = new scriptFunction('void', 'D', 0, [], {
  1024. name: 'StreamMusic'
  1025. });
  1026. dictionary.fallout3functions['getquestvariable'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'ObjectID'), new scriptFunctionParam('string', 'VarName')], {
  1027. docLink: 'http://geck.bethsoft.com/index.php/GetQuestVariable',
  1028. name: 'GetQuestVariable'
  1029. }, [new scriptFunctionNote(function (functionCall) {
  1030. return true;
  1031. }, '"GetQuestVariable" is only available in conditions. Use "ObjectID.VarName" for remote variable access in scripts', 1)]);
  1032. dictionary.fallout3functions['getlevel'] = new scriptFunction('int', 'R', 0, [], {
  1033. docLink: 'http://geck.bethsoft.com/index.php/GetLevel',
  1034. name: 'GetLevel'
  1035. });
  1036. dictionary.fallout3functions['getarmorrating'] = new scriptFunction('int', 'R', 0, [], {
  1037. docLink: 'http://geck.bethsoft.com/index.php/GetArmorRating',
  1038. name: 'GetArmorRating'
  1039. });
  1040. dictionary.fallout3functions['removeitem'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID'), new scriptFunctionParam('int', 'Count'), new scriptFunctionParam('int', 'HideMessageFlag', true)], {
  1041. docLink: 'http://geck.bethsoft.com/index.php/RemoveItem',
  1042. name: 'RemoveItem'
  1043. });
  1044. dictionary.fallout3functions['moddisposition'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ActorID'), new scriptFunctionParam('int', 'Value')], {
  1045. docLink: 'http://geck.bethsoft.com/index.php/ModDisposition',
  1046. name: 'ModDisposition'
  1047. });
  1048. dictionary.fallout3functions['getdeadcount'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  1049. docLink: 'http://geck.bethsoft.com/index.php/GetDeadCount',
  1050. name: 'GetDeadCount'
  1051. });
  1052. dictionary.fallout3functions['showmap'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'MapMarkerID'), new scriptFunctionParam('int', 'EnableFastTravel', true)], {
  1053. docLink: 'http://geck.bethsoft.com/index.php/ShowMap',
  1054. name: 'ShowMap'
  1055. });
  1056. dictionary.fallout3functions['startconversation'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ActorID'), new scriptFunctionParam('ref', 'TopicID', true), new scriptFunctionParam('ref', 'SpeakerLocation', true), new scriptFunctionParam('ref', 'TargetLocation'), new scriptFunctionParam('int', 'HeadTrackFlag', true), new scriptFunctionParam('int', 'AllowMovementFlag', true)], {
  1057. docLink: 'http://geck.bethsoft.com/index.php/StartConversation',
  1058. name: 'StartConversation'
  1059. });
  1060. dictionary.fallout3functions['drop'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID'), new scriptFunctionParam('int', 'Count')], {
  1061. docLink: 'http://geck.bethsoft.com/index.php/Drop',
  1062. name: 'Drop'
  1063. });
  1064. dictionary.fallout3functions['addtopic'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'TopicID')], {
  1065. docLink: 'http://geck.bethsoft.com/index.php/AddTopic',
  1066. name: 'AddTopic'
  1067. });
  1068. dictionary.fallout3functions['showmessage'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'MessageID'), new scriptFunctionParam('void', 'Var1', true), new scriptFunctionParam('void', 'Var2', true), new scriptFunctionParam('void', 'Var3', true), new scriptFunctionParam('void', 'Var4', true), new scriptFunctionParam('void', 'Var5', true), new scriptFunctionParam('void', 'Var6', true), new scriptFunctionParam('void', 'Var7', true), new scriptFunctionParam('void', 'Var8', true), new scriptFunctionParam('void', 'Var9', true), new scriptFunctionParam('int', 'Duration', true, false, true)], {
  1069. docLink: 'http://geck.bethsoft.com/index.php/ShowMessage',
  1070. name: 'ShowMessage'
  1071. }, [new scriptFunctionNote(function (functionCall) {
  1072. for (var i = 2; i in functionCall; i++) {
  1073. if (/^('.*?'|'.*?'|(\d*\.)?\d+)$/.test(functionCall[i]) == true)
  1074. return true;
  1075. }
  1076. return false;
  1077. }, '"ShowMessage" only accepts variables for parameters "Var1" through "Var9"', 1)]);
  1078. dictionary.fallout3functions['setalert'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'Flag')], {
  1079. docLink: 'http://geck.bethsoft.com/index.php/SetAlert',
  1080. name: 'SetAlert'
  1081. });
  1082. dictionary.fallout3functions['getisalerted'] = new scriptFunction('bool', 'R', 0, [], {
  1083. docLink: 'http://geck.bethsoft.com/index.php/GetIsAlerted',
  1084. name: 'GetIsAlerted'
  1085. });
  1086. dictionary.fallout3functions['look'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'TargetID')], {
  1087. docLink: 'http://geck.bethsoft.com/index.php/Look',
  1088. name: 'Look'
  1089. });
  1090. dictionary.fallout3functions['stoplook'] = new scriptFunction('void', 'R', 0, [], {
  1091. docLink: 'http://geck.bethsoft.com/index.php/StopLook',
  1092. name: 'StopLook'
  1093. });
  1094. dictionary.fallout3functions['evaluatepackage'] = new scriptFunction('void', 'R', 0, [], {
  1095. docLink: 'http://geck.bethsoft.com/index.php/EvaluatePackage',
  1096. name: 'EvaluatePackage',
  1097. shortName: 'EVP',
  1098. longName: 'EvaluatePackage'
  1099. });
  1100. dictionary.fallout3functions['evp'] = alias(dictionary.fallout3functions['evaluatepackage']);
  1101. dictionary.fallout3functions['sendassaultalarm'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'VictimID'), new scriptFunctionParam('ref', 'VictimFactionID', true)], {
  1102. docLink: 'http://geck.bethsoft.com/index.php/SendAssaultAlarm',
  1103. name: 'SendAssaultAlarm'
  1104. });
  1105. dictionary.fallout3functions['enableplayercontrols'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('int', 'MovementFlag', true), new scriptFunctionParam('int', 'PipboyFlag', true), new scriptFunctionParam('int', 'FightingFlag', true), new scriptFunctionParam('int', 'POVFlag', true), new scriptFunctionParam('int', 'LookingFlag', true), new scriptFunctionParam('int', 'RolloverTextFlag', true), new scriptFunctionParam('int', 'SneakingFlag', true)], {
  1106. docLink: 'http://geck.bethsoft.com/index.php/EnablePlayerControls',
  1107. name: 'EnablePlayerControls'
  1108. });
  1109. dictionary.fallout3functions['disableplayercontrols'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('int', 'MovementFlag', true), new scriptFunctionParam('int', 'PipboyFlag', true), new scriptFunctionParam('int', 'FightingFlag', true), new scriptFunctionParam('int', 'POVFlag', true), new scriptFunctionParam('int', 'LookingFlag', true), new scriptFunctionParam('int', 'RolloverTextFlag', true), new scriptFunctionParam('int', 'SneakingFlag', true)], {
  1110. docLink: 'http://geck.bethsoft.com/index.php/DisablePlayerControls',
  1111. name: 'DisablePlayerControls'
  1112. });
  1113. dictionary.fallout3functions['getplayercontrolsdisabled'] = new scriptFunction('bool', 'B', 0, [new scriptFunctionParam('int', 'MovementFlag', true), new scriptFunctionParam('int', 'PipboyFlag', true), new scriptFunctionParam('int', 'FightingFlag', true), new scriptFunctionParam('int', 'POVFlag', true), new scriptFunctionParam('int', 'LookingFlag', true), new scriptFunctionParam('int', 'RolloverTextFlag', true), new scriptFunctionParam('int', 'SneakingFlag', true)], {
  1114. docLink: 'http://geck.bethsoft.com/index.php/GetPlayerControlsDisabled',
  1115. name: 'GetPlayerControlsDisabled'
  1116. });
  1117. dictionary.fallout3functions['getheadingangle'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID')], {
  1118. docLink: 'http://geck.bethsoft.com/index.php/GetHeadingAngle',
  1119. name: 'GetHeadingAngle'
  1120. });
  1121. dictionary.fallout3functions['pickidle'] = new scriptFunction('void', 'R', 0, [], {
  1122. name: 'PickIdle'
  1123. });
  1124. dictionary.fallout3functions['isweaponout'] = new scriptFunction('int', 'R', 0, [], {
  1125. docLink: 'http://geck.bethsoft.com/index.php/IsWeaponOut',
  1126. name: 'IsWeaponOut'
  1127. });
  1128. dictionary.fallout3functions['istorchout'] = new scriptFunction('void', 'D', 0, [], {
  1129. name: 'IsTorchOut'
  1130. });
  1131. dictionary.fallout3functions['isshieldout'] = new scriptFunction('void', 'D', 0, [], {
  1132. name: 'IsShieldOut'
  1133. });
  1134. dictionary.fallout3functions['createdetectionevent'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ActorID'), new scriptFunctionParam('int', 'SoundLevel'), new scriptFunctionParam('int', 'EventType', true)], {
  1135. docLink: 'http://geck.bethsoft.com/index.php/CreateDetectionEvent',
  1136. name: 'CreateDetectionEvent'
  1137. });
  1138. dictionary.fallout3functions['isactionref'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'RefID')], {
  1139. docLink: 'http://geck.bethsoft.com/index.php/IsActionRef',
  1140. name: 'IsActionRef'
  1141. }, [new scriptFunctionNote(function (functionCall) {
  1142. return /'^(onactivate|ontriggerenter|ontriggerleave|ontrigger)$'/.test(script.inBlock.toLowerCase())
  1143. }, '"IsActionRef" is only useful inside an "OnActivate", "OnTriggerEnter", "OnTriggerLeave", or "OnTrigger" block', 1)]);
  1144. dictionary.fallout3functions['isfacingup'] = new scriptFunction('int', 'R', 0, [], {
  1145. docLink: 'http://geck.bethsoft.com/index.php/IsFacingUp',
  1146. name: 'IsFacingUp'
  1147. });
  1148. dictionary.fallout3functions['getknockedstate'] = new scriptFunction('int', 'R', 0, [], {
  1149. docLink: 'http://geck.bethsoft.com/index.php/GetKnockedState',
  1150. name: 'GetKnockedState'
  1151. });
  1152. dictionary.fallout3functions['getweaponanimtype'] = new scriptFunction('int', 'R', 0, [], {
  1153. docLink: 'http://geck.bethsoft.com/index.php/GetWeaponAnimType',
  1154. name: 'GetWeaponAnimType'
  1155. });
  1156. dictionary.fallout3functions['isweaponskilltype'] = new scriptFunction('int', '', 0, [], {
  1157. name: 'IsWeaponSkillType'
  1158. });
  1159. dictionary.fallout3functions['getcurrentaipackage'] = new scriptFunction('int', 'R', 0, [], {
  1160. docLink: 'http://geck.bethsoft.com/index.php/GetCurrentAIPackage',
  1161. name: 'GetCurrentAIPackage'
  1162. });
  1163. dictionary.fallout3functions['iswaiting'] = new scriptFunction('int', 'R', 0, [], {
  1164. docLink: 'http://geck.bethsoft.com/index.php/IsWaiting',
  1165. name: 'IsWaiting'
  1166. });
  1167. dictionary.fallout3functions['isidleplaying'] = new scriptFunction('int', 'R', 0, [], {
  1168. docLink: 'http://geck.bethsoft.com/index.php/IsIdlePlaying',
  1169. name: 'IsIdlePlaying'
  1170. });
  1171. dictionary.fallout3functions['completequest'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'QuestID')], {
  1172. docLink: 'http://geck.bethsoft.com/index.php/CompleteQuest',
  1173. name: 'CompleteQuest'
  1174. });
  1175. dictionary.fallout3functions['lock'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'Level', 0)], {
  1176. docLink: 'http://geck.bethsoft.com/index.php/Lock',
  1177. name: 'Lock'
  1178. });
  1179. dictionary.fallout3functions['unlock'] = new scriptFunction('void', 'R', 0, [], {
  1180. docLink: 'http://geck.bethsoft.com/index.php/Unlock',
  1181. name: 'Unlock'
  1182. });
  1183. dictionary.fallout3functions['getminorcrimecount'] = new scriptFunction('int', 'R', 0, [], {
  1184. docLink: 'http://geck.bethsoft.com/index.php/GetMinorCrimeCount',
  1185. name: 'GetMinorCrimeCount'
  1186. });
  1187. dictionary.fallout3functions['getmajorcrimecount'] = new scriptFunction('int', 'R', 0, [], {
  1188. docLink: 'http://geck.bethsoft.com/index.php/GetMajorCrimeCount',
  1189. name: 'GetMajorCrimeCount'
  1190. });
  1191. dictionary.fallout3functions['getactoraggroradiusviolated'] = new scriptFunction('int', '', 0, [], {
  1192. name: 'GetActorAggroRadiusViolated'
  1193. });
  1194. dictionary.fallout3functions['getcrimeknown'] = new scriptFunction('int', '', 0, [], {
  1195. name: 'GetCrimeKnown'
  1196. });
  1197. dictionary.fallout3functions['setenemy'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'Faction1'), new scriptFunctionParam('ref', 'Faction2'), new scriptFunctionParam('int', 'F1ToF2Flag'), new scriptFunctionParam('int', 'F1ToF2Flag')], {
  1198. docLink: 'http://geck.bethsoft.com/index.php/SetEnemy',
  1199. name: 'SetEnemy'
  1200. });
  1201. dictionary.fallout3functions['setally'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'Faction1'), new scriptFunctionParam('ref', 'Faction2'), new scriptFunctionParam('int', 'F1ToF2Flag'), new scriptFunctionParam('int', 'F1ToF2Flag')], {
  1202. docLink: 'http://geck.bethsoft.com/index.php/SetAlly',
  1203. name: 'SetAlly'
  1204. });
  1205. dictionary.fallout3functions['getcrime'] = new scriptFunction('int', '', 0, [], {
  1206. name: 'GetCrime'
  1207. });
  1208. dictionary.fallout3functions['isgreetingplayer'] = new scriptFunction('int', '', 0, [], {
  1209. name: 'IsGreetingPlayer'
  1210. });
  1211. dictionary.fallout3functions['startmistersandman'] = new scriptFunction('void', '', 0, [], {
  1212. name: 'StartMisterSandman'
  1213. });
  1214. dictionary.fallout3functions['isguard'] = new scriptFunction('void', 'D', 0, [], {
  1215. docLink: 'http://geck.bethsoft.com/index.php/IsGuard',
  1216. name: 'IsGuard'
  1217. });
  1218. dictionary.fallout3functions['startcannibal'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'TargetID')], {
  1219. docLink: 'http://geck.bethsoft.com/index.php/StartCannibal',
  1220. name: 'StartCannibal'
  1221. });
  1222. dictionary.fallout3functions['hasbeeneaten'] = new scriptFunction('int', 'R', 0, [], {
  1223. docLink: 'http://geck.bethsoft.com/index.php/HasBeenEaten',
  1224. name: 'HasBeenEaten'
  1225. });
  1226. dictionary.fallout3functions['getfatiguepercentage'] = new scriptFunction('float', '', 0, [], {
  1227. name: 'GetFatiguePercentage'
  1228. });
  1229. dictionary.fallout3functions['getfatigue'] = new scriptFunction('float', '', 0, [], {
  1230. name: 'GetFatigue'
  1231. });
  1232. dictionary.fallout3functions['getpcisclass'] = new scriptFunction('int', '', 0, [], {
  1233. name: 'GetPCIsClass'
  1234. });
  1235. dictionary.fallout3functions['getpcisrace'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'RaceID')], {
  1236. docLink: 'http://geck.bethsoft.com/index.php/GetPCIsRace',
  1237. name: 'GetPCIsRace'
  1238. });
  1239. dictionary.fallout3functions['getpcissex'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('string', 'Sex', false, {
  1240. male: 'Male',
  1241. female: 'Female'
  1242. })], {
  1243. docLink: 'http://geck.bethsoft.com/index.php/GetPCIsSex',
  1244. name: 'GetPCIsSex'
  1245. });
  1246. dictionary.fallout3functions['getpcisinfaction'] = new scriptFunction('int', '', 0, [], {
  1247. name: 'GetPCIsInFaction'
  1248. });
  1249. dictionary.fallout3functions['samefactionaspc'] = new scriptFunction('int', 'R', 0, [], {
  1250. docLink: 'http://geck.bethsoft.com/index.php/SameFactionAsPC',
  1251. name: 'SameFactionAsPC'
  1252. });
  1253. dictionary.fallout3functions['sameraceaspc'] = new scriptFunction('int', 'R', 0, [], {
  1254. docLink: 'http://geck.bethsoft.com/index.php/SameRaceAsPC',
  1255. name: 'SameRaceAsPC'
  1256. });
  1257. dictionary.fallout3functions['samesexaspc'] = new scriptFunction('int', 'R', 0, [], {
  1258. docLink: 'http://geck.bethsoft.com/index.php/SameSexAsPC',
  1259. name: 'SameSexAsPC'
  1260. });
  1261. dictionary.fallout3functions['getisreference'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'RefID')], {
  1262. docLink: 'http://geck.bethsoft.com/index.php/GetIsReference',
  1263. name: 'GetIsReference'
  1264. });
  1265. dictionary.fallout3functions['setfactionrank'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'FactionID'), new scriptFunctionParam('int', 'NewRank')], {
  1266. docLink: 'http://geck.bethsoft.com/index.php/SetFactionRank',
  1267. name: 'SetFactionRank'
  1268. });
  1269. dictionary.fallout3functions['modfactionrank'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'FactionID'), new scriptFunctionParam('int', 'ModValue')], {
  1270. docLink: 'http://geck.bethsoft.com/index.php/ModFactionRank',
  1271. name: 'ModFactionRank'
  1272. });
  1273. dictionary.fallout3functions['killactor'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'KillerID', true), new scriptFunctionParam('int', 'DismemberLimb', true), new scriptFunctionParam('int', 'CauseOfDeath', true)], {
  1274. docLink: 'http://geck.bethsoft.com/index.php/KillActor',
  1275. name: 'KillActor',
  1276. shortName: 'Kill',
  1277. longName: 'KillActor'
  1278. });
  1279. dictionary.fallout3functions['kill'] = alias(dictionary.fallout3functions['killactor']);
  1280. dictionary.fallout3functions['resurrectactor'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'AnimateFlag', true)], {
  1281. docLink: 'http://geck.bethsoft.com/index.php/ResurrectActor',
  1282. name: 'ResurrectActor',
  1283. shortName: 'Resurrect',
  1284. longName: 'ResurrectActor'
  1285. });
  1286. dictionary.fallout3functions['resurrect'] = alias(dictionary.fallout3functions['resurrectactor']);
  1287. dictionary.fallout3functions['istalking'] = new scriptFunction('int', 'R', 0, [], {
  1288. docLink: 'http://geck.bethsoft.com/index.php/IsTalking',
  1289. name: 'IsTalking'
  1290. });
  1291. dictionary.fallout3functions['getwalkspeed'] = new scriptFunction('float', 'R', 0, [], {
  1292. docLink: 'http://geck.bethsoft.com/index.php/GetWalkSpeed',
  1293. name: 'GetWalkSpeed',
  1294. shortName: 'GetWalk',
  1295. longName: 'GetWalkSpeed'
  1296. });
  1297. dictionary.fallout3functions['getwalk'] = alias(dictionary.fallout3functions['getwalkspeed']);
  1298. dictionary.fallout3functions['getcurrentaiprocedure'] = new scriptFunction('int', 'R', 0, [], {
  1299. docLink: 'http://geck.bethsoft.com/index.php/GetCurrentAIProcedure',
  1300. name: 'GetCurrentAIProcedure'
  1301. });
  1302. dictionary.fallout3functions['gettrespasswarninglevel'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('int', 'ActorID')], {
  1303. docLink: 'http://geck.bethsoft.com/index.php/GetTrespassWarningLevel',
  1304. name: 'GetTrespassWarningLevel'
  1305. });
  1306. dictionary.fallout3functions['istrespassing'] = new scriptFunction('int', 'R', 0, [], {
  1307. docLink: 'http://geck.bethsoft.com/index.php/IsTrespassing',
  1308. name: 'IsTrespassing'
  1309. });
  1310. dictionary.fallout3functions['isinmyownedcell'] = new scriptFunction('int', 'R', 0, [], {
  1311. docLink: 'http://geck.bethsoft.com/index.php/IsInMyOwnedCell',
  1312. name: 'IsInMyOwnedCell'
  1313. });
  1314. dictionary.fallout3functions['getwindspeed'] = new scriptFunction('float', 'B', 0, [], {
  1315. docLink: 'http://geck.bethsoft.com/index.php/GetWindSpeed',
  1316. name: 'GetWindSpeed'
  1317. });
  1318. dictionary.fallout3functions['getcurrentweatherpercent'] = new scriptFunction('float', 'B', 0, [], {
  1319. docLink: 'http://geck.bethsoft.com/index.php/GetCurrentWeatherPercent',
  1320. name: 'GetCurrentWeatherPercent',
  1321. shortName: 'GetWeatherPct',
  1322. longName: 'GetCurrentWeatherPercent'
  1323. });
  1324. dictionary.fallout3functions['getweatherpct'] = alias(dictionary.fallout3functions['getcurrentweatherpercent']);
  1325. dictionary.fallout3functions['getiscurrentweather'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'WeatherID')], {
  1326. docLink: 'http://geck.bethsoft.com/index.php/GetIsCurrentWeather',
  1327. name: 'GetIsCurrentWeather',
  1328. shortName: 'GetWeather',
  1329. longName: 'GetIsCurrentWeather'
  1330. });
  1331. dictionary.fallout3functions['getweather'] = alias(dictionary.fallout3functions['getiscurrentweather']);
  1332. dictionary.fallout3functions['iscontinuingpackagepcnear'] = new scriptFunction('int', 'R', 0, [], {
  1333. docLink: 'http://geck.bethsoft.com/index.php/IsContinuingPackagePCNear',
  1334. name: 'IsContinuingPackagePCNear'
  1335. });
  1336. dictionary.fallout3functions['addscriptpackage'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'PackageID')], {
  1337. docLink: 'http://geck.bethsoft.com/index.php/AddScriptPackage',
  1338. name: 'AddScriptPackage'
  1339. });
  1340. dictionary.fallout3functions['removescriptpackage'] = new scriptFunction('void', 'R', 0, [], {
  1341. docLink: 'http://geck.bethsoft.com/index.php/RemoveScriptPackage',
  1342. name: 'RemoveScriptPackage'
  1343. });
  1344. dictionary.fallout3functions['canhaveflames'] = new scriptFunction('int', '', 0, [], {
  1345. name: 'CanHaveFlames'
  1346. });
  1347. dictionary.fallout3functions['hasflames'] = new scriptFunction('int', '', 0, [], {
  1348. name: 'HasFlames'
  1349. });
  1350. dictionary.fallout3functions['addflames'] = new scriptFunction('void', '', 0, [], {
  1351. name: 'AddFlames'
  1352. });
  1353. dictionary.fallout3functions['removeflames'] = new scriptFunction('void', '', 0, [], {
  1354. name: 'RemoveFlames'
  1355. });
  1356. dictionary.fallout3functions['getopenstate'] = new scriptFunction('int', 'R', 0, [], {
  1357. docLink: 'http://geck.bethsoft.com/index.php/GetOpenState',
  1358. name: 'GetOpenState'
  1359. });
  1360. dictionary.fallout3functions['movetomarker'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'MarkerID'), new scriptFunctionParam('float', 'OffsetX', true), new scriptFunctionParam('float', 'OffsetY', true), new scriptFunctionParam('float', 'OffsetZ', true)], {
  1361. docLink: 'http://geck.bethsoft.com/index.php/MoveToMarker',
  1362. name: 'MoveToMarker',
  1363. shortName: 'MoveTo',
  1364. longName: 'MoveToMarker'
  1365. });
  1366. dictionary.fallout3functions['moveto'] = alias(dictionary.fallout3functions['movetomarker']);
  1367. dictionary.fallout3functions['getsitting'] = new scriptFunction('int', 'R', 0, [], {
  1368. docLink: 'http://geck.bethsoft.com/index.php/GetSitting',
  1369. name: 'GetSitting'
  1370. });
  1371. dictionary.fallout3functions['getfurnituremarkerid'] = new scriptFunction('int', '', 0, [], {
  1372. name: 'GetFurnitureMarkerID'
  1373. });
  1374. dictionary.fallout3functions['getiscurrentpackage'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'PackageID')], {
  1375. docLink: 'http://geck.bethsoft.com/index.php/GetIsCurrentPackage',
  1376. name: 'GetIsCurrentPackage'
  1377. });
  1378. dictionary.fallout3functions['iscurrentfurnitureref'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'FurnitureRefID')], {
  1379. docLink: 'http://geck.bethsoft.com/index.php/IsCurrentFurnitureRef',
  1380. name: 'IsCurrentFurnitureRef'
  1381. });
  1382. dictionary.fallout3functions['iscurrentfurnitureobj'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'FurnitureID')], {
  1383. docLink: 'http://geck.bethsoft.com/index.php/IsCurrentFurnitureObj',
  1384. name: 'IsCurrentFurnitureObj'
  1385. });
  1386. dictionary.fallout3functions['setsize'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('float', 'Size')], {
  1387. docLink: 'http://geck.bethsoft.com/index.php/SetSize',
  1388. name: 'SetSize',
  1389. shortName: 'CSize',
  1390. longName: 'SetSize'
  1391. });
  1392. dictionary.fallout3functions['csize'] = alias(dictionary.fallout3functions['setsize']);
  1393. dictionary.fallout3functions['removeme'] = new scriptFunction('void', 'S', 0, [new scriptFunctionParam('ref', 'TargetContainerID', true)], {
  1394. docLink: 'http://geck.bethsoft.com/index.php/RemoveMe',
  1395. name: 'RemoveMe'
  1396. });
  1397. dictionary.fallout3functions['dropme'] = new scriptFunction('void', 'S', 0, [], {
  1398. docLink: 'http://geck.bethsoft.com/index.php/DropMe',
  1399. name: 'DropMe'
  1400. });
  1401. dictionary.fallout3functions['getfactionreaction'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'Faction1'), new scriptFunctionParam('ref', 'Faction2')], {
  1402. docLink: 'http://geck.bethsoft.com/index.php/GetFactionReaction',
  1403. name: 'GetFactionReaction'
  1404. });
  1405. dictionary.fallout3functions['setfactionreaction'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'Faction1'), new scriptFunctionParam('ref', 'Faction2'), new scriptFunctionParam('float', 'ReactionValue')], {
  1406. docLink: 'http://geck.bethsoft.com/index.php/SetFactionReaction',
  1407. name: 'SetFactionReaction'
  1408. });
  1409. dictionary.fallout3functions['modfactionreaction'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'Faction1'), new scriptFunctionParam('ref', 'Faction2'), new scriptFunctionParam('float', 'ModValue')], {
  1410. docLink: 'http://geck.bethsoft.com/index.php/ModFactionReaction',
  1411. name: 'ModFactionReaction'
  1412. });
  1413. dictionary.fallout3functions['getdayofweek'] = new scriptFunction('int', 'B', 0, [], {
  1414. docLink: 'http://geck.bethsoft.com/index.php/GetDayOfWeek',
  1415. name: 'GetDayOfWeek'
  1416. });
  1417. dictionary.fallout3functions['ignorecrime'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'Flag')], {
  1418. docLink: 'http://geck.bethsoft.com/index.php/IgnoreCrime',
  1419. name: 'IgnoreCrime'
  1420. });
  1421. dictionary.fallout3functions['gettalkedtopcparam'] = new scriptFunction('int', '', 0, [], {
  1422. name: 'GetTalkedToPCParam'
  1423. });
  1424. dictionary.fallout3functions['removeallitems'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'TargetContainerID', true), new scriptFunctionParam('int', 'RetainOwnerShipFlag', true)], {
  1425. docLink: 'http://geck.bethsoft.com/index.php/RemoveAllItems',
  1426. name: 'RemoveAllItems'
  1427. });
  1428. dictionary.fallout3functions['wakeuppc'] = new scriptFunction('void', 'B', 0, [], {
  1429. docLink: 'http://geck.bethsoft.com/index.php/WakeUpPC',
  1430. name: 'WakeUpPC'
  1431. });
  1432. dictionary.fallout3functions['ispcsleeping'] = new scriptFunction('int', 'B', 0, [], {
  1433. docLink: 'http://geck.bethsoft.com/index.php/IsPCSleeping',
  1434. name: 'IsPCSleeping'
  1435. });
  1436. dictionary.fallout3functions['ispcamurderer'] = new scriptFunction('int', 'B', 0, [], {
  1437. docLink: 'http://geck.bethsoft.com/index.php/IsPCAMurderer',
  1438. name: 'IsPCAMurderer'
  1439. });
  1440. dictionary.fallout3functions['setcombatstyle'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'CombatStyleID')], {
  1441. docLink: 'http://geck.bethsoft.com/index.php/SetCombatStyle',
  1442. name: 'SetCombatStyle',
  1443. shortName: 'SetCS',
  1444. longName: 'SetCombatStyle'
  1445. });
  1446. dictionary.fallout3functions['setcs'] = alias(dictionary.fallout3functions['setcombatstyle']);
  1447. dictionary.fallout3functions['playsound3d'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'SoundID')], {
  1448. docLink: 'http://geck.bethsoft.com/index.php/PlaySound3D',
  1449. name: 'PlaySound3D'
  1450. });
  1451. dictionary.fallout3functions['selectplayerspell'] = new scriptFunction('void', 'D', 0, [], {
  1452. name: 'SelectPlayerSpell',
  1453. shortName: 'SPSpell',
  1454. longName: 'SelectPlayerSpell'
  1455. });
  1456. dictionary.fallout3functions['spspell'] = alias(dictionary.fallout3functions['selectplayerspell']);
  1457. dictionary.fallout3functions['getdetectionlevel'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  1458. docLink: 'http://geck.bethsoft.com/index.php/GetDetectionLevel',
  1459. name: 'GetDetectionLevel'
  1460. });
  1461. dictionary.fallout3functions['isactordetected'] = new scriptFunction('int', 'R', 0, [], {
  1462. docLink: 'http://geck.bethsoft.com/index.php/IsActorDetected',
  1463. name: 'IsActorDetected'
  1464. }, [new scriptFunctionNote(function (functionCall) {
  1465. if (0 in functionCall) {
  1466. return functionCall[0].toLowerCase in {
  1467. player: 1,
  1468. playerref: 1
  1469. }
  1470. } else
  1471. return false;
  1472. }, '"IsActorDetected" will always return 0 when called on the player', 1)]);
  1473. dictionary.fallout3functions['getequipped'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID')], {
  1474. docLink: 'http://geck.bethsoft.com/index.php/GetEquipped',
  1475. name: 'GetEquipped'
  1476. });
  1477. dictionary.fallout3functions['wait'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'PackageID')], {
  1478. docLink: 'http://geck.bethsoft.com/index.php/Wait',
  1479. name: 'Wait'
  1480. });
  1481. dictionary.fallout3functions['stopwaiting'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'PackageID')], {
  1482. docLink: 'http://geck.bethsoft.com/index.php/StopWaiting',
  1483. name: 'StopWaiting'
  1484. });
  1485. dictionary.fallout3functions['isswimming'] = new scriptFunction('int', 'R', 0, [], {
  1486. docLink: 'http://geck.bethsoft.com/index.php/IsSwimming',
  1487. name: 'IsSwimming'
  1488. });
  1489. dictionary.fallout3functions['scripteffectelapsedseconds'] = new scriptFunction('float', 'B', 0, [], {
  1490. docLink: 'http://geck.bethsoft.com/index.php/ScriptEffectElapsedSeconds',
  1491. name: 'ScriptEffectElapsedSeconds'
  1492. }, [new scriptFunctionNote(function (functionCall) {
  1493. return script.inBlock.toLowerCase() != 'scripteffectupdate';
  1494. }, '"ScriptEffectElapsedSeconds" will only return a value other than 0 inside a "ScriptEffectUpdate" block', 1)]);
  1495. dictionary.fallout3functions['setcellpublicflag'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'CellID'), new scriptFunctionParam('int', 'Flag')], {
  1496. docLink: 'http://geck.bethsoft.com/index.php/SetCellPublicFlag',
  1497. name: 'SetCellPublicFlag',
  1498. shortName: 'SetPublic',
  1499. longName: 'SetCellPublicFlag'
  1500. });
  1501. dictionary.fallout3functions['setpublic'] = alias(dictionary.fallout3functions['setcellpublicflag']);
  1502. dictionary.fallout3functions['getpcsleephours'] = new scriptFunction('int', 'B', 0, [], {
  1503. docLink: 'http://geck.bethsoft.com/index.php/GetPCSleepHours',
  1504. name: 'GetPCSleepHours'
  1505. });
  1506. dictionary.fallout3functions['setpcsleephours'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('int', 'Hours')], {
  1507. docLink: 'http://geck.bethsoft.com/index.php/SetPCSleepHours',
  1508. name: 'SetPCSleepHours'
  1509. });
  1510. dictionary.fallout3functions['getamountsoldstolen'] = new scriptFunction('void', 'D', 0, [], {
  1511. name: 'GetAmountSoldStolen'
  1512. });
  1513. dictionary.fallout3functions['modamountsoldstolen'] = new scriptFunction('void', 'D', 0, [], {
  1514. name: 'ModAmountSoldStolen'
  1515. });
  1516. dictionary.fallout3functions['getignorecrime'] = new scriptFunction('int', 'R', 0, [], {
  1517. docLink: 'http://geck.bethsoft.com/index.php/GetIgnoreCrime',
  1518. name: 'GetIgnoreCrime'
  1519. });
  1520. dictionary.fallout3functions['getpcexpelled'] = new scriptFunction('int', 'D', 0, [], {
  1521. name: 'GetPCExpelled'
  1522. });
  1523. dictionary.fallout3functions['setpcexpelled'] = new scriptFunction('void', 'D', 0, [], {
  1524. name: 'SetPCExpelled'
  1525. });
  1526. dictionary.fallout3functions['getpcfactionmurder'] = new scriptFunction('int', '', 0, [], {
  1527. name: 'GetPCFactionMurder'
  1528. });
  1529. dictionary.fallout3functions['setpcfactionmurder'] = new scriptFunction('void', '', 0, [], {
  1530. name: 'SetPCFactionMurder'
  1531. });
  1532. dictionary.fallout3functions['getpcenemyoffaction'] = new scriptFunction('int', '', 0, [], {
  1533. name: 'GetPCEnemyOfFaction'
  1534. });
  1535. dictionary.fallout3functions['setpcenemyoffaction'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'FactionID'), new scriptFunctionParam('in', 'Flag')], {
  1536. docLink: 'http://geck.bethsoft.com/index.php/SetPCEnemyOfFaction',
  1537. name: 'SetPCEnemyOfFaction'
  1538. });
  1539. dictionary.fallout3functions['getpcfactionattack'] = new scriptFunction('int', '', 0, [], {
  1540. name: 'GetPCFactionAttack'
  1541. });
  1542. dictionary.fallout3functions['setpcfactionattack'] = new scriptFunction('void', '', 0, [], {
  1543. name: 'SetPCFactionAttack'
  1544. });
  1545. dictionary.fallout3functions['unusedfunction21'] = new scriptFunction('void', 'D', 0, [], {
  1546. name: 'UnusedFunction21'
  1547. });
  1548. dictionary.fallout3functions['unusedfunction22'] = new scriptFunction('void', 'D', 0, [], {
  1549. name: 'UnusedFunction22'
  1550. });
  1551. dictionary.fallout3functions['getdestroyed'] = new scriptFunction('int', 'R', 0, [], {
  1552. docLink: 'http://geck.bethsoft.com/index.php/GetDestroyed',
  1553. name: 'GetDestroyed'
  1554. });
  1555. dictionary.fallout3functions['setdestroyed'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'Flag')], {
  1556. docLink: 'http://geck.bethsoft.com/index.php/SetDestroyed',
  1557. name: 'SetDestroyed'
  1558. });
  1559. dictionary.fallout3functions['getactionref'] = new scriptFunction('ref', 'R', 0, [], {
  1560. docLink: 'http://geck.bethsoft.com/index.php/GetActionRef',
  1561. name: 'GetActionRef',
  1562. shortName: 'GetAR',
  1563. longName: 'GetActionRef'
  1564. }, [new scriptFunctionNote(function (functionCall) {
  1565. return /'^(onactivate|ontriggerenter|ontriggerleave|ontrigger)$'/.test(script.inBlock.toLowerCase())
  1566. }, 'GetActionRef is only useful inside an "OnActivate", "OnTriggerEnter", "OnTriggerLeave", or "OnTrigger" block', 1)]);
  1567. dictionary.fallout3functions['getar'] = alias(dictionary.fallout3functions['getactionref']);
  1568. dictionary.fallout3functions['getself'] = new scriptFunction('ref', 'S', 0, [], {
  1569. docLink: 'http://geck.bethsoft.com/index.php/GetSelf',
  1570. name: 'GetSelf',
  1571. shortName: 'This',
  1572. longName: 'GetSelf'
  1573. }, [new scriptFunctionNote(function (functionCall) {
  1574. return true;
  1575. }, 'When called on references created dynamically (for example, via PlaceAtMe), GetSelf will always return 0', 0)]);
  1576. dictionary.fallout3functions['this'] = alias(dictionary.fallout3functions['getself']);
  1577. dictionary.fallout3functions['getcontainer'] = new scriptFunction('ref', 'S', 0, [], {
  1578. docLink: 'http://geck.bethsoft.com/index.php/GetContainer',
  1579. name: 'GetContainer'
  1580. });
  1581. dictionary.fallout3functions['getforcerun'] = new scriptFunction('int', 'R', 0, [], {
  1582. docLink: 'http://geck.bethsoft.com/index.php/GetForceRun',
  1583. name: 'GetForceRun'
  1584. });
  1585. dictionary.fallout3functions['setforcerun'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'Flag')], {
  1586. docLink: 'http://geck.bethsoft.com/index.php/SetForceRun',
  1587. name: 'SetForceRun'
  1588. });
  1589. dictionary.fallout3functions['getforcesneak'] = new scriptFunction('int', 'R', 0, [], {
  1590. name: 'GetForceSneak'
  1591. });
  1592. dictionary.fallout3functions['setforcesneak'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'Flag')], {
  1593. docLink: 'http://geck.bethsoft.com/index.php/SetForceSneak',
  1594. name: 'SetForceSneak'
  1595. });
  1596. dictionary.fallout3functions['advancepcskill'] = new scriptFunction('void');
  1597. dictionary.fallout3functions['advskill'] = alias(dictionary.fallout3functions['advancepcskill']);
  1598. dictionary.fallout3functions['advancepclevel'] = new scriptFunction('void');
  1599. dictionary.fallout3functions['advlevel'] = alias(dictionary.fallout3functions['advancepclevel']);
  1600. dictionary.fallout3functions['hasmagiceffect'] = new scriptFunction('int');
  1601. dictionary.fallout3functions['getdefaultopen'] = new scriptFunction('int');
  1602. dictionary.fallout3functions['setdefaultopen'] = new scriptFunction('void');
  1603. dictionary.fallout3functions['showclassmenu'] = new scriptFunction('void');
  1604. dictionary.fallout3functions['showracemenu'] = new scriptFunction('void');
  1605. dictionary.fallout3functions['getanimaction'] = new scriptFunction('int');
  1606. dictionary.fallout3functions['shownamemenu'] = new scriptFunction('void');
  1607. dictionary.fallout3functions['setopenstate'] = new scriptFunction('void');
  1608. dictionary.fallout3functions['unusedfunction26'] = new scriptFunction('void', 'D', 0, []);
  1609. dictionary.fallout3functions['isspelltarget'] = new scriptFunction('int');
  1610. dictionary.fallout3functions['getvatsmode'] = new scriptFunction('int');
  1611. dictionary.fallout3functions['getpersuasionnumber'] = new scriptFunction('void', 'D', 0, []);
  1612. dictionary.fallout3functions['getsandman'] = new scriptFunction('int');
  1613. dictionary.fallout3functions['getcannibal'] = new scriptFunction('int');
  1614. dictionary.fallout3functions['getisclassdefault'] = new scriptFunction('int');
  1615. dictionary.fallout3functions['getclassdefaultmatch'] = new scriptFunction('int');
  1616. dictionary.fallout3functions['getincellparam'] = new scriptFunction('int');
  1617. dictionary.fallout3functions['setinchargen'] = new scriptFunction('void');
  1618. dictionary.fallout3functions['getcombattarget'] = new scriptFunction('ref');
  1619. dictionary.fallout3functions['getpackagetarget'] = new scriptFunction('ref');
  1620. dictionary.fallout3functions['showspellmaking'] = new scriptFunction('void', 'D', 0, []);
  1621. dictionary.fallout3functions['getvatstargetheight'] = new scriptFunction('float');
  1622. dictionary.fallout3functions['setghost'] = new scriptFunction('void');
  1623. dictionary.fallout3functions['getisghost'] = new scriptFunction('int');
  1624. dictionary.fallout3functions['equipitem'] = new scriptFunction('void');
  1625. dictionary.fallout3functions['equipobject'] = alias(dictionary.fallout3functions['equipitem']);
  1626. dictionary.fallout3functions['unequipitem'] = new scriptFunction('void');
  1627. dictionary.fallout3functions['unequipobject'] = alias(dictionary.fallout3functions['unequipitem']);
  1628. dictionary.fallout3functions['setclass'] = new scriptFunction('void');
  1629. dictionary.fallout3functions['setunconscious'] = new scriptFunction('void');
  1630. dictionary.fallout3functions['getunconscious'] = new scriptFunction('int');
  1631. dictionary.fallout3functions['setrestrained'] = new scriptFunction('void');
  1632. dictionary.fallout3functions['getrestrained'] = new scriptFunction('int');
  1633. dictionary.fallout3functions['forceflee'] = new scriptFunction('void', 'D', 0, []);
  1634. dictionary.fallout3functions['flee'] = alias(dictionary.fallout3functions['forceflee']);
  1635. dictionary.fallout3functions['getisuseditem'] = new scriptFunction('int');
  1636. dictionary.fallout3functions['getisuseditemtype'] = new scriptFunction('int');
  1637. dictionary.fallout3functions['unusedfunction9'] = new scriptFunction('void', 'D', 0, []);
  1638. dictionary.fallout3functions['unusedfunction10'] = new scriptFunction('void', 'D', 0, []);
  1639. dictionary.fallout3functions['unusedfunction11'] = new scriptFunction('void', 'D', 0, []);
  1640. dictionary.fallout3functions['unusedfunction12'] = new scriptFunction('void', 'D', 0, []);
  1641. dictionary.fallout3functions['unusedfunction13'] = new scriptFunction('void', 'D', 0, []);
  1642. dictionary.fallout3functions['unusedfunction14'] = new scriptFunction('void', 'D', 0, []);
  1643. dictionary.fallout3functions['getisplayablerace'] = new scriptFunction('int');
  1644. dictionary.fallout3functions['getoffersservicesnow'] = new scriptFunction('int');
  1645. dictionary.fallout3functions['getgamesetting'] = new scriptFunction('depends');
  1646. dictionary.fallout3functions['getgs'] = alias(dictionary.fallout3functions['getgamesetting']);
  1647. dictionary.fallout3functions['stopcombatalarmonactor'] = new scriptFunction('void');
  1648. dictionary.fallout3functions['scaonactor'] = alias(dictionary.fallout3functions['stopcombatalarmonactor']);
  1649. dictionary.fallout3functions['getuseditemlevel'] = new scriptFunction('int');
  1650. dictionary.fallout3functions['getuseditemactivate'] = new scriptFunction('unknown');
  1651. dictionary.fallout3functions['setweather'] = new scriptFunction('void');
  1652. dictionary.fallout3functions['sw'] = alias(dictionary.fallout3functions['setweather']);
  1653. dictionary.fallout3functions['forcetakecover'] = new scriptFunction('void');
  1654. dictionary.fallout3functions['takecover'] = alias(dictionary.fallout3functions['forcetakecover']);
  1655. dictionary.fallout3functions['modbartergold'] = new scriptFunction('void');
  1656. dictionary.fallout3functions['setbartergold'] = new scriptFunction('void');
  1657. dictionary.fallout3functions['getbartergold'] = new scriptFunction('int');
  1658. dictionary.fallout3functions['istimepassing'] = new scriptFunction('int');
  1659. dictionary.fallout3functions['ispleasant'] = new scriptFunction('int');
  1660. dictionary.fallout3functions['iscloudy'] = new scriptFunction('int');
  1661. dictionary.fallout3functions['trapupdate'] = new scriptFunction('void');
  1662. dictionary.fallout3functions['setquestobject'] = new scriptFunction('void');
  1663. dictionary.fallout3functions['forceactorvalue'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.actorValues), new scriptFunctionParam('float', 'Value')], {
  1664. docLink: 'http://geck.bethsoft.com/index.php/ForceActorValue',
  1665. name: 'ForceActorValue',
  1666. shortName: 'ForceAV',
  1667. longName: 'ForceActorValue'
  1668. });
  1669. dictionary.fallout3functions['forceav'] = alias(dictionary.fallout3functions['forceactorvalue']);
  1670. dictionary.fallout3functions['modpcskill'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.skills), new scriptFunctionParam('float', 'Value')], {
  1671. docLink: 'http://geck.bethsoft.com/index.php/ModPCSkill',
  1672. name: 'ModPCSkill',
  1673. shortName: 'ModPCS',
  1674. longName: 'ModPCSkill'
  1675. });
  1676. dictionary.fallout3functions['modpcs'] = alias(dictionary.fallout3functions['modpcskill']);
  1677. dictionary.fallout3functions['modpcattribute'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.attributes), new scriptFunctionParam('float', 'Value')], {
  1678. docLink: 'http://geck.bethsoft.com/index.php/ModPCAttribute',
  1679. name: 'ModPCAttribute',
  1680. shortName: 'ModPCA',
  1681. longName: 'ModPCAttribute'
  1682. });
  1683. dictionary.fallout3functions['modpca'] = alias(dictionary.fallout3functions['modpcattribute']);
  1684. dictionary.fallout3functions['enablefasttravel'] = new scriptFunction('void');
  1685. dictionary.fallout3functions['enablefast'] = alias(dictionary.fallout3functions['enablefasttravel']);
  1686. dictionary.fallout3functions['getarmorratingupperbody'] = new scriptFunction('int');
  1687. dictionary.fallout3functions['getparentref'] = new scriptFunction('ref');
  1688. dictionary.fallout3functions['playbink'] = new scriptFunction('void');
  1689. dictionary.fallout3functions['getbaseactorvalue'] = new scriptFunction('int');
  1690. dictionary.fallout3functions['getbaseav'] = alias(dictionary.fallout3functions['getbaseactorvalue'])
  1691. dictionary.fallout3functions['isowner'] = new scriptFunction('int');
  1692. dictionary.fallout3functions['setownership'] = new scriptFunction('void');
  1693. dictionary.fallout3functions['iscellowner'] = new scriptFunction('int');
  1694. dictionary.fallout3functions['setcellownership'] = new scriptFunction('void');
  1695. dictionary.fallout3functions['ishorsestolen'] = new scriptFunction('void', 'D', 0, []);
  1696. dictionary.fallout3functions['setcellfullname'] = new scriptFunction('void');
  1697. dictionary.fallout3functions['setactorfullname'] = new scriptFunction('void');
  1698. dictionary.fallout3functions['isleftup'] = new scriptFunction('int');
  1699. dictionary.fallout3functions['issneaking'] = new scriptFunction('int');
  1700. dictionary.fallout3functions['isrunning'] = new scriptFunction('int');
  1701. dictionary.fallout3functions['getfriendhit'] = new scriptFunction('int');
  1702. dictionary.fallout3functions['isincombat'] = new scriptFunction('int');
  1703. dictionary.fallout3functions['setpackduration'] = new scriptFunction('void');
  1704. dictionary.fallout3functions['spdur'] = alias(dictionary.fallout3functions['setpackduration']);
  1705. dictionary.fallout3functions['playmagicshadervisuals'] = new scriptFunction('void');
  1706. dictionary.fallout3functions['pms'] = alias(dictionary.fallout3functions['playmagicshadervisuals']);
  1707. dictionary.fallout3functions['playmagiceffectvisuals'] = new scriptFunction('void');
  1708. dictionary.fallout3functions['pme'] = alias(dictionary.fallout3functions['playmagiceffectvisuals']);
  1709. dictionary.fallout3functions['stopmagicshadervisuals'] = new scriptFunction('void');
  1710. dictionary.fallout3functions['sms'] = alias(dictionary.fallout3functions['stopmagicshadervisuals']);
  1711. dictionary.fallout3functions['stopmagiceffectvisuals'] = new scriptFunction('void');
  1712. dictionary.fallout3functions['sme'] = alias(dictionary.fallout3functions['stopmagiceffectvisuals']);
  1713. dictionary.fallout3functions['resetinterior'] = new scriptFunction('void');
  1714. dictionary.fallout3functions['isanimplaying'] = new scriptFunction('int');
  1715. dictionary.fallout3functions['setactoralpha'] = new scriptFunction('void');
  1716. dictionary.fallout3functions['saa'] = dictionary.fallout3functions['setactoralpha'];
  1717. dictionary.fallout3functions['enablelinkedpathpoints'] = new scriptFunction('void');
  1718. dictionary.fallout3functions['disablelinkedpathpoints'] = new scriptFunction('void');
  1719. dictionary.fallout3functions['isininterior'] = new scriptFunction('int');
  1720. dictionary.fallout3functions['forceweather'] = new scriptFunction('void');
  1721. dictionary.fallout3functions['fw'] = alias(dictionary.fallout3functions['forceweather']);
  1722. dictionary.fallout3functions['toggleactorsai'] = new scriptFunction('void');
  1723. dictionary.fallout3functions['isactorsaioff'] = new scriptFunction('int');
  1724. dictionary.fallout3functions['iswaterobject'] = new scriptFunction('int');
  1725. dictionary.fallout3functions['unusedfunction15'] = new scriptFunction('void', 'D', 0, []);
  1726. dictionary.fallout3functions['isactorusingatorch'] = new scriptFunction('void', 'D', 0, []);
  1727. dictionary.fallout3functions['setlevel'] = new scriptFunction('void');
  1728. dictionary.fallout3functions['resetfalldamagetimer'] = new scriptFunction('void');
  1729. dictionary.fallout3functions['isxbox'] = new scriptFunction('int', 'B', 0, [], {
  1730. docLink: 'http://geck.bethsoft.com/index.php/IsXBox',
  1731. name: 'IsXBox'
  1732. }, [new scriptFunctionNote(function (functionCall) {
  1733. return true;
  1734. }, '"IsXBox" will always return 0', 1)]);
  1735. dictionary.fallout3functions['getinworldspace'] = new scriptFunction('int');
  1736. dictionary.fallout3functions['modpcmiscstat'] = new scriptFunction('void');
  1737. dictionary.fallout3functions['modpcms'] = alias(dictionary.fallout3functions['modpcmiscstat']);
  1738. dictionary.fallout3functions['getpcmiscstat'] = new scriptFunction('int');
  1739. dictionary.fallout3functions['getpcms'] = alias(dictionary.fallout3functions['getpcmiscstat']);
  1740. dictionary.fallout3functions['isactorevil'] = new scriptFunction('int');
  1741. dictionary.fallout3functions['isactoravictim'] = new scriptFunction('int');
  1742. dictionary.fallout3functions['gettotalpersuasionnumber'] = new scriptFunction('void', 'D', 0, []);
  1743. dictionary.fallout3functions['setscale'] = new scriptFunction('void');
  1744. dictionary.fallout3functions['modscale'] = new scriptFunction('void');
  1745. dictionary.fallout3functions['getidledoneonce'] = new scriptFunction('int');
  1746. dictionary.fallout3functions['killallactors'] = new scriptFunction('void');
  1747. dictionary.fallout3functions['killall'] = alias(dictionary.fallout3functions['killallactors']);
  1748. dictionary.fallout3functions['getnorumors'] = new scriptFunction('void', 'D', 0, []);
  1749. dictionary.fallout3functions['setnorumors'] = new scriptFunction('void', 'D', 0, []);
  1750. dictionary.fallout3functions['dispel'] = new scriptFunction('void');
  1751. dictionary.fallout3functions['whichservicemenu'] = new scriptFunction('int');
  1752. dictionary.fallout3functions['triggerhitshader'] = new scriptFunction('void');
  1753. dictionary.fallout3functions['ths'] = alias(dictionary.fallout3functions['triggerhitshader']);
  1754. dictionary.fallout3functions['unusedfunction16'] = new scriptFunction('void', 'D', 0, []);
  1755. dictionary.fallout3functions['reset3dstate'] = new scriptFunction('void');
  1756. dictionary.fallout3functions['isridinghorse'] = new scriptFunction('void', 'D', 0, []);
  1757. dictionary.fallout3functions['dispelallspells'] = new scriptFunction('void');
  1758. dictionary.fallout3functions['unusedfunction17'] = new scriptFunction('void', 'D', 0, []);
  1759. dictionary.fallout3functions['addachievement'] = new scriptFunction('void');
  1760. dictionary.fallout3functions['duplicateallitems'] = new scriptFunction('void');
  1761. dictionary.fallout3functions['isindangerouswater'] = new scriptFunction('int');
  1762. dictionary.fallout3functions['essentialdeathreload'] = new scriptFunction('void');
  1763. dictionary.fallout3functions['setshowquestitems'] = new scriptFunction('void');
  1764. dictionary.fallout3functions['duplicatenpcstats'] = new scriptFunction('void');
  1765. dictionary.fallout3functions['resethealth'] = new scriptFunction('void');
  1766. dictionary.fallout3functions['setignorefriendlyhits'] = new scriptFunction('void');
  1767. dictionary.fallout3functions['sifh'] = alias(dictionary.fallout3functions['setignorefriendlyhits']);
  1768. dictionary.fallout3functions['getignorefriendlyhits'] = new scriptFunction('int');
  1769. dictionary.fallout3functions['gifh'] = alias(dictionary.fallout3functions['getignorefriendlyhits']);
  1770. dictionary.fallout3functions['isplayerslastriddenhorse'] = new scriptFunction('void', 'D', 0, []);
  1771. dictionary.fallout3functions['setactorrefraction'] = new scriptFunction('void');
  1772. dictionary.fallout3functions['sar'] = alias(dictionary.fallout3functions['setactorrefraction']);
  1773. dictionary.fallout3functions['setitemvalue'] = new scriptFunction('void');
  1774. dictionary.fallout3functions['setrigidbodymass'] = new scriptFunction('void');
  1775. dictionary.fallout3functions['showviewerstrings'] = new scriptFunction('void');
  1776. dictionary.fallout3functions['svs'] = alias(dictionary.fallout3functions['showviewerstrings']);
  1777. dictionary.fallout3functions['releaseweatheroverride'] = new scriptFunction('void');
  1778. dictionary.fallout3functions['rwo'] = alias(dictionary.fallout3functions['releaseweatheroverride']);
  1779. dictionary.fallout3functions['setallreachable'] = new scriptFunction('void');
  1780. dictionary.fallout3functions['setallvisible'] = new scriptFunction('void');
  1781. dictionary.fallout3functions['setnoavoidance'] = new scriptFunction('void');
  1782. dictionary.fallout3functions['sendtrespassalarm'] = new scriptFunction('void');
  1783. dictionary.fallout3functions['setsceneiscomplex'] = new scriptFunction('void');
  1784. dictionary.fallout3functions['autosave'] = new scriptFunction('void');
  1785. dictionary.fallout3functions['startmasterfileseekdata'] = new scriptFunction('void');
  1786. dictionary.fallout3functions['dumpmasterfileseekdata'] = new scriptFunction('void');
  1787. dictionary.fallout3functions['isactor'] = new scriptFunction('int');
  1788. dictionary.fallout3functions['isessential'] = new scriptFunction('int');
  1789. dictionary.fallout3functions['preloadmagiceffect'] = new scriptFunction('void');
  1790. dictionary.fallout3functions['showdialogsubtitles'] = new scriptFunction('void');
  1791. dictionary.fallout3functions['unusedfunction27'] = new scriptFunction('void', 'D', 0, []);
  1792. dictionary.fallout3functions['isplayermovingintonewspace'] = new scriptFunction('int');
  1793. dictionary.fallout3functions['unusedfunction28'] = new scriptFunction('void', 'D', 0, []);
  1794. dictionary.fallout3functions['unusedfunction29'] = new scriptFunction('void', 'D', 0, []);
  1795. dictionary.fallout3functions['gettimedead'] = new scriptFunction('float');
  1796. dictionary.fallout3functions['getplayerhaslastriddenhorse'] = new scriptFunction('void', 'D', 0, []);
  1797. dictionary.fallout3functions['getlinkedref'] = new scriptFunction('ref');
  1798. dictionary.fallout3functions['damageobject'] = new scriptFunction('void');
  1799. dictionary.fallout3functions['do'] = alias(dictionary.fallout3functions['damageobject']);
  1800. dictionary.fallout3functions['ischild'] = new scriptFunction('int');
  1801. dictionary.fallout3functions['unusedfunction1'] = new scriptFunction('void', 'D', 0, []);
  1802. dictionary.fallout3functions['getlastplayeraction'] = new scriptFunction('int');
  1803. dictionary.fallout3functions['isplayeractionactive'] = new scriptFunction('int');
  1804. dictionary.fallout3functions['settalkingactivatoractor'] = new scriptFunction('void');
  1805. dictionary.fallout3functions['istalkingactivatoractor'] = new scriptFunction('int');
  1806. dictionary.fallout3functions['showbartermenu'] = new scriptFunction('void');
  1807. dictionary.fallout3functions['sbm'] = alias(dictionary.fallout3functions['showbartermenu']);
  1808. dictionary.fallout3functions['isinlist'] = new scriptFunction('int');
  1809. dictionary.fallout3functions['unusedfunction18'] = new scriptFunction('void', 'D', 0, []);
  1810. dictionary.fallout3functions['addperk'] = new scriptFunction('void');
  1811. dictionary.fallout3functions['rewardxp'] = new scriptFunction('void');
  1812. dictionary.fallout3functions['showhackingminigame'] = new scriptFunction('void');
  1813. dictionary.fallout3functions['shmg'] = alias(dictionary.fallout3functions['showhackingminigame']);
  1814. dictionary.fallout3functions['showsurgerymenu'] = new scriptFunction('void');
  1815. dictionary.fallout3functions['ssmg'] = alias(dictionary.fallout3functions['showsurgerymenu']);
  1816. dictionary.fallout3functions['showrepairmenu'] = new scriptFunction('void');
  1817. dictionary.fallout3functions['srm'] = alias(dictionary.fallout3functions['showrepairmenu']);
  1818. dictionary.fallout3functions['functionunused19'] = new scriptFunction('void', 'D', 0, []);
  1819. dictionary.fallout3functions['unused'] = alias(dictionary.fallout3functions['functionunused19']);
  1820. dictionary.fallout3functions['addnote'] = new scriptFunction('void');
  1821. dictionary.fallout3functions['an'] = alias(dictionary.fallout3functions['addnote']);
  1822. dictionary.fallout3functions['removenote'] = new scriptFunction('void');
  1823. dictionary.fallout3functions['rn'] = alias(dictionary.fallout3functions['removenote']);
  1824. dictionary.fallout3functions['gethasnote'] = new scriptFunction('int');
  1825. dictionary.fallout3functions['getn'] = alias(dictionary.fallout3functions['gethasnote']);
  1826. dictionary.fallout3functions['addtofaction'] = new scriptFunction('void');
  1827. dictionary.fallout3functions['addfac'] = alias(dictionary.fallout3functions['addtofaction']);
  1828. dictionary.fallout3functions['removefromfaction'] = new scriptFunction('void');
  1829. dictionary.fallout3functions['removefac'] = alias(dictionary.fallout3functions['removefromfaction']);
  1830. dictionary.fallout3functions['damageactorvalue'] = new scriptFunction('void');
  1831. dictionary.fallout3functions['damageav'] = alias(dictionary.fallout3functions['damageactorvalue']);
  1832. dictionary.fallout3functions['restoreactorvalue'] = new scriptFunction('void');
  1833. dictionary.fallout3functions['restoreav'] = alias(dictionary.fallout3functions['restoreactorvalue']);
  1834. dictionary.fallout3functions['triggerhudshudder'] = new scriptFunction('void');
  1835. dictionary.fallout3functions['hudsh'] = alias(dictionary.fallout3functions['triggerhudshudder']);
  1836. dictionary.fallout3functions['setdisposition'] = new scriptFunction('void');
  1837. dictionary.fallout3functions['setdisp'] = alias(dictionary.fallout3functions['setdisposition']);
  1838. dictionary.fallout3functions['showcomputersinterface'] = new scriptFunction('void', 'D', 0, []);
  1839. dictionary.fallout3functions['sci'] = alias(dictionary.fallout3functions['showcomputersinterface']);
  1840. dictionary.fallout3functions['setglobaltimemultiplier'] = new scriptFunction('void');
  1841. dictionary.fallout3functions['sgtm'] = alias(dictionary.fallout3functions['setglobaltimemultiplier']);
  1842. dictionary.fallout3functions['gethitlocation'] = new scriptFunction('int');
  1843. dictionary.fallout3functions['ispc1stperson'] = new scriptFunction('int');
  1844. dictionary.fallout3functions['pc1st'] = alias(dictionary.fallout3functions['ispc1stperson']);
  1845. dictionary.fallout3functions['purgecellbuffers'] = new scriptFunction('void');
  1846. dictionary.fallout3functions['pcb'] = alias(dictionary.fallout3functions['purgecellbuffers']);
  1847. dictionary.fallout3functions['pushactoraway'] = new scriptFunction('void');
  1848. dictionary.fallout3functions['setactorsai'] = new scriptFunction('void');
  1849. dictionary.fallout3functions['clearownership'] = new scriptFunction('void');
  1850. dictionary.fallout3functions['getcauseofdeath'] = new scriptFunction('int');
  1851. dictionary.fallout3functions['islimbgone'] = new scriptFunction('int');
  1852. dictionary.fallout3functions['isweaponinlist'] = new scriptFunction('int');
  1853. dictionary.fallout3functions['playidle'] = new scriptFunction('void');
  1854. dictionary.fallout3functions['applyimagespacemodifier'] = new scriptFunction('void');
  1855. dictionary.fallout3functions['imod'] = alias(dictionary.fallout3functions['applyimagespacemodifier']);
  1856. dictionary.fallout3functions['removeimagespacemodifier'] = new scriptFunction('void');
  1857. dictionary.fallout3functions['rimod'] = alias(dictionary.fallout3functions['removeimagespacemodifier']);
  1858. dictionary.fallout3functions['hasfrienddisposition'] = new scriptFunction('int');
  1859. dictionary.fallout3functions['functionunused20'] = new scriptFunction('void', 'D', 0, []);
  1860. dictionary.fallout3functions['frienddispositionboost'] = new scriptFunction('void');
  1861. dictionary.fallout3functions['setcellimagespace'] = new scriptFunction('void');
  1862. dictionary.fallout3functions['showchargenmenu'] = new scriptFunction('void');
  1863. dictionary.fallout3functions['scgm'] = alias(dictionary.fallout3functions['showchargenmenu']);
  1864. dictionary.fallout3functions['getvatsvalue'] = new scriptFunction('int');
  1865. dictionary.fallout3functions['iskiller'] = new scriptFunction('int');
  1866. dictionary.fallout3functions['iskillerobject'] = new scriptFunction('int');
  1867. dictionary.fallout3functions['getfactioncombatreaction'] = new scriptFunction('unknown');
  1868. dictionary.fallout3functions['useweapon'] = new scriptFunction('void');
  1869. dictionary.fallout3functions['evaluatespellconditions'] = new scriptFunction('void');
  1870. dictionary.fallout3functions['esc'] = alias(dictionary.fallout3functions['evaluatespellconditions']);
  1871. dictionary.fallout3functions['togglemotionblur'] = new scriptFunction('void');
  1872. dictionary.fallout3functions['tmb'] = alias(dictionary.fallout3functions['togglemotionblur']);
  1873. dictionary.fallout3functions['exists'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'Target', 0)], {
  1874. docLink: 'http://geck.bethsoft.com/index.php/Exists',
  1875. name: 'Exists'
  1876. }, [new scriptFunctionNote(function (functionCall) {
  1877. return true;
  1878. }, '"Exists" is a condition function only. Use "GetIsReference" to compare two references', 1)]);
  1879. dictionary.fallout3functions['getgroupmembercount'] = new scriptFunction('int');
  1880. dictionary.fallout3functions['getgrouptargetcount'] = new scriptFunction('int');
  1881. dictionary.fallout3functions['setobjectivecompleted'] = new scriptFunction('void');
  1882. dictionary.fallout3functions['setobjectivedisplayed'] = new scriptFunction('void');
  1883. dictionary.fallout3functions['getobjectivecompleted'] = new scriptFunction('int');
  1884. dictionary.fallout3functions['getobjectivedisplayed'] = new scriptFunction('int');
  1885. dictionary.fallout3functions['setimagespace'] = new scriptFunction('void');
  1886. dictionary.fallout3functions['pipboyradio'] = new scriptFunction('void');
  1887. dictionary.fallout3functions['prad'] = alias(dictionary.fallout3functions['pipboyradio']);
  1888. dictionary.fallout3functions['removeperk'] = new scriptFunction('void');
  1889. dictionary.fallout3functions['disableallactors'] = new scriptFunction('void');
  1890. dictionary.fallout3functions['disaa'] = alias(dictionary.fallout3functions['disableallactors']);
  1891. dictionary.fallout3functions['getisformtype'] = new scriptFunction('int');
  1892. dictionary.fallout3functions['getisvoicetype'] = new scriptFunction('int');
  1893. dictionary.fallout3functions['getplantedexplosive'] = new scriptFunction('unknown');
  1894. dictionary.fallout3functions['completeallobjectives'] = new scriptFunction('void');
  1895. dictionary.fallout3functions['isactortalkingthroughactivator'] = new scriptFunction('int');
  1896. dictionary.fallout3functions['gethealthpercentage'] = new scriptFunction('float');
  1897. dictionary.fallout3functions['setaudiomultithreading'] = new scriptFunction('void');
  1898. dictionary.fallout3functions['sam'] = alias(dictionary.fallout3functions['setaudiomultithreading']);
  1899. dictionary.fallout3functions['getisobjecttype'] = new scriptFunction('int');
  1900. dictionary.fallout3functions['showchargenmenuparams'] = new scriptFunction('void');
  1901. dictionary.fallout3functions['scgmp'] = alias(dictionary.fallout3functions['showchargenmenuparams']);
  1902. dictionary.fallout3functions['getdialogueemotion'] = new scriptFunction('unknown');
  1903. dictionary.fallout3functions['getdialogueemotionvalue'] = new scriptFunction('unknown');
  1904. dictionary.fallout3functions['exitgame'] = new scriptFunction('void');
  1905. dictionary.fallout3functions['exit'] = alias(dictionary.fallout3functions['exitgame']);
  1906. dictionary.fallout3functions['getiscreaturetype'] = new scriptFunction('int');
  1907. dictionary.fallout3functions['setmerchantcontainer'] = new scriptFunction('void');
  1908. dictionary.fallout3functions['removemerchantcontainer'] = new scriptFunction('void');
  1909. dictionary.fallout3functions['showwarning'] = new scriptFunction('void', 'D', 0, [new scriptFunctionParam('ref', 'Message', 0)], {
  1910. docLink: 'http://geck.bethsoft.com/index.php/ShowWarning',
  1911. name: 'ShowWarning'
  1912. });
  1913. dictionary.fallout3functions['entertrigger'] = new scriptFunction('void');
  1914. dictionary.fallout3functions['markfordelete'] = new scriptFunction('void');
  1915. dictionary.fallout3functions['additemhealthpercent'] = new scriptFunction('void');
  1916. dictionary.fallout3functions['placeatmehealthpercent'] = new scriptFunction('ref');
  1917. dictionary.fallout3functions['getinzone'] = new scriptFunction('int');
  1918. dictionary.fallout3functions['disablenavmesh'] = new scriptFunction('void');
  1919. dictionary.fallout3functions['enablenavmesh'] = new scriptFunction('void');
  1920. dictionary.fallout3functions['hasperk'] = new scriptFunction('int');
  1921. dictionary.fallout3functions['getfactionrelation'] = new scriptFunction('int');
  1922. dictionary.fallout3functions['islastidleplayed'] = new scriptFunction('int');
  1923. dictionary.fallout3functions['setnpcradio'] = new scriptFunction('void');
  1924. dictionary.fallout3functions['snr'] = alias(dictionary.fallout3functions['setnpcradio']);
  1925. dictionary.fallout3functions['setplayerteammate'] = new scriptFunction('void');
  1926. dictionary.fallout3functions['getplayerteammate'] = new scriptFunction('int');
  1927. dictionary.fallout3functions['getplayerteammatecount'] = new scriptFunction('int');
  1928. dictionary.fallout3functions['openteammatecontainer'] = new scriptFunction('void');
  1929. dictionary.fallout3functions['clearfactionplayerenemyflag'] = new scriptFunction('void');
  1930. dictionary.fallout3functions['getactorcrimeplayerenemy'] = new scriptFunction('int');
  1931. dictionary.fallout3functions['getactorfactionplayerenemy'] = new scriptFunction('int');
  1932. dictionary.fallout3functions['setplayertagskill'] = new scriptFunction('void');
  1933. dictionary.fallout3functions['isplayertagskill'] = new scriptFunction('int');
  1934. dictionary.fallout3functions['getplayergrabbedref'] = new scriptFunction('ref');
  1935. dictionary.fallout3functions['isplayergrabbedref'] = new scriptFunction('int');
  1936. dictionary.fallout3functions['placeleveledactoratme'] = new scriptFunction('ref');
  1937. dictionary.fallout3functions['unusedfunction'] = new scriptFunction('void', 'D', 0, []);
  1938. dictionary.fallout3functions['showlockpickmenu'] = new scriptFunction('void');
  1939. dictionary.fallout3functions['slpm'] = alias(dictionary.fallout3functions['showlockpickmenu']);
  1940. dictionary.fallout3functions['getbroadcaststate'] = new scriptFunction('int');
  1941. dictionary.fallout3functions['setbroadcaststate'] = new scriptFunction('void');
  1942. dictionary.fallout3functions['startradioconversation'] = new scriptFunction('void');
  1943. dictionary.fallout3functions['getdestructionstage'] = new scriptFunction('int');
  1944. dictionary.fallout3functions['cleardestruction'] = new scriptFunction('void');
  1945. dictionary.fallout3functions['castimmediateonself'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'Spell')], {
  1946. docLink: 'http://geck.bethsoft.com/index.php/CastImmediateOnSelf',
  1947. name: 'CastImmediateOnSelf',
  1948. shortName: 'CIOS',
  1949. longName: 'CastImmediateOnSelf'
  1950. });
  1951. dictionary.fallout3functions['cios'] = alias(dictionary.fallout3functions['castimmediateonself']);
  1952. dictionary.fallout3functions['getisalignment'] = new scriptFunction('int');
  1953. dictionary.fallout3functions['resetquest'] = new scriptFunction('void');
  1954. dictionary.fallout3functions['setquestdelay'] = new scriptFunction('void');
  1955. dictionary.fallout3functions['forceactivequest'] = new scriptFunction('void');
  1956. dictionary.fallout3functions['getthreatratio'] = new scriptFunction('unknown');
  1957. dictionary.fallout3functions['matchfacegeometry'] = new scriptFunction('void');
  1958. dictionary.fallout3functions['getisuseditemequiptype'] = new scriptFunction('int');
  1959. dictionary.fallout3functions['getplayername'] = new scriptFunction('void');
  1960. dictionary.fallout3functions['fireweapon'] = new scriptFunction('void');
  1961. dictionary.fallout3functions['showtutorialmenu'] = new scriptFunction('void');
  1962. dictionary.fallout3functions['agerace'] = new scriptFunction('void');
  1963. dictionary.fallout3functions['matchrace'] = new scriptFunction('void');
  1964. dictionary.fallout3functions['setpcyoung'] = new scriptFunction('void');
  1965. dictionary.fallout3functions['sexchange'] = new scriptFunction('void');
  1966. dictionary.fallout3functions['showspecialbookmenu'] = new scriptFunction('void');
  1967. dictionary.fallout3functions['ssbm'] = alias(dictionary.fallout3functions['showspecialbookmenu']);
  1968. dictionary.fallout3functions['getconcussed'] = new scriptFunction('unknown');
  1969. dictionary.fallout3functions['setzonerespawns'] = new scriptFunction('void');
  1970. dictionary.fallout3functions['setvatstarget'] = new scriptFunction('void');
  1971. dictionary.fallout3functions['getmapmarkervisible'] = new scriptFunction('int');
  1972. dictionary.fallout3functions['resetinventory'] = new scriptFunction('void');
  1973. dictionary.fallout3functions['showspecialbookmenuparams'] = new scriptFunction('void');
  1974. dictionary.fallout3functions['ssbmp'] = alias(dictionary.fallout3functions['showspecialbookmenuparams']);
  1975. dictionary.fallout3functions['getpermanentactorvalue'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.actorValues)], {
  1976. docLink: 'http://geck.bethsoft.com/index.php/GetPermanentActorValue',
  1977. name: 'GetPermanentActorValue',
  1978. shortName: 'GetPermAV',
  1979. longName: 'GetPermanentActorValue'
  1980. });
  1981. dictionary.fallout3functions['getpermav'] = alias(dictionary.fallout3functions['getpermanentactorvalue']);
  1982. dictionary.fallout3functions['getkillingblowlimb'] = new scriptFunction('int', 'R', 0, [], {
  1983. docLink: 'http://geck.bethsoft.com/index.php/GetKillingBlowLimb',
  1984. name: 'GetKillingBlowLimb'
  1985. });
  1986. dictionary.fallout3functions['showbarbermenu'] = new scriptFunction('void');
  1987. dictionary.fallout3functions['showplasticsurgeonmenu'] = new scriptFunction('void');
  1988. dictionary.fallout3functions['triggerlodapocalypse'] = new scriptFunction('void');
  1989. dictionary.fallout3functions['getweaponhealthperc'] = new scriptFunction('int');
  1990. dictionary.fallout3functions['setweaponhealthperc'] = new scriptFunction('void');
  1991. dictionary.fallout3functions['modweaponhealthperc'] = new scriptFunction('void');
  1992. dictionary.fallout3functions['getradiationlevel'] = new scriptFunction('int');
  1993. dictionary.fallout3functions['showallmapmarkers'] = new scriptFunction('void');
  1994. dictionary.fallout3functions['tmm'] = alias(dictionary.fallout3functions['showallmapmarkers']);
  1995. dictionary.fallout3functions['showchargenmenumodvalues'] = new scriptFunction('void');
  1996. dictionary.fallout3functions['scgmod'] = alias(dictionary.fallout3functions['showchargenmenumodvalues']);
  1997. dictionary.fallout3functions['resetai'] = new scriptFunction('void');
  1998. dictionary.fallout3functions['setrumble'] = new scriptFunction('void');
  1999. dictionary.fallout3functions['setnoactivationsound'] = new scriptFunction('void');
  2000. dictionary.fallout3functions['clearnoactivationsound'] = new scriptFunction('void');
  2001. dictionary.fallout3functions['getlasthitcritical'] = new scriptFunction('int');
  2002. dictionary.fallout3functions['playmusic'] = new scriptFunction('void');
  2003. dictionary.fallout3functions['setlocationspecificloadscreensonly'] = new scriptFunction('void');
  2004. dictionary.fallout3functions['resetpipboymanager'] = new scriptFunction('void');
  2005. dictionary.fallout3functions['setpctoddler'] = new scriptFunction('void');
  2006. dictionary.fallout3functions['iscombattarget'] = new scriptFunction('int');
  2007. dictionary.fallout3functions['rewardkarma'] = new scriptFunction('void');
  2008. dictionary.fallout3functions['triggerscreenblood'] = new scriptFunction('void');
  2009. dictionary.fallout3functions['tsb'] = alias(dictionary.fallout3functions['triggerscreenblood']);
  2010. dictionary.fallout3functions['getvatsrightareafree'] = new scriptFunction('int');
  2011. dictionary.fallout3functions['getvatsleftareafree'] = new scriptFunction('int');
  2012. dictionary.fallout3functions['getvatsbackareafree'] = new scriptFunction('int');
  2013. dictionary.fallout3functions['getvatsfrontareafree'] = new scriptFunction('int');
  2014. dictionary.fallout3functions['getislockbroken'] = new scriptFunction('int');
  2015. dictionary.fallout3functions['isps3'] = new scriptFunction('int', 'B', 0, [], {
  2016. docLink: 'http://geck.bethsoft.com/index.php/IsPS3',
  2017. name: 'IsPS3'
  2018. }, [new scriptFunctionNote(function (functionCall) {
  2019. return true;
  2020. }, '"IsPS3" will always return 0', 1)]);
  2021. dictionary.fallout3functions['iswin32'] = new scriptFunction('int', 'B', 0, [], {
  2022. docLink: 'http://geck.bethsoft.com/index.php/IsWin32',
  2023. name: 'IsWin32'
  2024. }, [new scriptFunctionNote(function (functionCall) {
  2025. return true;
  2026. }, '"IsWin32" will always return 1', 1)]);
  2027. dictionary.fallout3functions['getvatsrighttargetvisible'] = new scriptFunction('int');
  2028. dictionary.fallout3functions['getvatslefttargetvisible'] = new scriptFunction('int');
  2029. dictionary.fallout3functions['getvatsbacktargetvisible'] = new scriptFunction('int');
  2030. dictionary.fallout3functions['getvatsfronttargetvisible'] = new scriptFunction('int');
  2031. dictionary.fallout3functions['attachashpile'] = new scriptFunction('void');
  2032. dictionary.fallout3functions['setcriticalstage'] = new scriptFunction('void');
  2033. dictionary.fallout3functions['isincriticalstage'] = new scriptFunction('int');
  2034. dictionary.fallout3functions['removefromallfactions'] = new scriptFunction('void');
  2035. dictionary.fallout3functions['getxpfornextlevel'] = new scriptFunction('void');
  2036. dictionary.fallout3functions['showlockpickmenudebug'] = new scriptFunction('void');
  2037. dictionary.fallout3functions['slpmb'] = alias(dictionary.fallout3functions['showlockpickmenudebug']);
  2038. dictionary.fallout3functions['forcesave'] = new scriptFunction('void');
  2039. dictionary.fallout3functions['setspecialpoints'] = new scriptFunction('void');
  2040. dictionary.fallout3functions['addspecialpoints'] = new scriptFunction('void');
  2041. dictionary.fallout3functions['settagskills'] = new scriptFunction('void');
  2042. dictionary.fallout3functions['addtagskills'] = new scriptFunction('void');
  2043. dictionary.fallout3functions['sin'] = new scriptFunction('float', 'B', 0, [new scriptFunctionParam('float', 'x'), new scriptFunctionParam('int', 'arcsine flag', true)], {
  2044. docLink: 'http://geck.bethsoft.com/index.php/Sin',
  2045. name: 'sin'
  2046. });
  2047. dictionary.fallout3functions['cos'] = new scriptFunction('float', 'B', 0, [new scriptFunctionParam('float', 'x'), new scriptFunctionParam('int', 'arccosine flag', true)], {
  2048. docLink: 'http://geck.bethsoft.com/index.php/Cos',
  2049. name: 'cos'
  2050. });
  2051. dictionary.fallout3functions['tan'] = new scriptFunction('float', 'B', 0, [new scriptFunctionParam('float', 'x'), new scriptFunctionParam('int', 'arctangent flag', true)], {
  2052. docLink: 'http://geck.bethsoft.com/index.php/Tan',
  2053. name: 'tan'
  2054. });
  2055. dictionary.fallout3functions['sqrt'] = new scriptFunction('float', 'B', 0, [new scriptFunctionParam('float', 'x')], {
  2056. docLink: 'http://geck.bethsoft.com/index.php/Sqrt',
  2057. name: 'sqrt'
  2058. });
  2059. dictionary.fallout3functions['log'] = new scriptFunction('float', 'B', 0, [new scriptFunctionParam('float', 'x'), new scriptFunctionParam('float', 'base', true)], {
  2060. docLink: 'http://geck.bethsoft.com/index.php/Log',
  2061. name: 'log'
  2062. });
  2063. dictionary.fallout3functions['abs'] = new scriptFunction('float', 'B', 0, [new scriptFunctionParam('float', 'x')], {
  2064. docLink: 'http://geck.bethsoft.com/index.php/Abs',
  2065. name: 'abs'
  2066. });
  2067. dictionary.fallout3functions['getquestcompleted'] = new scriptFunction('int');
  2068. dictionary.fallout3functions['getqc'] = alias(dictionary.fallout3functions['getquestcompleted']);
  2069. dictionary.fallout3functions['forceterminalback'] = new scriptFunction('void');
  2070. dictionary.fallout3functions['pipboyradiooff'] = new scriptFunction('void');
  2071. dictionary.fallout3functions['autodisplayobjectives'] = new scriptFunction('void');
  2072. dictionary.fallout3functions['isgoredisabled'] = new scriptFunction('int');
  2073. dictionary.fallout3functions['fadesfx'] = new scriptFunction('void');
  2074. dictionary.fallout3functions['fsfx'] = alias(dictionary.fallout3functions['fadesfx']);
  2075. dictionary.fallout3functions['setminimaluse'] = new scriptFunction('void');
  2076. dictionary.fallout3functions['setpccanusepowerarmor'] = new scriptFunction('void');
  2077. dictionary.fallout3functions['showqueststages'] = new scriptFunction('void');
  2078. dictionary.fallout3functions['sqs'] = alias(dictionary.fallout3functions['showqueststages']);
  2079. dictionary.fallout3functions['getspellusagenum'] = new scriptFunction('void', 'D', 0, []);
  2080. dictionary.fallout3functions['forceradiostationupdate'] = new scriptFunction('void');
  2081. dictionary.fallout3functions['frsu'] = alias(dictionary.fallout3functions['forceradiostationupdate']);
  2082. dictionary.fallout3functions['getactorsinhigh'] = new scriptFunction('void', 'D', 0, []);
  2083. dictionary.fallout3functions['hasloaded3d'] = new scriptFunction('int');
  2084. dictionary.fallout3functions['disableallmines'] = new scriptFunction('void');
  2085. dictionary.fallout3functions['setlastextdooractivated'] = new scriptFunction('void');
  2086. dictionary.fallout3functions['killquestupdates'] = new scriptFunction('void');
  2087. dictionary.fallout3functions['kqu'] = alias(dictionary.fallout3functions['killquestupdates']);
  2088. dictionary.fallout3functions['isimagespaceactive'] = new scriptFunction('int');
  2089. dictionary.fallout3functions['remapwatertype'] = new scriptFunction('void');
  2090. dictionary.fallout3functions['additemtoleveledlist'] = new scriptFunction('void');
  2091. dictionary.fallout3functions['addcreaturetoleveledlist'] = new scriptFunction('void');
  2092. dictionary.fallout3functions['addnpctoleveledlist'] = new scriptFunction('void');
  2093. dictionary.fallout3functions['addformtoformlist'] = new scriptFunction('void');
  2094. } {
  2095. dictionary.fosefunctions['addspellns'] = new scriptFunction('void', 'R', 1.00, [new scriptFunctionParam('ref', 'spell')], {
  2096. docLink: 'http://fose.silverlock.org/fose_command_doc.html#AddSpellNS',
  2097. name: 'AddSpellNS'
  2098. });
  2099. dictionary.fosefunctions['ceil'] = new scriptFunction('float', 'B', 1.00, [new scriptFunctionParam('float', 'float')], {
  2100. docLink: 'http://fose.silverlock.org/fose_command_doc.html#Ceil',
  2101. name: 'Ceil'
  2102. });
  2103. dictionary.fosefunctions['comparenames'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'inv item'), new scriptFunctionParam('ref', 'target item', true)], {
  2104. docLink: 'http://fose.silverlock.org/fose_command_doc.html#CompareNames',
  2105. name: 'CompareNames'
  2106. });
  2107. dictionary.fosefunctions['con_closeallmenus'] = new scriptFunction('void', 'B', 1.00, [], {
  2108. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_CloseAllMenus',
  2109. name: 'con_CloseAllMenus'
  2110. });
  2111. dictionary.fosefunctions['con_getinisetting'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'settingName')], {
  2112. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_GetINISetting',
  2113. name: 'con_GetINISetting'
  2114. });
  2115. dictionary.fosefunctions['con_loadgame'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'filename'), new scriptFunctionParam('int', 'Integer', true)], {
  2116. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_LoadGame',
  2117. name: 'con_LoadGame'
  2118. });
  2119. dictionary.fosefunctions['con_quitgame'] = new scriptFunction('void', 'B', 1.00, [], {
  2120. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_QuitGame',
  2121. name: 'con_QuitGame'
  2122. });
  2123. dictionary.fosefunctions['con_refreshini'] = new scriptFunction('void', 'B', 1.00, [], {
  2124. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_RefreshINI',
  2125. name: 'con_RefreshINI'
  2126. });
  2127. dictionary.fosefunctions['con_save'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'saveName'), new scriptFunctionParam('int', 'Integer', true)], {
  2128. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_Save',
  2129. name: 'con_Save'
  2130. });
  2131. dictionary.fosefunctions['con_saveini'] = new scriptFunction('void', 'B', 1.00, [], {
  2132. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_SaveINI',
  2133. name: 'con_SaveINI'
  2134. });
  2135. dictionary.fosefunctions['con_setcamerafov'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('float', 'Float', true), new scriptFunctionParam('float', 'Float', true)], {
  2136. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_SetCameraFOV',
  2137. name: 'con_SetCameraFOV'
  2138. });
  2139. dictionary.fosefunctions['con_setgamesetting'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'settingName'), new scriptFunctionParam('string', 'newValue')], {
  2140. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_SetGameSetting',
  2141. name: 'con_SetGameSetting'
  2142. });
  2143. dictionary.fosefunctions['con_setinisetting'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'setting'), new scriptFunctionParam('string', 'newValue')], {
  2144. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_SetINISetting',
  2145. name: 'con_SetINISetting'
  2146. });
  2147. dictionary.fosefunctions['con_setvel'] = new scriptFunction('void', 'R', 1.00, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes), new scriptFunctionParam('float', 'Float')], {
  2148. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_SetVel',
  2149. name: 'con_SetVel'
  2150. });
  2151. dictionary.fosefunctions['debugprint'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'format string'), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true)], {
  2152. docLink: 'http://fose.silverlock.org/fose_command_doc.html#DebugPrint',
  2153. name: 'DebugPrint',
  2154. shortName: 'dbprintc',
  2155. longName: 'DebugPrint'
  2156. });
  2157. dictionary.fosefunctions['dbprintc'] = alias(dictionary.fosefunctions['debugprint']);
  2158. dictionary.fosefunctions['disablecontrol'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  2159. docLink: 'http://fose.silverlock.org/fose_command_doc.html#DisableControl',
  2160. name: 'DisableControl',
  2161. shortName: 'dc',
  2162. longName: 'DisableControl'
  2163. });
  2164. dictionary.fosefunctions['dc'] = alias(dictionary.fosefunctions['disablecontrol']);
  2165. dictionary.fosefunctions['disablekey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  2166. docLink: 'http://fose.silverlock.org/fose_command_doc.html#DisableKey',
  2167. name: 'DisableKey',
  2168. shortName: 'dk',
  2169. longName: 'DisableKey'
  2170. });
  2171. dictionary.fosefunctions['dk'] = alias(dictionary.fosefunctions['disablekey']);
  2172. dictionary.fosefunctions['enablecontrol'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  2173. docLink: 'http://fose.silverlock.org/fose_command_doc.html#EnableControl',
  2174. name: 'EnableControl',
  2175. shortName: 'ec',
  2176. longName: 'EnableControl'
  2177. });
  2178. dictionary.fosefunctions['ec'] = alias(dictionary.fosefunctions['enablecontrol']);
  2179. dictionary.fosefunctions['enablekey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  2180. docLink: 'http://fose.silverlock.org/fose_command_doc.html#EnableKey',
  2181. name: 'EnableKey',
  2182. shortName: 'ek',
  2183. longName: 'EnableKey'
  2184. });
  2185. dictionary.fosefunctions['ek'] = alias(dictionary.fosefunctions['enablekey']);
  2186. dictionary.fosefunctions['exp'] = new scriptFunction('float', 'B', 1.00, [new scriptFunctionParam('float', 'float')], {
  2187. docLink: 'http://fose.silverlock.org/fose_command_doc.html#Exp',
  2188. name: 'Exp'
  2189. });
  2190. dictionary.fosefunctions['floor'] = new scriptFunction('float', 'B', 1.00, [new scriptFunctionParam('float', 'float')], {
  2191. docLink: 'http://fose.silverlock.org/fose_command_doc.html#Floor',
  2192. name: 'Floor',
  2193. shortName: 'flr',
  2194. longName: 'Floor'
  2195. });
  2196. dictionary.fosefunctions['flr'] = alias(dictionary.fosefunctions['floor']);
  2197. dictionary.fosefunctions['fmod'] = new scriptFunction('float', 'B', 1.00, [new scriptFunctionParam('float', 'x'), new scriptFunctionParam('float', 'n'), new scriptFunctionParam('float', 'offset', true)], {
  2198. docLink: 'http://fose.silverlock.org/fose_command_doc.html#fmod',
  2199. name: 'fmod'
  2200. });
  2201. dictionary.fosefunctions['getaltcontrol'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  2202. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetAltControl',
  2203. name: 'GetAltControl'
  2204. });
  2205. dictionary.fosefunctions['getarmorarmorrating'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2206. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetArmorAR',
  2207. name: 'GetArmorAR',
  2208. shortName: 'GetArmorAR',
  2209. longName: 'GetArmorArmorRating'
  2210. });
  2211. dictionary.fosefunctions['getarmorar'] = alias(dictionary.fosefunctions['getarmorarmorrating']);
  2212. dictionary.fosefunctions['getattackdamage'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2213. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetAttackDamage',
  2214. name: 'GetAttackDamage',
  2215. shortName: 'GetDamage',
  2216. longName: 'GetAttackDamage'
  2217. });
  2218. dictionary.fosefunctions['getdamage'] = alias(dictionary.fosefunctions['getattackdamage']);
  2219. dictionary.fosefunctions['getbaseobject'] = new scriptFunction('ref', 'R', 1.00, [], {
  2220. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetBaseObject',
  2221. name: 'GetBaseObject',
  2222. shortName: 'gbo',
  2223. longName: 'GetBaseObject'
  2224. });
  2225. dictionary.fosefunctions['gbo'] = alias(dictionary.fosefunctions['getbaseobject']);
  2226. dictionary.fosefunctions['getcontrol'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  2227. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetControl',
  2228. name: 'GetControl'
  2229. });
  2230. dictionary.fosefunctions['getcrosshairref'] = new scriptFunction('ref', 'B', 1.00, [], {
  2231. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetCrosshairRef',
  2232. name: 'GetCrosshairRef'
  2233. });
  2234. dictionary.fosefunctions['getdebugmode'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'modIndex', true)], {
  2235. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetDebugMode',
  2236. name: 'GetDebugMode',
  2237. shortName: 'GetDBMode',
  2238. longName: 'GetDebugMode'
  2239. });
  2240. dictionary.fosefunctions['getdbmode'] = alias(dictionary.fosefunctions['getdebugmode']);
  2241. dictionary.fosefunctions['getequippedcurrenthealth'] = new scriptFunction('float', 'R', 1.00, [new scriptFunctionParam('int', 'equipmentSlot')], {
  2242. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetEquippedCurrentHealth',
  2243. name: 'GetEquippedCurrentHealth',
  2244. shortName: 'GetEqCurHealth',
  2245. longName: 'GetEquippedCurrentHealth'
  2246. });
  2247. dictionary.fosefunctions['geteqcurhealth'] = alias(dictionary.fosefunctions['getequippedcurrenthealth']);
  2248. dictionary.fosefunctions['getequippedobject'] = new scriptFunction('ref', 'R', 1.00, [new scriptFunctionParam('int', 'atIndex')], {
  2249. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetEquippedObject',
  2250. name: 'GetEquippedObject',
  2251. shortName: 'GetEqObj',
  2252. longName: 'GetEquippedObject'
  2253. });
  2254. dictionary.fosefunctions['geteqobj'] = alias(dictionary.fosefunctions['getequippedobject']);
  2255. dictionary.fosefunctions['getequiptype'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2256. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetEquipType',
  2257. name: 'GetEquipType'
  2258. });
  2259. dictionary.fosefunctions['getfirstref'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('int', 'form type', true), new scriptFunctionParam('int', 'cell depth', true), new scriptFunctionParam('int', 'include taken refs', true)], {
  2260. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetFirstRef',
  2261. name: 'GetFirstRef'
  2262. });
  2263. dictionary.fosefunctions['getfirstrefincell'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('ref', 'cell'), new scriptFunctionParam('int', 'form type', true), new scriptFunctionParam('int', 'cell depth', true), new scriptFunctionParam('int', 'include taken refs', true)], {
  2264. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetFirstRefInCell',
  2265. name: 'GetFirstRefInCell'
  2266. });
  2267. dictionary.fosefunctions['getfosebeta'] = new scriptFunction('int', 'B', 1.00, [], {
  2268. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetFOSEBeta',
  2269. name: 'GetFOSEBeta'
  2270. });
  2271. dictionary.fosefunctions['getfoserevision'] = new scriptFunction('int', 'B', 1.00, [], {
  2272. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetFOSERevision',
  2273. name: 'GetFOSERevision'
  2274. });
  2275. dictionary.fosefunctions['getfoseversion'] = new scriptFunction('int', 'B', 1.00, [], {
  2276. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetFOSEVersion',
  2277. name: 'GetFOSEVersion'
  2278. });
  2279. dictionary.fosefunctions['getgameloaded'] = new scriptFunction('int', 'B', 1.00, [], {
  2280. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetGameLoaded',
  2281. name: 'GetGameLoaded'
  2282. });
  2283. dictionary.fosefunctions['getgamerestarted'] = new scriptFunction('int', 'B', 1.00, [], {
  2284. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetGameRestarted',
  2285. name: 'GetGameRestarted'
  2286. });
  2287. dictionary.fosefunctions['getbasehealth'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2288. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetHealth',
  2289. name: 'GetBaseHealth',
  2290. shortName: 'GetHealth',
  2291. longName: 'GetBaseHealth'
  2292. });
  2293. dictionary.fosefunctions['gethealth'] = alias(dictionary.fosefunctions['getbasehealth']);
  2294. dictionary.fosefunctions['gethotkeyitem'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('int', 'hotkey')], {
  2295. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetHotkeyItem',
  2296. name: 'GetHotkeyItem'
  2297. });
  2298. dictionary.fosefunctions['getkeypress'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'index')], {
  2299. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetKeyPress',
  2300. name: 'GetKeyPress',
  2301. shortName: 'gkp',
  2302. longName: 'GetKeyPress'
  2303. });
  2304. dictionary.fosefunctions['gkp'] = alias(dictionary.fosefunctions['getkeypress']);
  2305. dictionary.fosefunctions['getlinkeddoor'] = new scriptFunction('ref', 'R', 1.00, [], {
  2306. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetLinkedDoor',
  2307. name: 'GetLinkedDoor'
  2308. });
  2309. dictionary.fosefunctions['getmodindex'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('string', 'modName')], {
  2310. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetModIndex',
  2311. name: 'GetModIndex'
  2312. });
  2313. dictionary.fosefunctions['getmousebuttonpress'] = new scriptFunction('FixMe', 'B', 1.00, [new scriptFunctionParam('int', 'index')], {
  2314. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetMouseButtonPress',
  2315. name: 'GetMouseButtonPress',
  2316. shortName: 'gmbp',
  2317. longName: 'GetMouseButtonPress'
  2318. });
  2319. dictionary.fosefunctions['gmbp'] = alias(dictionary.fosefunctions['getmousebuttonpress']);
  2320. dictionary.fosefunctions['getnextref'] = new scriptFunction('ref', 'B', 1.00, [], {
  2321. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNextRef',
  2322. name: 'GetNextRef'
  2323. });
  2324. dictionary.fosefunctions['getnumericgamesetting'] = new scriptFunction('IntegerOrFloat', 'B', 1.00, [new scriptFunctionParam('string', 'settingName')], {
  2325. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumericGameSetting',
  2326. name: 'GetNumericGameSetting'
  2327. });
  2328. dictionary.fosefunctions['getnumericinisetting'] = new scriptFunction('IntegerOrFloat', 'B', 1.00, [new scriptFunctionParam('string', 'settingName')], {
  2329. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumericINISetting',
  2330. name: 'GetNumericINISetting'
  2331. });
  2332. dictionary.fosefunctions['getnumkeyspressed'] = new scriptFunction('int', 'B', 1.00, [], {
  2333. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumKeysPressed',
  2334. name: 'GetNumKeysPressed',
  2335. shortName: 'gnkp',
  2336. longName: 'GetNumKeysPressed'
  2337. });
  2338. dictionary.fosefunctions['gnkp'] = alias(dictionary.fosefunctions['getnumkeyspressed']);
  2339. dictionary.fosefunctions['getnumloadedmods'] = new scriptFunction('int', 'B', 1.00, [], {
  2340. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumLoadedMods',
  2341. name: 'GetNumLoadedMods'
  2342. });
  2343. dictionary.fosefunctions['getnummousebuttonspressed'] = new scriptFunction('int', 'B', 1.00, [], {
  2344. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumMouseButtonsPressed',
  2345. name: 'GetNumMouseButtonsPressed',
  2346. shortName: 'gnmbp',
  2347. longName: 'GetNumMouseButtonsPressed'
  2348. });
  2349. dictionary.fosefunctions['gnmbp'] = alias(dictionary.fosefunctions['getnummousebuttonspressed']);
  2350. dictionary.fosefunctions['getnumrefs'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'form type', true), new scriptFunctionParam('int', 'cell depth', true), new scriptFunctionParam('int', 'include taken refs', true)], {
  2351. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumRefs',
  2352. name: 'GetNumRefs'
  2353. });
  2354. dictionary.fosefunctions['getnumrefsincell'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'cell'), new scriptFunctionParam('int', 'form type', true), new scriptFunctionParam('int', 'cell depth', true), new scriptFunctionParam('int', 'include taken refs', true)], {
  2355. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumRefsInCell',
  2356. name: 'GetNumRefsInCell'
  2357. });
  2358. dictionary.fosefunctions['getobjecteffect'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2359. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetObjectEffect',
  2360. name: 'GetObjectEffect',
  2361. shortName: 'GetEnchantment',
  2362. longName: 'GetObjectEffect'
  2363. });
  2364. dictionary.fosefunctions['getenchantment'] = alias(dictionary.fosefunctions['getobjecteffect']);
  2365. dictionary.fosefunctions['getopenkey'] = new scriptFunction('ref', 'R', 1.00, [], {
  2366. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetOpenKey',
  2367. name: 'GetOpenKey',
  2368. shortName: 'GetKey',
  2369. longName: 'GetOpenKey'
  2370. });
  2371. dictionary.fosefunctions['getkey'] = alias(dictionary.fosefunctions['getopenkey']);
  2372. dictionary.fosefunctions['getparentcell'] = new scriptFunction('ref', 'R', 1.00, [], {
  2373. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetParentCell',
  2374. name: 'GetParentCell',
  2375. shortName: 'gpc',
  2376. longName: 'GetParentCell'
  2377. });
  2378. dictionary.fosefunctions['gpc'] = alias(dictionary.fosefunctions['getparentcell']);
  2379. dictionary.fosefunctions['getparentworldspace'] = new scriptFunction('ref', 'R', 1.00, [], {
  2380. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetParentWorldspace',
  2381. name: 'GetParentWorldspace',
  2382. shortName: 'gpw',
  2383. longName: 'GetParentWorldspace'
  2384. });
  2385. dictionary.fosefunctions['gpw'] = alias(dictionary.fosefunctions['getparentworldspace']);
  2386. dictionary.fosefunctions['getrepairlist'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2387. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetRepairList',
  2388. name: 'GetRepairList',
  2389. shortName: 'grl',
  2390. longName: 'GetRepairList'
  2391. });
  2392. dictionary.fosefunctions['grl'] = alias(dictionary.fosefunctions['getrepairlist']);
  2393. dictionary.fosefunctions['getscript'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2394. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetScript',
  2395. name: 'GetScript'
  2396. });
  2397. dictionary.fosefunctions['getsourcemodindex'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2398. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetSourceModIndex',
  2399. name: 'GetSourceModIndex'
  2400. });
  2401. dictionary.fosefunctions['getteleportcell'] = new scriptFunction('ref', 'R', 1.00, [], {
  2402. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetTeleportCell',
  2403. name: 'GetTeleportCell'
  2404. });
  2405. dictionary.fosefunctions['getobjecttype'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2406. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetType',
  2407. name: 'GetObjectType',
  2408. shortName: 'GetType',
  2409. longName: 'GetObjectType'
  2410. });
  2411. dictionary.fosefunctions['gettype'] = alias(dictionary.fosefunctions['getobjecttype']);
  2412. dictionary.fosefunctions['getuifloat'] = new scriptFunction('float', 'B', 1.00, [new scriptFunctionParam('string', 'traitName')], {
  2413. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetUIFloat',
  2414. name: 'GetUIFloat'
  2415. });
  2416. dictionary.fosefunctions['getitemvalue'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2417. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetValue',
  2418. name: 'GetItemValue',
  2419. shortName: 'GetValue',
  2420. longName: 'GetItemValue'
  2421. });
  2422. dictionary.fosefunctions['getvalue'] = alias(dictionary.fosefunctions['getitemvalue']);
  2423. dictionary.fosefunctions['getweaponactionpoints'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2424. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponActionPoints',
  2425. name: 'GetWeaponActionPoints',
  2426. shortName: 'GetAP',
  2427. longName: 'GetWeaponActionPoints'
  2428. });
  2429. dictionary.fosefunctions['getap'] = alias(dictionary.fosefunctions['getweaponactionpoints']);
  2430. dictionary.fosefunctions['getweaponaimarc'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2431. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAimArm',
  2432. name: 'GetWeaponAimArm',
  2433. shortName: 'GetAimArc',
  2434. longName: 'GetWeaponAimArm'
  2435. });
  2436. dictionary.fosefunctions['getaimarc'] = alias(dictionary.fosefunctions['getweaponaimarc']);
  2437. dictionary.fosefunctions['getweaponammo'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2438. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAmmo',
  2439. name: 'GetWeaponAmmo',
  2440. shortName: 'GetAmmo',
  2441. longName: 'GetWeaponAmmo'
  2442. });
  2443. dictionary.fosefunctions['getammo'] = alias(dictionary.fosefunctions['getweaponammo']);
  2444. dictionary.fosefunctions['getweaponammouse'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2445. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAmmoUse',
  2446. name: 'GetWeaponAmmoUse',
  2447. shortName: 'GetAmmoUse',
  2448. longName: 'GetWeaponAmmoUse'
  2449. });
  2450. dictionary.fosefunctions['getammouse'] = alias(dictionary.fosefunctions['getweaponammouse']);
  2451. dictionary.fosefunctions['getweaponanimattackmult'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2452. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAnimAttackMult',
  2453. name: 'GetWeaponAnimAttackMult',
  2454. shortName: 'GetAnimAttackMult',
  2455. longName: 'GetWeaponAnimAttackMult'
  2456. });
  2457. dictionary.fosefunctions['getanimattackmult'] = alias(dictionary.fosefunctions['getweaponanimattackmult']);
  2458. dictionary.fosefunctions['getweaponanimjamtime'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2459. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAnimJamTime',
  2460. name: 'GetWeaponAnimJamTime',
  2461. shortName: 'GetAnimJamTime',
  2462. longName: 'GetWeaponAnimJamTime'
  2463. });
  2464. dictionary.fosefunctions['getanimjamtime'] = alias(dictionary.fosefunctions['getweaponanimjamtime']);
  2465. dictionary.fosefunctions['getweaponanimmult'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2466. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAnimMult',
  2467. name: 'GetWeaponAnimMult',
  2468. shortName: 'GetAnimMult',
  2469. longName: 'GetWeaponAnimMult'
  2470. });
  2471. dictionary.fosefunctions['getanimmult'] = alias(dictionary.fosefunctions['getweaponanimmult']);
  2472. dictionary.fosefunctions['getweaponanimreloadtime'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2473. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAnimReloadTime',
  2474. name: 'GetWeaponAnimReloadTime',
  2475. shortName: 'GetAnimReloadTime',
  2476. longName: 'GetWeaponAnimReloadTime'
  2477. });
  2478. dictionary.fosefunctions['getanimreloadtime'] = alias(dictionary.fosefunctions['getweaponanimreloadtime']);
  2479. dictionary.fosefunctions['getweaponanimshotspersec'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2480. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAnimShotsPerSec',
  2481. name: 'GetWeaponAnimShotsPerSec',
  2482. shortName: 'GetAnimShotsPerSec',
  2483. longName: 'GetWeaponAnimShotsPerSec'
  2484. });
  2485. dictionary.fosefunctions['getanimshotspersec'] = alias(dictionary.fosefunctions['getweaponanimshotspersec']);
  2486. dictionary.fosefunctions['getweaponattackanimation'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2487. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAttackAnimation',
  2488. name: 'GetWeaponAttackAnimation',
  2489. shortName: 'GetAttackAnim',
  2490. longName: 'GetWeaponAttackAnimation'
  2491. });
  2492. dictionary.fosefunctions['getattackanim'] = alias(dictionary.fosefunctions['getweaponattackanimation']);
  2493. dictionary.fosefunctions['getweaponbasevatschance'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2494. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponBaseVATSChance',
  2495. name: 'GetWeaponBaseVATSChance',
  2496. shortName: 'GetVATSChance',
  2497. longName: 'GetWeaponBaseVATSChance'
  2498. });
  2499. dictionary.fosefunctions['getvatschance'] = alias(dictionary.fosefunctions['getweaponbasevatschance']);
  2500. dictionary.fosefunctions['getweaponcliprounds'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2501. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponClipRounds',
  2502. name: 'GetWeaponClipRounds',
  2503. shortName: 'GetClipSize',
  2504. longName: 'GetWeaponClipRounds'
  2505. });
  2506. dictionary.fosefunctions['getclipsize'] = alias(dictionary.fosefunctions['getweaponcliprounds']);
  2507. dictionary.fosefunctions['getweaponcritchance'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2508. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponCritChance',
  2509. name: 'GetWeaponCritChance',
  2510. shortName: 'GetCritPerc',
  2511. longName: 'GetWeaponCritChance'
  2512. });
  2513. dictionary.fosefunctions['getcritperc'] = alias(dictionary.fosefunctions['getweaponcritchance']);
  2514. dictionary.fosefunctions['getweaponcritdamage'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2515. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponCritDamage',
  2516. name: 'GetWeaponCritDamage',
  2517. shortName: 'GetCritDam',
  2518. longName: 'GetWeaponCritDamage'
  2519. });
  2520. dictionary.fosefunctions['getcritdam'] = alias(dictionary.fosefunctions['getweaponcritdamage']);
  2521. dictionary.fosefunctions['getweaponcriteffect'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2522. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponCritEffect',
  2523. name: 'GetWeaponCritEffect',
  2524. shortName: 'GetCritEffect',
  2525. longName: 'GetWeaponCritEffect'
  2526. });
  2527. dictionary.fosefunctions['getcriteffect'] = alias(dictionary.fosefunctions['getweaponcriteffect']);
  2528. dictionary.fosefunctions['getweaponfiredelaymax'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2529. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponFireDelayMax',
  2530. name: 'GetWeaponFireDelayMax',
  2531. shortName: 'GetFireDelayMax',
  2532. longName: 'GetWeaponFireDelayMax'
  2533. });
  2534. dictionary.fosefunctions['getfiredelaymax'] = alias(dictionary.fosefunctions['getweaponfiredelaymax']);
  2535. dictionary.fosefunctions['getweaponfiredelaymin'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2536. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponFireDelayMin',
  2537. name: 'GetWeaponFireDelayMin',
  2538. shortName: 'GetFireDelayMin',
  2539. longName: 'GetWeaponFireDelayMin'
  2540. });
  2541. dictionary.fosefunctions['getfiredelaymin'] = alias(dictionary.fosefunctions['getweaponfiredelaymin']);
  2542. dictionary.fosefunctions['getweaponfirerate'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2543. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponFireRate',
  2544. name: 'GetWeaponFireRate',
  2545. shortName: 'GetFireRate',
  2546. longName: 'GetWeaponFireRate'
  2547. });
  2548. dictionary.fosefunctions['getfirerate'] = alias(dictionary.fosefunctions['getweaponfirerate']);
  2549. dictionary.fosefunctions['getweaponhandgrip'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2550. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponHandGrip',
  2551. name: 'GetWeaponHandGrip',
  2552. shortName: 'GetHandGrip',
  2553. longName: 'GetWeaponHandGrip'
  2554. });
  2555. dictionary.fosefunctions['gethandgrip'] = alias(dictionary.fosefunctions['getweaponhandgrip']);
  2556. dictionary.fosefunctions['getweaponhasscope'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2557. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponHasScope',
  2558. name: 'GetWeaponHasScope'
  2559. });
  2560. dictionary.fosefunctions['getweaponisautomatic'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2561. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponIsAutomatic',
  2562. name: 'GetWeaponIsAutomatic',
  2563. shortName: 'GetIsAutomatic',
  2564. longName: 'GetWeaponIsAutomatic'
  2565. });
  2566. dictionary.fosefunctions['getisautomatic'] = alias(dictionary.fosefunctions['getweaponisautomatic']);
  2567. dictionary.fosefunctions['getweaponlimbdamagemult'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2568. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponLimbDamageMult',
  2569. name: 'GetWeaponLimbDamageMult',
  2570. shortName: 'GetLimbDamageMult',
  2571. longName: 'GetWeaponLimbDamageMult'
  2572. });
  2573. dictionary.fosefunctions['getlimbdamagemult'] = alias(dictionary.fosefunctions['getweaponlimbdamagemult']);
  2574. dictionary.fosefunctions['getweaponmaxrange'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2575. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponMaxRange',
  2576. name: 'GetWeaponMaxRange',
  2577. shortName: 'GetMaxRange',
  2578. longName: 'GetWeaponMaxRange'
  2579. });
  2580. dictionary.fosefunctions['getmaxrange'] = alias(dictionary.fosefunctions['getweaponmaxrange']);
  2581. dictionary.fosefunctions['getweaponminrange'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2582. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponMinRange',
  2583. name: 'GetWeaponMinRange',
  2584. shortName: 'GetMinRange',
  2585. longName: 'GetWeaponMinRange'
  2586. });
  2587. dictionary.fosefunctions['getminrange'] = alias(dictionary.fosefunctions['getweaponminrange']);
  2588. dictionary.fosefunctions['getweaponminspread'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2589. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponMinSpread',
  2590. name: 'GetWeaponMinSpread',
  2591. shortName: 'GetMinSpread',
  2592. longName: 'GetWeaponMinSpread'
  2593. });
  2594. dictionary.fosefunctions['getminspread'] = alias(dictionary.fosefunctions['getweaponminspread']);
  2595. dictionary.fosefunctions['getweaponnumprojectiles'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2596. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponNumProjectiles',
  2597. name: 'GetWeaponNumProjectiles',
  2598. shortName: 'GetNumProj',
  2599. longName: 'GetWeaponNumProjectiles'
  2600. });
  2601. dictionary.fosefunctions['getnumproj'] = alias(dictionary.fosefunctions['getweaponnumprojectiles']);
  2602. dictionary.fosefunctions['getweaponprojectile'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2603. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponProjectile',
  2604. name: 'GetWeaponProjectile',
  2605. shortName: 'GetWeapProj',
  2606. longName: 'GetWeaponProjectile'
  2607. });
  2608. dictionary.fosefunctions['getweapproj'] = alias(dictionary.fosefunctions['getweaponprojectile']);
  2609. dictionary.fosefunctions['getweaponreach'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2610. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponReach',
  2611. name: 'GetWeaponReach',
  2612. shortName: 'GetReach',
  2613. longName: 'GetWeaponReach'
  2614. });
  2615. dictionary.fosefunctions['getreach'] = alias(dictionary.fosefunctions['getweaponreach']);
  2616. dictionary.fosefunctions['getweaponreloadanim'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2617. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponReloadAnim',
  2618. name: 'GetWeaponReloadAnim',
  2619. shortName: 'GetReloadAnim',
  2620. longName: 'GetWeaponReloadAnim'
  2621. });
  2622. dictionary.fosefunctions['getreloadanim'] = alias(dictionary.fosefunctions['getweaponreloadanim']);
  2623. dictionary.fosefunctions['getweaponresisttype'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2624. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponResistType',
  2625. name: 'GetWeaponResistType',
  2626. shortName: 'GetWeaponResist',
  2627. longName: 'GetWeaponResistType'
  2628. });
  2629. dictionary.fosefunctions['getweaponresist'] = alias(dictionary.fosefunctions['getweaponresisttype']);
  2630. dictionary.fosefunctions['getweaponrumbleduration'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2631. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponRumbleDuration',
  2632. name: 'GetWeaponRumbleDuration',
  2633. shortName: 'GetRumbleDuration',
  2634. longName: 'GetWeaponRumbleDuration'
  2635. });
  2636. dictionary.fosefunctions['getrumbleduration'] = alias(dictionary.fosefunctions['getweaponrumbleduration']);
  2637. dictionary.fosefunctions['getweaponrumbleleftmotor'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2638. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponRumbleLeftMotor',
  2639. name: 'GetWeaponRumbleLeftMotor',
  2640. shortName: 'GetRumbleLeft',
  2641. longName: 'GetWeaponRumbleLeftMotor'
  2642. });
  2643. dictionary.fosefunctions['getrumbleleft'] = alias(dictionary.fosefunctions['getweaponrumbleleftmotor']);
  2644. dictionary.fosefunctions['getweaponrumblerightmotor'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2645. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponRumbleRightMotor',
  2646. name: 'GetWeaponRumbleRightMotor',
  2647. shortName: 'GetRumbleRight',
  2648. longName: 'GetWeaponRumbleRightMotor'
  2649. });
  2650. dictionary.fosefunctions['getrumbleright'] = alias(dictionary.fosefunctions['getweaponrumblerightmotor']);
  2651. dictionary.fosefunctions['getweaponrumblewavelength'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2652. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponRumbleWaveLength',
  2653. name: 'GetWeaponRumbleWaveLength',
  2654. shortName: 'GetRumbleWaveLen',
  2655. longName: 'GetWeaponRumbleWaveLength'
  2656. });
  2657. dictionary.fosefunctions['getrumblewavelen'] = alias(dictionary.fosefunctions['getweaponrumblewavelength']);
  2658. dictionary.fosefunctions['getweaponsightfov'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2659. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponSightFOV',
  2660. name: 'GetWeaponSightFOV',
  2661. shortName: 'GetSightFOV',
  2662. longName: 'GetWeaponSightFOV'
  2663. });
  2664. dictionary.fosefunctions['getsightfov'] = alias(dictionary.fosefunctions['getweaponsightfov']);
  2665. dictionary.fosefunctions['getweaponsightusage'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2666. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponSightUsage',
  2667. name: 'GetWeaponSightUsage',
  2668. shortName: 'GetSightUsage',
  2669. longName: 'GetWeaponSightUsage'
  2670. });
  2671. dictionary.fosefunctions['getsightusage'] = alias(dictionary.fosefunctions['getweaponsightusage']);
  2672. dictionary.fosefunctions['getweaponskill'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2673. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponSkill',
  2674. name: 'GetWeaponSkill'
  2675. });
  2676. dictionary.fosefunctions['getweaponspread'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2677. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponSpread',
  2678. name: 'GetWeaponSpread',
  2679. shortName: 'GetSpread',
  2680. longName: 'GetWeaponSpread'
  2681. });
  2682. dictionary.fosefunctions['getspread'] = alias(dictionary.fosefunctions['getweaponspread']);
  2683. dictionary.fosefunctions['getweapontype'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2684. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponType',
  2685. name: 'GetWeaponType',
  2686. shortName: 'GetWeapType',
  2687. longName: 'GetWeaponType'
  2688. });
  2689. dictionary.fosefunctions['getweaptype'] = alias(dictionary.fosefunctions['getweapontype']);
  2690. dictionary.fosefunctions['getweight'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2691. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeight',
  2692. name: 'GetWeight'
  2693. });
  2694. dictionary.fosefunctions['goto'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'labelID')], {
  2695. docLink: 'http://fose.silverlock.org/fose_command_doc.html#Goto',
  2696. name: 'Goto'
  2697. });
  2698. dictionary.fosefunctions['holdkey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  2699. docLink: 'http://fose.silverlock.org/fose_command_doc.html#HoldKey',
  2700. name: 'HoldKey',
  2701. shortName: 'hk',
  2702. longName: 'HoldKey'
  2703. });
  2704. dictionary.fosefunctions['hk'] = alias(dictionary.fosefunctions['holdkey']);
  2705. dictionary.fosefunctions['isclonedform'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2706. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsClonedForm',
  2707. name: 'IsClonedForm',
  2708. shortName: 'IsCloned',
  2709. longName: 'IsClonedForm'
  2710. });
  2711. dictionary.fosefunctions['iscloned'] = alias(dictionary.fosefunctions['isclonedform']);
  2712. dictionary.fosefunctions['iscontrol'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  2713. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsControl',
  2714. name: 'IsControl'
  2715. });
  2716. dictionary.fosefunctions['iscontroldisabled'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  2717. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsControlDisabled',
  2718. name: 'IsControlDisabled'
  2719. });
  2720. dictionary.fosefunctions['iscontrolpressed'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  2721. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsControlPressed',
  2722. name: 'IsControlPressed'
  2723. });
  2724. dictionary.fosefunctions['isformvalid'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'refVar', true)], {
  2725. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsFormValid',
  2726. name: 'IsFormValid'
  2727. });
  2728. dictionary.fosefunctions['iskeydisabled'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  2729. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsKeyDisabled',
  2730. name: 'IsKeyDisabled'
  2731. });
  2732. dictionary.fosefunctions['iskeypressed'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  2733. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsKeyPressed',
  2734. name: 'IsKeyPressed'
  2735. });
  2736. dictionary.fosefunctions['ismodloaded'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('string', 'modName')], {
  2737. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsModLoaded',
  2738. name: 'IsModLoaded'
  2739. });
  2740. dictionary.fosefunctions['ispowerarmor'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2741. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsPowerArmor',
  2742. name: 'IsPowerArmor',
  2743. shortName: 'IsPA',
  2744. longName: 'IsPowerArmor'
  2745. });
  2746. dictionary.fosefunctions['ispa'] = alias(dictionary.fosefunctions['ispowerarmor']);
  2747. dictionary.fosefunctions['isreference'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'reference')], {
  2748. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsReference',
  2749. name: 'IsReference'
  2750. });
  2751. dictionary.fosefunctions['isscripted'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2752. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsScripted',
  2753. name: 'IsScripted'
  2754. });
  2755. dictionary.fosefunctions['label'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'labelID')], {
  2756. docLink: 'http://fose.silverlock.org/fose_command_doc.html#Label',
  2757. name: 'Label'
  2758. });
  2759. dictionary.fosefunctions['leftshift'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'int'), new scriptFunctionParam('int', 'int')], {
  2760. docLink: 'http://fose.silverlock.org/fose_command_doc.html#LeftShift',
  2761. name: 'LeftShift'
  2762. });
  2763. dictionary.fosefunctions['listaddform'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('ref', 'form'), new scriptFunctionParam('int', 'index', true)], {
  2764. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListAddForm',
  2765. name: 'ListAddForm'
  2766. });
  2767. dictionary.fosefunctions['listaddreference'] = new scriptFunction('int', 'R', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('int', 'index', true)], {
  2768. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListAddReference',
  2769. name: 'ListAddReference',
  2770. shortName: 'ListAddRef',
  2771. longName: 'ListAddReference'
  2772. });
  2773. dictionary.fosefunctions['listaddref'] = alias(dictionary.fosefunctions['listaddreference']);
  2774. dictionary.fosefunctions['listgetcount'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'form list')], {
  2775. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListGetCount',
  2776. name: 'ListGetCount'
  2777. });
  2778. dictionary.fosefunctions['listgetformindex'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('ref', 'form')], {
  2779. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListGetFormIndex',
  2780. name: 'ListGetFormIndex'
  2781. });
  2782. dictionary.fosefunctions['listgetnthform'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('int', 'index')], {
  2783. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListGetNthForm',
  2784. name: 'ListGetNthForm'
  2785. });
  2786. dictionary.fosefunctions['listremoveform'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('ref', 'form')], {
  2787. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListRemoveForm',
  2788. name: 'ListRemoveForm'
  2789. });
  2790. dictionary.fosefunctions['listremoventhform'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('int', 'index', true)], {
  2791. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListRemoveNthForm',
  2792. name: 'ListRemoveNthForm',
  2793. shortName: 'ListRemoveNth',
  2794. longName: 'ListRemoveNthForm'
  2795. });
  2796. dictionary.fosefunctions['listremoventh'] = alias(dictionary.fosefunctions['listremoventhform']);
  2797. dictionary.fosefunctions['listreplaceform'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('ref', 'replaceWith'), new scriptFunctionParam('ref', 'formToReplace')], {
  2798. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListReplaceForm',
  2799. name: 'ListReplaceForm'
  2800. });
  2801. dictionary.fosefunctions['listreplacenthform'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('ref', 'replaceWith'), new scriptFunctionParam('int', 'formIndex', true)], {
  2802. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListReplaceNthForm',
  2803. name: 'ListReplaceNthForm',
  2804. shortName: 'ListReplaceNth',
  2805. longName: 'ListReplaceNthForm'
  2806. });
  2807. dictionary.fosefunctions['listreplacenth'] = alias(dictionary.fosefunctions['listreplacenthform']);
  2808. dictionary.fosefunctions['log10'] = new scriptFunction('float', 'B', 1.00, [new scriptFunctionParam('float', 'float')], {
  2809. docLink: 'http://fose.silverlock.org/fose_command_doc.html#Log10',
  2810. name: 'Log10'
  2811. });
  2812. dictionary.fosefunctions['logicaland'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'int'), new scriptFunctionParam('int', 'int')], {
  2813. docLink: 'http://fose.silverlock.org/fose_command_doc.html#LogicalAnd',
  2814. name: 'LogicalAnd'
  2815. });
  2816. dictionary.fosefunctions['logicalnot'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'int')], {
  2817. docLink: 'http://fose.silverlock.org/fose_command_doc.html#LogicalNot',
  2818. name: 'LogicalNot'
  2819. });
  2820. dictionary.fosefunctions['logicalor'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'int'), new scriptFunctionParam('int', 'int')], {
  2821. docLink: 'http://fose.silverlock.org/fose_command_doc.html#LogicalOr',
  2822. name: 'LogicalOr'
  2823. });
  2824. dictionary.fosefunctions['logicalxor'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'int'), new scriptFunctionParam('int', 'int')], {
  2825. docLink: 'http://fose.silverlock.org/fose_command_doc.html#LogicalXor',
  2826. name: 'LogicalXor'
  2827. });
  2828. dictionary.fosefunctions['menuholdkey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  2829. docLink: 'http://fose.silverlock.org/fose_command_doc.html#MenuHoldKey',
  2830. name: 'MenuHoldKey',
  2831. shortName: 'mhk',
  2832. longName: 'MenuHoldKey'
  2833. });
  2834. dictionary.fosefunctions['mhk'] = alias(dictionary.fosefunctions['menuholdkey']);
  2835. dictionary.fosefunctions['menureleasekey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  2836. docLink: 'http://fose.silverlock.org/fose_command_doc.html#MenuReleaseKey',
  2837. name: 'MenuReleaseKey',
  2838. shortName: 'mrk',
  2839. longName: 'MenuReleaseKey'
  2840. });
  2841. dictionary.fosefunctions['mrk'] = alias(dictionary.fosefunctions['menureleasekey']);
  2842. dictionary.fosefunctions['menutapkey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  2843. docLink: 'http://fose.silverlock.org/fose_command_doc.html#MenuTapKey',
  2844. name: 'MenuTapKey',
  2845. shortName: 'mtk',
  2846. longName: 'MenuTapKey'
  2847. });
  2848. dictionary.fosefunctions['mtk'] = alias(dictionary.fosefunctions['menutapkey']);
  2849. dictionary.fosefunctions['printactivetile'] = new scriptFunction('void', 'B', 1.00, [], {
  2850. docLink: 'http://fose.silverlock.org/fose_command_doc.html#PrintActiveTile',
  2851. name: 'PrintActiveTile'
  2852. });
  2853. dictionary.fosefunctions['printtoconsole'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'format string'), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true)], {
  2854. docLink: 'http://fose.silverlock.org/fose_command_doc.html#PrintToConsole',
  2855. name: 'PrintToConsole',
  2856. shortName: 'printc',
  2857. longName: 'PrintToConsole'
  2858. });
  2859. dictionary.fosefunctions['printc'] = alias(dictionary.fosefunctions['printtoconsole']);
  2860. dictionary.fosefunctions['releasekey'] = new scriptFunction('FixMe', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  2861. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ReleaseKey',
  2862. name: 'ReleaseKey',
  2863. shortName: 'rk',
  2864. longName: 'ReleaseKey'
  2865. });
  2866. dictionary.fosefunctions['rk'] = alias(dictionary.fosefunctions['releasekey']);
  2867. dictionary.fosefunctions['removescript'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  2868. docLink: 'http://fose.silverlock.org/fose_command_doc.html#RemoveScript',
  2869. name: 'RemoveScript'
  2870. });
  2871. dictionary.fosefunctions['rightshift'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'int'), new scriptFunctionParam('int', 'int')], {
  2872. docLink: 'http://fose.silverlock.org/fose_command_doc.html#RightShift',
  2873. name: 'RightShift'
  2874. });
  2875. dictionary.fosefunctions['setaltcontrol'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode'), new scriptFunctionParam('int', 'scanCode')], {
  2876. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetAltControl',
  2877. name: 'SetAltControl'
  2878. });
  2879. dictionary.fosefunctions['setattackdamage'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'damage'), new scriptFunctionParam('ref', 'item', true)], {
  2880. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetAttackDamage',
  2881. name: 'SetAttackDamage',
  2882. shortName: 'SetDamage',
  2883. longName: 'SetAttackDamage'
  2884. });
  2885. dictionary.fosefunctions['setdamage'] = alias(dictionary.fosefunctions['setattackdamage']);
  2886. dictionary.fosefunctions['setbaseitemvalue'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('ref', 'form'), new scriptFunctionParam('int', 'newValue')], {
  2887. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetBaseItemValue',
  2888. name: 'SetBaseItemValue',
  2889. shortName: 'SetValue',
  2890. longName: 'SetBaseItemValue'
  2891. });
  2892. dictionary.fosefunctions['setvalue'] = alias(dictionary.fosefunctions['setbaseitemvalue']);
  2893. dictionary.fosefunctions['setcontrol'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode'), new scriptFunctionParam('int', 'scanCode')], {
  2894. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetControl',
  2895. name: 'SetControl'
  2896. });
  2897. dictionary.fosefunctions['setdebugmode'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'bEnableDebugMessages'), new scriptFunctionParam('int', 'modIndex', true)], {
  2898. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetDebugMode',
  2899. name: 'SetDebugMode',
  2900. shortName: 'DBMode',
  2901. longName: 'SetDebugMode'
  2902. });
  2903. dictionary.fosefunctions['dbmode'] = alias(dictionary.fosefunctions['setdebugmode']);
  2904. dictionary.fosefunctions['setequippedcurrenthealth'] = new scriptFunction('void', 'R', 1.00, [new scriptFunctionParam('float', 'val'), new scriptFunctionParam('int', 'equipmentSlot')], {
  2905. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetEquippedCurrentHealth',
  2906. name: 'SetEquippedCurrentHealth',
  2907. shortName: 'SetEqCurHealth',
  2908. longName: 'SetEquippedCurrentHealth'
  2909. });
  2910. dictionary.fosefunctions['seteqcurhealth'] = alias(dictionary.fosefunctions['setequippedcurrenthealth']);
  2911. dictionary.fosefunctions['setobjecthealth'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'newHealth'), new scriptFunctionParam('ref', 'form', true)], {
  2912. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetHealth',
  2913. name: 'SetObjectHealth',
  2914. shortName: 'SetHealth',
  2915. longName: 'SetObjectHealth'
  2916. });
  2917. dictionary.fosefunctions['sethealth'] = alias(dictionary.fosefunctions['setobjecthealth']);
  2918. dictionary.fosefunctions['setiscontrol'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode'), new scriptFunctionParam('int', 'isControl')], {
  2919. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetIsControl',
  2920. name: 'SetIsControl'
  2921. });
  2922. dictionary.fosefunctions['setispowerarmor'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'path type'), new scriptFunctionParam('ref', 'item', true)], {
  2923. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetIsPowerArmor',
  2924. name: 'SetIsPowerArmor',
  2925. shortName: 'SetIsPA',
  2926. longName: 'SetIsPowerArmor'
  2927. });
  2928. dictionary.fosefunctions['setispa'] = alias(dictionary.fosefunctions['setispowerarmor']);
  2929. dictionary.fosefunctions['setname'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('string', 'name'), new scriptFunctionParam('ref', 'item', true)], {
  2930. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetName',
  2931. name: 'SetName'
  2932. });
  2933. dictionary.fosefunctions['setnumericgamesetting'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'settingName'), new scriptFunctionParam('float', 'float')], {
  2934. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetNumericGameSetting',
  2935. name: 'SetNumericGameSetting'
  2936. });
  2937. dictionary.fosefunctions['setnumericinisetting'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'settingName'), new scriptFunctionParam('float', 'newValue')], {
  2938. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetNumericINISetting',
  2939. name: 'SetNumericINISetting'
  2940. });
  2941. dictionary.fosefunctions['setopenkey'] = new scriptFunction('void', 'R', 1.00, [new scriptFunctionParam('ref', 'item')], {
  2942. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetOpenKey',
  2943. name: 'SetOpenKey',
  2944. shortName: 'SetKey',
  2945. longName: 'SetOpenKey'
  2946. });
  2947. dictionary.fosefunctions['setkey'] = alias(dictionary.fosefunctions['setopenkey']);
  2948. dictionary.fosefunctions['setrepairlist'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('ref', 'target item', true)], {
  2949. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetRepairList',
  2950. name: 'SetRepairList'
  2951. });
  2952. dictionary.fosefunctions['setscript'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'scriptInRef'), new scriptFunctionParam('ref', 'item', true)], {
  2953. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetScript',
  2954. name: 'SetScript'
  2955. });
  2956. dictionary.fosefunctions['setuifloat'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'traitName'), new scriptFunctionParam('float', 'newValue')], {
  2957. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetUIFloat',
  2958. name: 'SetUIFloat'
  2959. });
  2960. dictionary.fosefunctions['setuistring'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'traitName'), new scriptFunctionParam('string', 'newValue')], {
  2961. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetUIString',
  2962. name: 'SetUIString'
  2963. });
  2964. dictionary.fosefunctions['setweaponactionpoints'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  2965. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponActionPoints',
  2966. name: 'SetWeaponActionPoints',
  2967. shortName: 'SetAP',
  2968. longName: 'SetWeaponActionPoints'
  2969. });
  2970. dictionary.fosefunctions['setap'] = alias(dictionary.fosefunctions['setweaponactionpoints']);
  2971. dictionary.fosefunctions['setweaponaimarc'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'aimArc'), new scriptFunctionParam('ref', 'item', true)], {
  2972. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponAimArc',
  2973. name: 'SetWeaponAimArc',
  2974. shortName: 'SetAimArc',
  2975. longName: 'SetWeaponAimArc'
  2976. });
  2977. dictionary.fosefunctions['setaimarc'] = alias(dictionary.fosefunctions['setweaponaimarc']);
  2978. dictionary.fosefunctions['setweaponammo'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'NewAmmoInRef'), new scriptFunctionParam('ref', 'target item', true)], {
  2979. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponAmmo',
  2980. name: 'SetWeaponAmmo',
  2981. shortName: 'SetAmmo',
  2982. longName: 'SetWeaponAmmo'
  2983. });
  2984. dictionary.fosefunctions['setammo'] = alias(dictionary.fosefunctions['setweaponammo']);
  2985. dictionary.fosefunctions['setweaponammouse'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'path type'), new scriptFunctionParam('ref', 'item', true)], {
  2986. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponAmmoUse',
  2987. name: 'SetWeaponAmmoUse',
  2988. shortName: 'SetAmmoUse',
  2989. longName: 'SetWeaponAmmoUse'
  2990. });
  2991. dictionary.fosefunctions['setammouse'] = alias(dictionary.fosefunctions['setweaponammouse']);
  2992. dictionary.fosefunctions['setweaponanimattackmult'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  2993. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponAnimAttackMult',
  2994. name: 'SetWeaponAnimAttackMult',
  2995. shortName: 'SetAnimAttackMult',
  2996. longName: 'SetWeaponAnimAttackMult'
  2997. });
  2998. dictionary.fosefunctions['setanimattackmult'] = alias(dictionary.fosefunctions['setweaponanimattackmult']);
  2999. dictionary.fosefunctions['setweaponanimmult'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  3000. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponAnimMult',
  3001. name: 'SetWeaponAnimMult',
  3002. shortName: 'SetAnimMult',
  3003. longName: 'SetWeaponAnimMult'
  3004. });
  3005. dictionary.fosefunctions['setanimmult'] = alias(dictionary.fosefunctions['setweaponanimmult']);
  3006. dictionary.fosefunctions['setweaponattackanimation'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'attackAnimation'), new scriptFunctionParam('ref', 'item', true)], {
  3007. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponAttackAnimation',
  3008. name: 'SetWeaponAttackAnimation',
  3009. shortName: 'SetAttackAnim',
  3010. longName: 'SetWeaponAttackAnimation'
  3011. });
  3012. dictionary.fosefunctions['setattackanim'] = alias(dictionary.fosefunctions['setweaponattackanimation']);
  3013. dictionary.fosefunctions['setweaponbasevatschance'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'newVATSChance'), new scriptFunctionParam('ref', 'item', true)], {
  3014. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponBaseVATSChance',
  3015. name: 'SetWeaponBaseVATSChance',
  3016. shortName: 'SetVATSChance',
  3017. longName: 'SetWeaponBaseVATSChance'
  3018. });
  3019. dictionary.fosefunctions['setvatschance'] = alias(dictionary.fosefunctions['setweaponbasevatschance']);
  3020. dictionary.fosefunctions['setweaponcliprounds'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'path type'), new scriptFunctionParam('ref', 'item', true)], {
  3021. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponClipRounds',
  3022. name: 'SetWeaponClipRounds',
  3023. shortName: 'SetClipSize',
  3024. longName: 'SetWeaponClipRounds'
  3025. });
  3026. dictionary.fosefunctions['setclipsize'] = alias(dictionary.fosefunctions['setweaponcliprounds']);
  3027. dictionary.fosefunctions['setweaponcritchance'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  3028. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponCritChance',
  3029. name: 'SetWeaponCritChance',
  3030. shortName: 'SetCritPerc',
  3031. longName: 'SetWeaponCritChance'
  3032. });
  3033. dictionary.fosefunctions['setcritperc'] = alias(dictionary.fosefunctions['setweaponcritchance']);
  3034. dictionary.fosefunctions['setweaponcritdamage'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'path type'), new scriptFunctionParam('ref', 'item', true)], {
  3035. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponCritDamage',
  3036. name: 'SetWeaponCritDamage'
  3037. });
  3038. dictionary.fosefunctions['setweaponcriteffect'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'magic item'), new scriptFunctionParam('ref', 'item', true)], {
  3039. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponCritEffect',
  3040. name: 'SetWeaponCritEffect',
  3041. shortName: 'SetCritEffect',
  3042. longName: 'SetWeaponCritEffect'
  3043. });
  3044. dictionary.fosefunctions['setcriteffect'] = alias(dictionary.fosefunctions['setweaponcriteffect']);
  3045. dictionary.fosefunctions['setweaponhandgrip'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'handGrip'), new scriptFunctionParam('ref', 'item', true)], {
  3046. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponHandGrip',
  3047. name: 'SetWeaponHandGrip',
  3048. shortName: 'SetHandGrip',
  3049. longName: 'SetWeaponHandGrip'
  3050. });
  3051. dictionary.fosefunctions['sethandgrip'] = alias(dictionary.fosefunctions['setweaponhandgrip']);
  3052. dictionary.fosefunctions['setweaponisautomatic'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'isAutomatic'), new scriptFunctionParam('ref', 'item', true)], {
  3053. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponIsAutomatic',
  3054. name: 'SetWeaponIsAutomatic',
  3055. shortName: 'SetIsAutomatic',
  3056. longName: 'SetWeaponIsAutomatic'
  3057. });
  3058. dictionary.fosefunctions['setisautomatic'] = alias(dictionary.fosefunctions['setweaponisautomatic']);
  3059. dictionary.fosefunctions['setweaponlimbdamagemult'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'limbDamageMult'), new scriptFunctionParam('ref', 'item', true)], {
  3060. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponLimbDamageMult',
  3061. name: 'SetWeaponLimbDamageMult',
  3062. shortName: 'SetLimbDamageMult',
  3063. longName: 'SetWeaponLimbDamageMult'
  3064. });
  3065. dictionary.fosefunctions['setlimbdamagemult'] = alias(dictionary.fosefunctions['setweaponlimbdamagemult']);
  3066. dictionary.fosefunctions['setweaponmaxrange'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  3067. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponMaxRange',
  3068. name: 'SetWeaponMaxRange',
  3069. shortName: 'SetMaxRange',
  3070. longName: 'SetWeaponMaxRange'
  3071. });
  3072. dictionary.fosefunctions['setmaxrange'] = alias(dictionary.fosefunctions['setweaponmaxrange']);
  3073. dictionary.fosefunctions['setweaponminrange'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  3074. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponMinRange',
  3075. name: 'SetWeaponMinRange',
  3076. shortName: 'SetMinRange',
  3077. longName: 'SetWeaponMinRange'
  3078. });
  3079. dictionary.fosefunctions['setminrange'] = alias(dictionary.fosefunctions['setweaponminrange']);
  3080. dictionary.fosefunctions['setweaponminspread'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  3081. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponMinSpread',
  3082. name: 'SetWeaponMinSpread',
  3083. shortName: 'SetMinSpread',
  3084. longName: 'SetWeaponMinSpread'
  3085. });
  3086. dictionary.fosefunctions['setminspread'] = alias(dictionary.fosefunctions['setweaponminspread']);
  3087. dictionary.fosefunctions['setweaponnumprojectiles'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'numProjectiles'), new scriptFunctionParam('ref', 'item', true)], {
  3088. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponNumProjectiles',
  3089. name: 'SetWeaponNumProjectiles',
  3090. shortName: 'SetNumProj',
  3091. longName: 'SetWeaponNumProjectiles'
  3092. });
  3093. dictionary.fosefunctions['setnumproj'] = alias(dictionary.fosefunctions['setweaponnumprojectiles']);
  3094. dictionary.fosefunctions['setweaponprojectile'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'NewProjectileInRef'), new scriptFunctionParam('ref', 'target item', true)], {
  3095. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponProjectile',
  3096. name: 'SetWeaponProjectile',
  3097. shortName: 'SetProjectile',
  3098. longName: 'SetWeaponProjectile'
  3099. });
  3100. dictionary.fosefunctions['setprojectile'] = alias(dictionary.fosefunctions['setweaponprojectile']);
  3101. dictionary.fosefunctions['setweaponreach'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'reach'), new scriptFunctionParam('ref', 'item', true)], {
  3102. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponReach',
  3103. name: 'SetWeaponReach',
  3104. shortName: 'SetReach',
  3105. longName: 'SetWeaponReach'
  3106. });
  3107. dictionary.fosefunctions['setreach'] = alias(dictionary.fosefunctions['setweaponreach']);
  3108. dictionary.fosefunctions['setweaponreloadanim'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'reloadAnim'), new scriptFunctionParam('ref', 'item', true)], {
  3109. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponReloadAnim',
  3110. name: 'SetWeaponReloadAnim',
  3111. shortName: 'SetReloadAnim',
  3112. longName: 'SetWeaponReloadAnim'
  3113. });
  3114. dictionary.fosefunctions['setreloadanim'] = alias(dictionary.fosefunctions['setweaponreloadanim']);
  3115. dictionary.fosefunctions['setweaponsightfov'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  3116. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponSightFOV',
  3117. name: 'SetWeaponSightFOV',
  3118. shortName: 'SetSightFOV',
  3119. longName: 'SetWeaponSightFOV'
  3120. });
  3121. dictionary.fosefunctions['setsightfov'] = alias(dictionary.fosefunctions['setweaponsightfov']);
  3122. dictionary.fosefunctions['setweaponsightusage'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'sightUsage'), new scriptFunctionParam('ref', 'item', true)], {
  3123. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponSightUsage',
  3124. name: 'SetWeaponSightUsage',
  3125. shortName: 'SetSightUsage',
  3126. longName: 'SetWeaponSightUsage'
  3127. });
  3128. dictionary.fosefunctions['setsightusage'] = alias(dictionary.fosefunctions['setweaponsightusage']);
  3129. dictionary.fosefunctions['setweaponspread'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  3130. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponSpread',
  3131. name: 'SetWeaponSpread',
  3132. shortName: 'SetSpread',
  3133. longName: 'SetWeaponSpread'
  3134. });
  3135. dictionary.fosefunctions['setspread'] = alias(dictionary.fosefunctions['setweaponspread']);
  3136. dictionary.fosefunctions['setweapontype'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'weaponType'), new scriptFunctionParam('ref', 'item', true)], {
  3137. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponType',
  3138. name: 'SetWeaponType'
  3139. });
  3140. dictionary.fosefunctions['setweight'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  3141. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeight',
  3142. name: 'SetWeight'
  3143. });
  3144. dictionary.fosefunctions['tapcontrol'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  3145. docLink: 'http://fose.silverlock.org/fose_command_doc.html#TapControl',
  3146. name: 'TapControl',
  3147. shortName: 'tc',
  3148. longName: 'TapControl'
  3149. });
  3150. dictionary.fosefunctions['tc'] = alias(dictionary.fosefunctions['tapcontrol']);
  3151. dictionary.fosefunctions['tapkey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  3152. docLink: 'http://fose.silverlock.org/fose_command_doc.html#TapKey',
  3153. name: 'TapKey',
  3154. shortName: 'tk',
  3155. longName: 'TapKey'
  3156. });
  3157. dictionary.fosefunctions['tk'] = alias(dictionary.fosefunctions['tapkey']);
  3158. dictionary.fosefunctions['tempcloneform'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'formToClone', true)], {
  3159. docLink: 'http://fose.silverlock.org/fose_command_doc.html#TempCloneForm',
  3160. name: 'TempCloneForm'
  3161. });
  3162. dictionary.fosefunctions['getcurrenthealth'] = new scriptFunction('float', 'R', 1.2, []);
  3163. dictionary.fosefunctions['setcurrenthealth'] = new scriptFunction('void', 'E', 1.2, [new scriptFunctionParam('float', 'health'), new scriptFunctionParam('ref', 'form', true)]);
  3164. dictionary.fosefunctions['rand'] = new scriptFunction('float', 'B', 1.2, [new scriptFunctionParam('float', 'min'), new scriptFunctionParam('float', 'max')]);
  3165. dictionary.fosefunctions['getnumitems'] = new scriptFunction('int', 'R', 1.2, []);
  3166. dictionary.fosefunctions['getinventoryobject'] = new scriptFunction('ref', 'R', 1.2, [new scriptFunctionParam('int', 'idx')]);
  3167. } {
  3168. dictionary.newvegasfunctions = combineObjects([dictionary.fallout3functions]);
  3169. } {
  3170. dictionary.nvsefunctions = combineObjects([dictionary.fosefunctions]);
  3171. }
  3172. dictionary.functions = combineObjects([dictionary.fallout3functions, dictionary.fosefunctions]);function variable(varName, type) {
  3173. this.varName = varName;
  3174. this.type = type;
  3175. this.sets = 0;
  3176. this.checks = 0;
  3177. }
  3178.  
  3179. function editorID(type) {
  3180. this.type = type;
  3181. }
  3182.  
  3183. function blocktype(scriptType, names) {
  3184. this.scriptType = scriptType;
  3185. this.docLink = names.docLink == undefined ? '' : names.docLink;
  3186. this.name = names.name == undefined ? '' : names.name
  3187. }
  3188.  
  3189. function scriptFunction(returnType, callingConvention, SEVersion, params, names, notes) {
  3190. if (returnType != undefined)
  3191. this.returnType = returnType;
  3192. if (callingConvention in {
  3193. 'R': 1,
  3194. 'S': 1,
  3195. 'E': 1,
  3196. 'B': 1,
  3197. 'D': 1
  3198. })
  3199. this.callingConvention = callingConvention;
  3200. if (SEVersion != undefined)
  3201. this.SEVersion = SEVersion;
  3202. if (params != undefined)
  3203. this.params = params;
  3204. if (names != undefined) {
  3205. this.docLink = names.docLink;
  3206. this.name = names.name;
  3207. this.shortName = names.shortName;
  3208. this.longName = names.longName;
  3209. }
  3210. if (notes != undefined)
  3211. this.notes = notes;
  3212. }
  3213.  
  3214. function alias(functionDef) {
  3215. return new scriptFunction(functionDef.returnType, functionDef.callingConvention, functionDef.SEVersion, functionDef.params, {
  3216. docLink: functionDef.docLink,
  3217. name: functionDef.shortName,
  3218. shortName: functionDef.shortName,
  3219. longName: functionDef.longName
  3220. }, functionDef.notes);
  3221. }
  3222.  
  3223. function scriptFunctionParam(dataType, name, optional, values, deprecated) {
  3224. this.dataType = dataType;
  3225. this.name = name;
  3226. this.optional = optional != undefined && optional != false;
  3227. this.values = values != undefined ? values : false;
  3228. this.deprecated = deprecated != undefined && deprecated != false;
  3229. }
  3230.  
  3231. function scriptFunctionNote(condition, content, level) {
  3232. this.condition = condition;
  3233. this.content = content;
  3234. this.level = level;
  3235. }
  3236. dictionary = {
  3237. keywords: {},
  3238. fallout3blocktypes: {},
  3239. newvegasblocktypes: {},
  3240. blocktypes: {},
  3241. values: {},
  3242. fallout3functions: {},
  3243. fosefunctions: {},
  3244. newvegasfunctions: {},
  3245. nvsefunctions: {},
  3246. functions: {}
  3247. } {
  3248. dictionary.keywords['to'] = {
  3249. type: '2',
  3250. name: 'to'
  3251. };
  3252. dictionary.keywords['return'] = {
  3253. type: '2',
  3254. name: 'Return',
  3255. non_contextual_errors: []
  3256. }
  3257. dictionary.keywords['return'].non_contextual_errors[''] = /^(;(.*))?$/;
  3258. dictionary.keywords['return'].non_contextual_errors['Condition not allowed'] = /^[^;]+(;(.*))?$/;
  3259. dictionary.keywords['scriptname'] = {
  3260. type: '1',
  3261. name: 'ScriptName',
  3262. longName: 'ScriptName',
  3263. shortName: 'scn',
  3264. non_contextual_errors: []
  3265. }
  3266. dictionary.keywords['scriptname'].non_contextual_errors[''] = /^([^\d\W]\w*)\s*(;(.*))?$/;
  3267. dictionary.keywords['scriptname'].non_contextual_errors['EditorID missing'] = /^(;(.*))?$/;
  3268. dictionary.keywords['scriptname'].non_contextual_errors['Multiple editorIDs'] = /^[^\s;]+(\s+[^\s;]+)+\s*(;(.*))?$/;
  3269. dictionary.keywords['scriptname'].non_contextual_errors['EditorID starts with a number'] = /^\d\w*\s*(;(.*))?$/;
  3270. dictionary.keywords['scriptname'].non_contextual_errors['EditorID contains invalid character'] = /^(\w*[^\s\w;])+\w*\s*(;(.*))?$/;
  3271. dictionary.keywords['scriptname'].contextual_validate = function (script) {
  3272. switch (script.hasScriptName) {
  3273. case 1:
  3274. script.pushError('Script already has a ScriptName declaration');
  3275. break;
  3276. case 2:
  3277. script.pushError('ScriptName declaration must take place before any valid code');
  3278. default:
  3279. script.hasScriptName = 1;
  3280. }
  3281. if (script.scriptType & 1)
  3282. script.scriptType--;
  3283. if (script.isValid == true) {
  3284. var scriptName = script.input[script.lineNumber].match(/^\s*\w+\s+(\w+)/);
  3285. if (scriptName != null)
  3286. scriptName = scriptName[1];
  3287. else
  3288. return; if (!(scriptName.toLowerCase() in script.editorIDs)) {
  3289. if (scriptName.toLowerCase() in script.variables['#local'] || scriptName.toLowerCase() in script.variables['#global'])
  3290. script.pushError('"' + scriptName + '" is a variable name, so cannot be used as an editorID');
  3291. else if (scriptName.toLowerCase() in dictionary.keywords)
  3292. script.pushError('"' + scriptName + '" is a keyword');
  3293. else if (scriptName.toLowerCase() in dictionary.functions)
  3294. script.pushError('"' + scriptName + '" is a function');
  3295. else
  3296. script.editorIDs[scriptName.toLowerCase()] = new editorID('SCPT');
  3297. }
  3298. }
  3299. }
  3300. dictionary.keywords['scn'] = {
  3301. type: '1',
  3302. name: 'scn',
  3303. longName: 'ScriptName',
  3304. shortName: 'scn',
  3305. non_contextual_errors: dictionary.keywords['scriptname'].non_contextual_errors,
  3306. contextual_validate: dictionary.keywords['scriptname'].contextual_validate
  3307. }
  3308. dictionary.keywords['begin'] = {
  3309. type: '1',
  3310. name: 'Begin',
  3311. non_contextual_errors: []
  3312. }
  3313. dictionary.keywords['begin'].non_contextual_errors[''] = /^[^\s;]+(\s+[^\s;]+)*\s*(;(.*))?$/;
  3314. dictionary.keywords['begin'].non_contextual_errors['Blocktype missing'] = /^(;(.*))?$/;
  3315. dictionary.keywords['begin'].contextual_validate = function (script) {
  3316. if (script.inBlock != '') {
  3317. script.pushError('Begin statement illegal within Begin/End block');
  3318. if (script.conditionalLevel) {
  3319. script.pushError(script.conditionalLevel + ' endif statement' + (script.conditionalLevel > 1 ? 's' : '') + ' missing in block ' + script.blockNumber);
  3320. script.conditionalLevel = 0;
  3321. }
  3322. }
  3323. script.indentIncrement = -1;
  3324. var blocktype = script.input[script.lineNumber].match(/^\s*begin\s+(\w+)/i);
  3325. blocktype = blocktype == null ? 'unknown' : blocktype[1].toLowerCase();
  3326. script.inBlock = blocktype;
  3327. if (script.isValid == true) {
  3328. if (!(blocktype in dictionary.blocktypes))
  3329. script.pushError('Invalid blocktype');
  3330. else {
  3331. var availableScriptTypes = 14 & dictionary.blocktypes[blocktype].scriptType;
  3332. if (script.scriptType & availableScriptTypes)
  3333. script.scriptType &= availableScriptTypes
  3334. else
  3335. script.pushError('Blocktype invalid for this type of script');
  3336. }
  3337. }
  3338. if (script.scriptType & 1)
  3339. script.scriptType--;
  3340. script.blockNumber++;
  3341. }
  3342. dictionary.keywords['end'] = {
  3343. type: '1',
  3344. name: 'End',
  3345. non_contextual_errors: []
  3346. }
  3347. dictionary.keywords['end'].non_contextual_errors[''] = /^(;(.*))?$/;
  3348. dictionary.keywords['end'].non_contextual_errors['Condition not allowed'] = /^[^;]+(;(.*))?$/;
  3349. dictionary.keywords['end'].contextual_validate = function (script) {
  3350. if (script.inBlock == '')
  3351. script.pushError('End statement illegal outside Begin/End block');
  3352. else
  3353. script.inBlock = ''; if (script.conditionalLevel) {
  3354. script.pushError(script.conditionalLevel + ' endif statement' + (script.conditionalLevel > 1 ? 's' : '') + ' missing');
  3355. script.conditionalLevel = 0;
  3356. }
  3357. if (script.scriptType & 1)
  3358. script.scriptType--;
  3359. }
  3360. dictionary.keywords['if'] = {
  3361. type: '1',
  3362. name: 'if',
  3363. non_contextual_errors: []
  3364. }
  3365. dictionary.keywords['if'].non_contextual_errors[''] = /^[^;]+(;(.*))?$/;
  3366. dictionary.keywords['if'].non_contextual_errors['Condition missing'] = /^(;(.*))?$/;
  3367. dictionary.keywords['if'].contextual_validate = function (script) {
  3368. script.conditionalLevel++;
  3369. script.indentIncrement = -1;
  3370. script.elseDone[script.conditionalLevel] = 0;
  3371. if (script.conditionalLevel > 10)
  3372. script.pushError('Too many nested if statements');
  3373. if (script.isValid == true)
  3374. validateExpression(script.input[script.lineNumber].replace(/^\s*if\s*/i, "").match(/^([^\s]*(\s*([^"';\s]*|"[^"]*?"|'[^']*?'))*)\s*(;(.*))?$/)[1]);
  3375. }
  3376. dictionary.keywords['elseif'] = {
  3377. type: '1',
  3378. name: 'elseif',
  3379. non_contextual_errors: dictionary.keywords['if'].non_contextual_errors
  3380. }
  3381. dictionary.keywords['elseif'].contextual_validate = function (script) {
  3382. if (script.conditionalLevel)
  3383. script.indentIncrement = -1;
  3384. else {
  3385. script.conditionalLevel = 1;
  3386. script.pushError('elseif statement invalid without preceeding if statement');
  3387. }
  3388. if (script.elseDone[script.conditionalLevel])
  3389. script.pushError('elseif statement invalid after else statement on line ' + script.elseDone[script.conditionalLevel]);
  3390. if (script.isValid == true)
  3391. validateExpression(script.input[script.lineNumber].replace(/^\s*elseif\s*/i, "").match(/^([^\s]*(\s*([^"';\s]*|"[^"]*?"|'[^']*?'))*)\s*(;(.*))?$/)[1]);
  3392. }
  3393. dictionary.keywords['else'] = {
  3394. type: '1',
  3395. name: 'else',
  3396. non_contextual_errors: dictionary.keywords['end'].non_contextual_errors
  3397. }
  3398. dictionary.keywords['else'].contextual_validate = function (script) {
  3399. if (script.conditionalLevel)
  3400. script.indentIncrement = -1;
  3401. else {
  3402. script.conditionalLevel = 1;
  3403. script.pushError('else statement invalid without preceeding if statement');
  3404. }
  3405. if (script.elseDone[script.conditionalLevel])
  3406. script.pushError('else statement invalid after else statement on line ' + script.elseDone[script.conditionalLevel]);
  3407. else
  3408. script.elseDone[script.conditionalLevel] = script.lineNumber;
  3409. }
  3410. dictionary.keywords['endif'] = {
  3411. type: '1',
  3412. name: 'endif',
  3413. non_contextual_errors: dictionary.keywords['else'].non_contextual_errors
  3414. }
  3415. dictionary.keywords["endif"].contextual_validate = function (script) {
  3416. if (script.conditionalLevel)
  3417. script.conditionalLevel--;
  3418. else
  3419. script.pushError('endif statement invalid without preceeding if statement');
  3420. }
  3421. dictionary.keywords['set'] = {
  3422. type: '2',
  3423. name: 'set',
  3424. non_contextual_errors: []
  3425. }
  3426. dictionary.keywords['set'].non_contextual_errors[''] = /^([^\d\W]\w*\.)?\w+\s+to\s+[^;]+(;(.*))?$/i;
  3427. dictionary.keywords['set'].non_contextual_errors['EditorID starts with a number'] = /^\d[^\s;]*\.\w+\s+to\s+[^;]+\s*(;(.*))?$/i;
  3428. dictionary.keywords['set'].non_contextual_errors['EditorID contains invalid character'] = /^[^\s;]+\.\w+\s+to\s+[^;]+\s*(;(.*))?$/i;
  3429. dictionary.keywords['set'].non_contextual_errors['Invalid variable name'] = /^[^\s;]+\s+to\s+[^;]+\s*(;(.*))?$/i;
  3430. dictionary.keywords['set'].non_contextual_errors['Variable name missing'] = /^(to\s+[^;]*)?\s*(;(.*))?$/i;
  3431. dictionary.keywords['set'].non_contextual_errors['Expression missing'] = /^[^\s;]+(\.\w+)?\s+to\s*(;(.*))?$/i;
  3432. dictionary.keywords['set'].non_contextual_errors['"to" missing'] = /^[^\s;]+(\.\w+)?(\s+[^\s;]+)*\s*(;(.*))?$/i;
  3433. dictionary.keywords['set'].contextual_validate = function (script) {
  3434. var incrSets;
  3435. if (script.isValid == true) {
  3436. var ID = script.input[script.lineNumber].match(/^\s*set\s+((\w+)\.)?(\w+)\s+to\s+([^;])+(;(.*))?$/i)[2];
  3437. var varName = script.input[script.lineNumber].match(/^\s*set\s+((\w+)\.)?(\w+)\s+to\s+([^;])+(;(.*))?$/i)[3];
  3438. if (ID != undefined && ID != '') {
  3439. if (!(ID.toLowerCase() in script.editorIDs)) {
  3440. if (ID.toLowerCase() in script.variables['#local'] || ID.toLowerCase() in script.variables['#global'])
  3441. script.pushError('"' + ID + '" is a variable name, so cannot be used as an editorID');
  3442. else if (ID.toLowerCase() in dictionary.keywords)
  3443. script.pushError('"' + ID + '" is a keyword');
  3444. else
  3445. script.editorIDs[ID.toLowerCase()] = new editorID();
  3446. }
  3447. }
  3448. if (varName.toLowerCase() in script.variables['#local'] == false || (ID != undefined && ID != '')) {
  3449. if (varName.toLowerCase() in script.editorIDs)
  3450. script.pushError('"' + varName + '" is an editorID for a non-global form');
  3451. else if (varName.toLowerCase() in dictionary.keywords)
  3452. script.pushError('"' + varName + '" is a keyword');
  3453. else if (varName.toLowerCase() in dictionary.functions)
  3454. script.pushError('"' + varName + '" is a function');
  3455. else if (ID == undefined && !(varName in script.variables['#global'])) {
  3456. script.variables['#global'][varName.toLowerCase()] = new variable(varName);
  3457. script.pushWarning('"' + varName + '" is not declared in this script. Make sure it is a global variable')
  3458. } else {
  3459. if (ID == 'constructor')
  3460. ID = '#constructor';
  3461. if (!(ID in script.variables))
  3462. script.variables[ID] = {};
  3463. script.variables[ID][varName.toLowerCase()] = new variable(varName);
  3464. }
  3465. } else if (varName.toLowerCase() in script.variables['#local'])
  3466. incrSets = 1;
  3467. if (script.isValid == true)
  3468. validateExpression(script.input[script.lineNumber].replace(/^\s*set\s+([^\W\d]\w+\.)?\w+\s+to\s*/i, "").match(/^([^\s]*(\s*([^"';\s]*|"[^"]*?"|'[^']*?'))*)\s*(;(.*))?$/)[1]);
  3469. if (incrSets == 1)
  3470. script.variables['#local'][varName.toLowerCase()].sets++;
  3471. }
  3472. }
  3473. dictionary.keywords['int'] = {
  3474. type: '2',
  3475. name: 'int',
  3476. non_contextual_errors: []
  3477. }
  3478. dictionary.keywords['int'].contextual_validate = function (script) {
  3479. if (script.inBlock != '') {
  3480. script.pushError('Variable declaration illegal within Begin/End block');
  3481. }
  3482. var varName = trim(script.input[script.lineNumber]).replace(/^\w+\s+/, "").replace(/\s*(;(.*))?$/, "");
  3483. if (script.isValid == true) {
  3484. if (varName.toLowerCase() in script.variables['#local'])
  3485. script.pushError('Variable "' + varName + '" has already been declared');
  3486. else if (varName.toLowerCase() in script.variables['#global'])
  3487. script.pushError('"' + varName + '" is the name of a global variable');
  3488. else if (varName.toLowerCase() in dictionary.keywords)
  3489. script.pushError('"' + varName + '" is a keyword');
  3490. else if (varName.toLowerCase() in script.editorIDs)
  3491. script.pushError('"' + varName + '" is an editorID for a non-global form');
  3492. else
  3493. script.variables['#local'][varName.toLowerCase()] = new variable(varName, 'int');
  3494. }
  3495. }
  3496. dictionary.keywords['int'].non_contextual_errors[''] = /^\w*[^\W\d]+\w*\s*(;(.*))?$/;
  3497. dictionary.keywords['int'].non_contextual_errors['Variable name missing'] = /^(;(.*))?$/;
  3498. dictionary.keywords['int'].non_contextual_errors['Variable name cannot be a number'] = /^\d+\s*(;(.*))?$/;
  3499. dictionary.keywords['int'].non_contextual_errors['Multiple variable names'] = /^[^\s;]+(\s+[^\s;]+)+\s*(;(.*))?$/;
  3500. dictionary.keywords['int'].non_contextual_errors['Variable name contains invalid character'] = /^(\w*[^\s\w;])+\w*\s*(;(.*))?$/;
  3501. dictionary.keywords['short'] = {
  3502. type: '2',
  3503. name: 'short',
  3504. shortName: 'int',
  3505. non_contextual_errors: dictionary.keywords['int'].non_contextual_errors,
  3506. contextual_validate: dictionary.keywords['int'].contextual_validate
  3507. }
  3508. dictionary.keywords['long'] = {
  3509. type: '2',
  3510. name: 'int',
  3511. shortName: 'int',
  3512. non_contextual_errors: dictionary.keywords['int'].non_contextual_errors,
  3513. contextual_validate: dictionary.keywords['int'].contextual_validate
  3514. }
  3515. dictionary.keywords['float'] = {
  3516. type: '2',
  3517. name: 'float',
  3518. non_contextual_errors: dictionary.keywords['int'].non_contextual_errors
  3519. }
  3520. dictionary.keywords['float'].contextual_validate = function (script) {
  3521. if (script.inBlock != '') {
  3522. script.pushError('Variable declaration illegal within Begin/End block');
  3523. }
  3524. var varName = trim(script.input[script.lineNumber]).replace(/^\w+\s+/, '').replace(/\s*(;(.*))?$/, '');
  3525. if (script.isValid == true) {
  3526. if (varName.toLowerCase() in script.variables['#local'])
  3527. script.pushError('Variable "' + varName + '" has already been declared');
  3528. else if (varName.toLowerCase() in script.variables['#global'])
  3529. script.pushError('"' + varName + '" is the name of a global variable');
  3530. else if (varName.toLowerCase() in dictionary.keywords)
  3531. script.pushError('"' + varName + '" is a keyword');
  3532. else if (varName.toLowerCase() in script.editorIDs)
  3533. script.pushError('"' + varName + '" is an editorID for a non-global form');
  3534. else
  3535. script.variables['#local'][varName.toLowerCase()] = new variable(varName, 'float');
  3536. }
  3537. }
  3538. dictionary.keywords['ref'] = {
  3539. type: '2',
  3540. name: 'ref',
  3541. non_contextual_errors: dictionary.keywords['int'].non_contextual_errors
  3542. }
  3543. dictionary.keywords['ref'].contextual_validate = function (script) {
  3544. if (script.inBlock != '') {
  3545. script.pushError('Variable declaration illegal within Begin/End block');
  3546. }
  3547. var varName = trim(script.input[script.lineNumber]).replace(/^\w+\s+/, '').replace(/\s*(;(.*))?$/, '');
  3548. if (script.isValid == true) {
  3549. if (varName.toLowerCase() in script.variables['#local'])
  3550. script.pushError('Variable "' + varName + '" has already been declared');
  3551. else if (varName.toLowerCase() in script.variables['#global'])
  3552. script.pushError('"' + varName + '" is the name of a global variable');
  3553. else if (varName.toLowerCase() in dictionary.keywords)
  3554. script.pushError('"' + varName + '" is a keyword');
  3555. else if (varName.toLowerCase() in script.editorIDs)
  3556. script.pushError('"' + varName + '" is an editorID for a non-global form');
  3557. else
  3558. script.variables['#local'][varName.toLowerCase()] = new variable(varName, 'ref');
  3559. }
  3560. }
  3561. dictionary.keywords['reference'] = {
  3562. type: '2',
  3563. name: 'reference',
  3564. shortName: 'ref',
  3565. non_contextual_errors: dictionary.keywords['ref'].non_contextual_errors,
  3566. contextual_validate: dictionary.keywords['ref'].contextual_validate
  3567. }
  3568. } {
  3569. {
  3570. dictionary.fallout3blocktypes['gamemode'] = new blocktype(7, {
  3571. docLink: 'http://geck.bethsoft.com/index.php/GameMode',
  3572. name: 'GameMode'
  3573. });
  3574. dictionary.fallout3blocktypes['menumode'] = new blocktype(7, {
  3575. docLink: 'http://geck.bethsoft.com/index.php/MenuMode',
  3576. name: 'MenuMode'
  3577. });
  3578. dictionary.fallout3blocktypes['onactivate'] = new blocktype(4, {
  3579. docLink: 'http://geck.bethsoft.com/index.php/OnActivate',
  3580. name: 'OnActivate'
  3581. });
  3582. dictionary.fallout3blocktypes['onactorequip'] = new blocktype(4, {
  3583. docLink: 'http://geck.bethsoft.com/index.php/OnActorEquip',
  3584. name: 'OnActorEquip'
  3585. });
  3586. dictionary.fallout3blocktypes['onactorunequip'] = new blocktype(4, {
  3587. docLink: 'http://geck.bethsoft.com/index.php/OnActorUnequip',
  3588. name: 'OnActorUnequip'
  3589. });
  3590. dictionary.fallout3blocktypes['onadd'] = new blocktype(4, {
  3591. docLink: 'http://geck.bethsoft.com/index.php/OnAdd',
  3592. name: 'OnAdd'
  3593. });
  3594. dictionary.fallout3blocktypes['onclose'] = new blocktype(4, {
  3595. docLink: 'http://geck.bethsoft.com/index.php/OnClose',
  3596. name: 'OnClose'
  3597. });
  3598. dictionary.fallout3blocktypes['oncombatend'] = new blocktype(4, {
  3599. docLink: 'http://geck.bethsoft.com/index.php/OnCombatEnd',
  3600. name: 'OnCombatEnd'
  3601. });
  3602. dictionary.fallout3blocktypes['ondeath'] = new blocktype(4, {
  3603. docLink: 'http://geck.bethsoft.com/index.php/OnDeath',
  3604. name: 'OnDeath'
  3605. });
  3606. dictionary.fallout3blocktypes['ondestructionstagechange'] = new blocktype(4, {
  3607. docLink: 'http://geck.bethsoft.com/index.php/OnDestructionStageChange',
  3608. name: 'OnDestructionStageChange'
  3609. });
  3610. dictionary.fallout3blocktypes['ondrop'] = new blocktype(4, {
  3611. docLink: 'http://geck.bethsoft.com/index.php/OnDrop',
  3612. name: 'OnDrop'
  3613. });
  3614. dictionary.fallout3blocktypes['onequip'] = new blocktype(4, {
  3615. docLink: 'http://geck.bethsoft.com/index.php/OnEquip',
  3616. name: 'OnEquip'
  3617. });
  3618. dictionary.fallout3blocktypes['ongrab'] = new blocktype(4, {
  3619. docLink: 'http://geck.bethsoft.com/index.php/OnGrab',
  3620. name: 'OnGrab'
  3621. });
  3622. dictionary.fallout3blocktypes['onhit'] = new blocktype(4, {
  3623. docLink: 'http://geck.bethsoft.com/index.php/OnHit',
  3624. name: 'OnHit'
  3625. });
  3626. dictionary.fallout3blocktypes['onhitwith'] = new blocktype(4, {
  3627. docLink: 'http://geck.bethsoft.com/index.php/OnHitWith',
  3628. name: 'OnHitWith'
  3629. });
  3630. dictionary.fallout3blocktypes['onload'] = new blocktype(4, {
  3631. docLink: 'http://geck.bethsoft.com/index.php/OnLoad',
  3632. name: 'OnLoad'
  3633. });
  3634. dictionary.fallout3blocktypes['onmagiceffecthit'] = new blocktype(4, {
  3635. docLink: 'http://geck.bethsoft.com/index.php/OnMagicEffectHit',
  3636. name: 'OnMagicEffectHit'
  3637. });
  3638. dictionary.fallout3blocktypes['onmurder'] = new blocktype(4, {
  3639. docLink: 'http://geck.bethsoft.com/index.php/OnMurder',
  3640. name: 'OnMurder'
  3641. });
  3642. dictionary.fallout3blocktypes['onopen'] = new blocktype(4, {
  3643. docLink: 'http://geck.bethsoft.com/index.php/OnOpen',
  3644. name: 'OnOpen'
  3645. });
  3646. dictionary.fallout3blocktypes['onpackagechange'] = new blocktype(4, {
  3647. docLink: 'http://geck.bethsoft.com/index.php/OnPackageChange',
  3648. name: 'OnPackageChange'
  3649. });
  3650. dictionary.fallout3blocktypes['onpackagedone'] = new blocktype(4, {
  3651. docLink: 'http://geck.bethsoft.com/index.php/OnPackageDone',
  3652. name: 'OnPackageDone'
  3653. });
  3654. dictionary.fallout3blocktypes['onpackagestart'] = new blocktype(4, {
  3655. docLink: 'http://geck.bethsoft.com/index.php/OnPackageStart',
  3656. name: 'OnPackageStart'
  3657. });
  3658. dictionary.fallout3blocktypes['onrelease'] = new blocktype(4, {
  3659. docLink: 'http://geck.bethsoft.com/index.php/OnRelease',
  3660. name: 'OnRelease'
  3661. });
  3662. dictionary.fallout3blocktypes['onreset'] = new blocktype(4, {
  3663. docLink: 'http://geck.bethsoft.com/index.php/OnReset',
  3664. name: 'OnReset'
  3665. });
  3666. dictionary.fallout3blocktypes['onsell'] = new blocktype(4, {
  3667. docLink: 'http://geck.bethsoft.com/index.php/OnSell',
  3668. name: 'OnSell'
  3669. });
  3670. dictionary.fallout3blocktypes['onstartcombat'] = new blocktype(4, {
  3671. docLink: 'http://geck.bethsoft.com/index.php/OnStartCombat',
  3672. name: 'OnStartCombat'
  3673. });
  3674. dictionary.fallout3blocktypes['ontrigger'] = new blocktype(4, {
  3675. docLink: 'http://geck.bethsoft.com/index.php/OnTrigger',
  3676. name: 'OnTrigger'
  3677. });
  3678. dictionary.fallout3blocktypes['ontriggerenter'] = new blocktype(4, {
  3679. docLink: 'http://geck.bethsoft.com/index.php/OnTriggerEnter',
  3680. name: 'OnTriggerEnter'
  3681. });
  3682. dictionary.fallout3blocktypes['ontriggerleave'] = new blocktype(4, {
  3683. docLink: 'http://geck.bethsoft.com/index.php/OnTriggerLeave',
  3684. name: 'OnTriggerLeave'
  3685. });
  3686. dictionary.fallout3blocktypes['onunequip'] = new blocktype(4, {
  3687. docLink: 'http://geck.bethsoft.com/index.php/OnUnequip',
  3688. name: 'OnUnequip'
  3689. });
  3690. dictionary.fallout3blocktypes['saytodone'] = new blocktype(6, {
  3691. docLink: 'http://geck.bethsoft.com/index.php/SayToDone',
  3692. name: 'SayToDone'
  3693. });
  3694. dictionary.fallout3blocktypes['scripteffectfinish'] = new blocktype(8, {
  3695. docLink: 'http://geck.bethsoft.com/index.php/ScriptEffectFinish',
  3696. name: 'ScriptEffectFinish'
  3697. });
  3698. dictionary.fallout3blocktypes['scripteffectstart'] = new blocktype(8, {
  3699. docLink: 'http://geck.bethsoft.com/index.php/ScriptEffectStart',
  3700. name: 'ScriptEffectStart'
  3701. });
  3702. dictionary.fallout3blocktypes['scripteffectupdate'] = new blocktype(8, {
  3703. docLink: 'http://geck.bethsoft.com/index.php/ScriptEffectUpdate',
  3704. name: 'ScriptEffectUpdate'
  3705. });
  3706. } {
  3707. dictionary.newvegasblocktypes = combineObjects([dictionary.fallout3blocktypes]);
  3708. }
  3709. dictionary.blocktypes = combineObjects([dictionary.fallout3blocktypes]);
  3710. } {
  3711. dictionary.values.attributes = {
  3712. strength: 'Strength',
  3713. perception: 'Perception',
  3714. endurance: 'Endurance',
  3715. charisma: 'Charisma',
  3716. intelligence: 'Intelligence',
  3717. agility: 'Agility',
  3718. luck: 'Luck'
  3719. }
  3720. dictionary.values.skills = {
  3721. barter: 'Barter',
  3722. bigguns: 'BigGuns',
  3723. energyweapons: 'EnergyWeapons',
  3724. explosives: 'Explosives',
  3725. lockpick: 'Lockpick',
  3726. medicine: 'Medicine',
  3727. meleeweapons: 'MeleeWeapons',
  3728. repair: 'Repair',
  3729. science: 'Science',
  3730. smallguns: 'SmallGuns',
  3731. sneak: 'Sneak',
  3732. speech: 'Speech',
  3733. throwing: 'Throwing',
  3734. unarmed: 'Unarmed'
  3735. }
  3736. dictionary.values.actorValues = {
  3737. actionpoints: 'ActionPoints',
  3738. carryweight: 'CarryWeight',
  3739. critchance: 'CritChance',
  3740. healrate: 'HealRate',
  3741. health: 'Health',
  3742. meleedamage: 'MeleeDamage',
  3743. unarmeddamage: 'UnarmedDamage',
  3744. damageresist: 'DamageResist',
  3745. poisonresist: 'PoisonResist',
  3746. radresist: 'RadResist',
  3747. speedmult: 'SpeedMult',
  3748. fatigue: 'Fatigue',
  3749. karma: 'Karma',
  3750. xp: 'XP',
  3751. perceptioncondition: 'PerceptionCondition',
  3752. endurancecondition: 'EnduranceCondition',
  3753. leftattackcondition: 'LeftAttackCondition',
  3754. rightattackcondition: 'RightAttackCondition',
  3755. leftmobilitycondition: 'LeftMobilityCondition',
  3756. rightmobilitycondition: 'RightMobilityCondition',
  3757. braincondition: 'BrainCondition',
  3758. aggression: 'Aggression',
  3759. assistance: 'Assistance',
  3760. confidence: 'Confidence',
  3761. energy: 'Energy',
  3762. responsibility: 'Responsibility',
  3763. mood: 'Mood',
  3764. inventoryweight: 'InventoryWeight',
  3765. paralysis: 'Paralysis',
  3766. invisibility: 'Invisibility',
  3767. chameleon: 'Chameleon',
  3768. nighteye: 'NightEye',
  3769. detectliferange: 'DetectLifeRange',
  3770. fireresist: 'FireResist',
  3771. waterbreathing: 'WaterBreathing',
  3772. radiationrads: 'RadiationRads',
  3773. bloodymess: 'BloodyMess',
  3774. ignorecrippledlimbs: 'IgnoreCrippledLimbs',
  3775. variable01: 'Variable01',
  3776. variable02: 'Variable02',
  3777. variable03: 'Variable03',
  3778. variable04: 'Variable04',
  3779. variable05: 'Variable05',
  3780. variable06: 'Variable06',
  3781. variable07: 'Variable07',
  3782. variable08: 'Variable08',
  3783. variable09: 'Variable09',
  3784. variable10: 'Variable10'
  3785. };
  3786. dictionary.values.actorValues = combineObjects([dictionary.values.attributes, dictionary.values.skills, dictionary.values.actorValues])
  3787. dictionary.values.axes = {
  3788. x: 'X',
  3789. y: 'Y',
  3790. z: 'Z'
  3791. };
  3792. dictionary.values.menuModes = {
  3793. 0: '0',
  3794. 1: '1',
  3795. 2: '2',
  3796. 3: '3',
  3797. 1001: '1001',
  3798. 1002: '1002',
  3799. 1003: '1003',
  3800. 1004: '1004',
  3801. 1007: '1007',
  3802. 1008: '1008',
  3803. 1009: '1009',
  3804. 1012: '1012',
  3805. 1013: '1013',
  3806. 1014: '1014',
  3807. 1016: '1016',
  3808. 1023: '1023',
  3809. 1027: '1027',
  3810. 1035: '1035',
  3811. 1036: '1036',
  3812. 1047: '1047',
  3813. 1048: '1048',
  3814. 1051: '1051',
  3815. 1053: '1053',
  3816. 1054: '1054',
  3817. 1055: '1055',
  3818. 1056: '1056',
  3819. 1057: '1057',
  3820. 1058: '1058',
  3821. 1059: '1059',
  3822. 1060: '1060'
  3823. };
  3824. } {
  3825. dictionary.fallout3functions['unusedfunction0'] = new scriptFunction('void', 'D', 0, [], {
  3826. name: 'UnusedFunction0'
  3827. });
  3828. dictionary.fallout3functions['getdistance'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('ref', 'Target')], {
  3829. docLink: 'http://geck.bethsoft.com/index.php/GetDistance',
  3830. name: 'GetDistance'
  3831. }, [new scriptFunctionNote(function (functionCall) {
  3832. if (functionCall[0] != null)
  3833. return functionCall[0].toLowerCase() in {
  3834. player: 1,
  3835. playerref: 1
  3836. };
  3837. else
  3838. return false;
  3839. }, 'GetDistance shouldn\'t be called on the player. Pass "player" as a parameter of GetDistance instead', 1), new scriptFunctionNote(function (functionCall) {
  3840. if (functionCall[0] != null && functionCall[1] != null)
  3841. return functionCall[0].toLowerCase() == functionCall[1].toLowerCase();
  3842. else
  3843. return false;
  3844. }, 'You are calling GetDistance on the same reference as you are passing as its parameter', 1)]);
  3845. dictionary.fallout3functions['additem'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID'), new scriptFunctionParam('int', 'Count'), new scriptFunctionParam('int', 'HideMessageFlag', true)], {
  3846. docLink: 'http://geck.bethsoft.com/index.php/AddItem',
  3847. name: 'AddItem'
  3848. });
  3849. dictionary.fallout3functions['setessential'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'BaseID'), new scriptFunctionParam('boolean', 'Flag')], {
  3850. docLink: 'http://geck.bethsoft.com/index.php/SetEssential',
  3851. name: 'SetEssential'
  3852. });
  3853. dictionary.fallout3functions['rotate'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'Axis'), new scriptFunctionParam('float', 'DegreesPerSec')], {
  3854. docLink: 'http://geck.bethsoft.com/index.php/Rotate',
  3855. name: 'Rotate'
  3856. });
  3857. dictionary.fallout3functions['getlocked'] = new scriptFunction('bool', 'R', 0, [], {
  3858. docLink: 'http://geck.bethsoft.com/index.php/GetLocked',
  3859. name: 'GetLocked'
  3860. });
  3861. dictionary.fallout3functions['getpos'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes)], {
  3862. docLink: 'http://geck.bethsoft.com/index.php/GetPos',
  3863. name: 'GetPos'
  3864. });
  3865. dictionary.fallout3functions['setpos'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes), new scriptFunctionParam('float', 'Pos')], {
  3866. docLink: 'http://geck.bethsoft.com/index.php/SetPos',
  3867. name: 'SetPos'
  3868. });
  3869. dictionary.fallout3functions['getangle'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes)], {
  3870. docLink: 'http://geck.bethsoft.com/index.php/GetAngle',
  3871. name: 'GetAngle'
  3872. });
  3873. dictionary.fallout3functions['setangle'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes), new scriptFunctionParam('float', 'Angle')], {
  3874. docLink: 'http://geck.bethsoft.com/index.php/SetAngle',
  3875. name: 'SetAngle'
  3876. });
  3877. dictionary.fallout3functions['getstartingpos'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes)], {
  3878. docLink: 'http://geck.bethsoft.com/index.php/GetStartingPos',
  3879. name: 'GetStartingPos'
  3880. });
  3881. dictionary.fallout3functions['getstartingangle'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes)], {
  3882. docLink: 'http://geck.bethsoft.com/index.php/GetStartingAngle',
  3883. name: 'GetStartingAngle'
  3884. });
  3885. dictionary.fallout3functions['getsecondspassed'] = new scriptFunction('float', 'B', 0, [], {
  3886. docLink: 'http://geck.bethsoft.com/index.php/GetSecondsPassed',
  3887. name: 'GetSecondsPassed'
  3888. }, [new scriptFunctionNote(function (functionCall) {
  3889. return script.inBlock.toLowerCase() == 'scripteffectupdate';
  3890. }, 'Use "ScriptEffectElapsedSeconds" instead of "GetSecondsPassed" in a "ScriptEffectUpdate" block', 0), new scriptFunctionNote(function (functionCall) {
  3891. return !(script.inBlock.toLowerCase() in {
  3892. 'scripteffectupdate': 1,
  3893. 'ontrigger': 1,
  3894. 'gamemode': 1,
  3895. 'menumode': 1
  3896. });
  3897. }, '"GetSecondsPassed" should not be used in this type of Begin/End block, as it does not run continuously', 1)]);
  3898. dictionary.fallout3functions['activate'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ActionRef', true), new scriptFunctionParam('int', 'RunOnActivateBlockFlag', true)], {
  3899. docLink: 'http://geck.bethsoft.com/index.php/Activate',
  3900. name: 'Activate'
  3901. });
  3902. dictionary.fallout3functions['getactorvalue'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.actorValues)], {
  3903. docLink: 'http://geck.bethsoft.com/index.php/GetActorValue',
  3904. name: 'GetActorValue',
  3905. shortName: 'GetAV',
  3906. longName: 'GetActorValue'
  3907. });
  3908. dictionary.fallout3functions['getav'] = alias(dictionary.fallout3functions['getactorvalue']);
  3909. dictionary.fallout3functions['setactorvalue'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.actorValues), new scriptFunctionParam('float', 'Value')], {
  3910. docLink: 'http://geck.bethsoft.com/index.php/SetActorValue',
  3911. name: 'SetActorValue',
  3912. shortName: 'SetAV',
  3913. longName: 'SetActorValue'
  3914. });
  3915. dictionary.fallout3functions['setav'] = alias(dictionary.fallout3functions['setactorvalue']);
  3916. dictionary.fallout3functions['modactorvalue'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.actorValues), new scriptFunctionParam('float', 'Value')], {
  3917. docLink: 'http://geck.bethsoft.com/index.php/ModActorValue',
  3918. name: 'ModActorValue',
  3919. shortName: 'ModAV',
  3920. longName: 'ModActorValue'
  3921. });
  3922. dictionary.fallout3functions['modav'] = alias(dictionary.fallout3functions['modactorvalue']);
  3923. dictionary.fallout3functions['setatstart'] = new scriptFunction('void', 'D', 0, [], {
  3924. docLink: 'http://geck.bethsoft.com/index.php/SetAtStart',
  3925. name: 'SetAtStart'
  3926. });
  3927. dictionary.fallout3functions['getcurrenttime'] = new scriptFunction('float', 'B', 0, [], {
  3928. docLink: 'http://geck.bethsoft.com/index.php/GetCurrentTime',
  3929. name: 'GetCurrentTime'
  3930. });
  3931. dictionary.fallout3functions['playgroup'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'AnimGroup'), new scriptFunctionParam('int', 'InitFlag')], {
  3932. docLink: 'http://geck.bethsoft.com/index.php/PlayGroup',
  3933. name: 'PlayGroup'
  3934. });
  3935. dictionary.fallout3functions['loopgroup'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'AnimGroup'), new scriptFunctionParam('int', 'InitFlag')], {
  3936. docLink: 'http://geck.bethsoft.com/index.php/LoopGroup',
  3937. name: 'LoopGroup'
  3938. });
  3939. dictionary.fallout3functions['skipanim'] = new scriptFunction('void', 'R', 0, [], {
  3940. docLink: 'http://geck.bethsoft.com/index.php/SkipAnim',
  3941. name: 'SkipAnim'
  3942. });
  3943. dictionary.fallout3functions['startcombat'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ActorID', true)], {
  3944. docLink: 'http://geck.bethsoft.com/index.php/StartCombat',
  3945. name: 'StartCombat'
  3946. });
  3947. dictionary.fallout3functions['stopcombat'] = new scriptFunction('void', 'R', 0, [], {
  3948. docLink: 'http://geck.bethsoft.com/index.php/StopCombat',
  3949. name: 'StopCombat'
  3950. });
  3951. dictionary.fallout3functions['getscale'] = new scriptFunction('float', 'R', 0, [], {
  3952. docLink: 'http://geck.bethsoft.com/index.php/GetScale',
  3953. name: 'GetScale'
  3954. });
  3955. dictionary.fallout3functions['ismoving'] = new scriptFunction('bool', 'R', 0, [], {
  3956. docLink: 'http://geck.bethsoft.com/index.php/IsMoving',
  3957. name: 'IsMoving'
  3958. });
  3959. dictionary.fallout3functions['isturning'] = new scriptFunction('bool', 'R', 0, [], {
  3960. docLink: 'http://geck.bethsoft.com/index.php/IsTurning',
  3961. name: 'IsTurning'
  3962. });
  3963. dictionary.fallout3functions['getlineofsight'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID')], {
  3964. docLink: 'http://geck.bethsoft.com/index.php/GetLineOfSight',
  3965. name: 'GetLineOfSight',
  3966. shortName: 'GetLOS',
  3967. longName: 'GetLineOfSight'
  3968. });
  3969. dictionary.fallout3functions['getlos'] = alias(dictionary.fallout3functions['getlineofsight']);
  3970. dictionary.fallout3functions['addspell'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'EffectID')], {
  3971. docLink: 'http://geck.bethsoft.com/index.php/AddSpell',
  3972. name: 'AddSpell'
  3973. });
  3974. dictionary.fallout3functions['removespell'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'EffectID')], {
  3975. docLink: 'http://geck.bethsoft.com/index.php/RemoveSpell',
  3976. name: 'RemoveSpell'
  3977. });
  3978. dictionary.fallout3functions['cast'] = new scriptFunction('void', 'D', 0, [], {
  3979. docLink: 'http://geck.bethsoft.com/index.php/Cast',
  3980. name: 'Cast'
  3981. }, [new scriptFunctionNote(function (functionCall) {
  3982. return true;
  3983. }, 'Use CastImmediateOnSelf instead', 1)]);
  3984. dictionary.fallout3functions['getbuttonpressed'] = new scriptFunction('int', 'B', 0, [], {
  3985. docLink: 'http://geck.bethsoft.com/index.php/GetButtonPressed',
  3986. name: 'GetButtonPressed'
  3987. }, [new scriptFunctionNote(function (functionCall) {
  3988. return !(script.inBlock.toLowerCase() in {
  3989. 'scripteffectupdate': 1,
  3990. 'ontrigger': 1,
  3991. 'gamemode': 1,
  3992. 'menumode': 1
  3993. });
  3994. }, '"GetButtonPressed" should not be used in this type of Begin/End block, as it does not run continuously', 1)]);
  3995. dictionary.fallout3functions['getinsamecell'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'Target')], {
  3996. docLink: 'http://geck.bethsoft.com/index.php/GetInSameCell',
  3997. name: 'GetInSameCell'
  3998. });
  3999. dictionary.fallout3functions['enable'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'FadeIn', true)], {
  4000. docLink: 'http://geck.bethsoft.com/index.php/Enable',
  4001. name: 'Enable'
  4002. });
  4003. dictionary.fallout3functions['disable'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'FadeIn', true)], {
  4004. docLink: 'http://geck.bethsoft.com/index.php/Disable',
  4005. name: 'Disable'
  4006. });
  4007. dictionary.fallout3functions['getdisabled'] = new scriptFunction('bool', 'R', 0, [], {
  4008. docLink: 'http://geck.bethsoft.com/index.php/GetDisabled',
  4009. name: 'GetDisabled'
  4010. });
  4011. dictionary.fallout3functions['menumode'] = new scriptFunction('bool', 'B', 0, [new scriptFunctionParam('int', 'Menu Number', true, dictionary.values.menuModes)], {
  4012. docLink: 'http://geck.bethsoft.com/index.php/MenuMode_(Function)',
  4013. name: 'MenuMode'
  4014. });
  4015. dictionary.fallout3functions['placeatme'] = new scriptFunction('ref', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID'), new scriptFunctionParam('int', 'Count', true), new scriptFunctionParam('float', 'Distance', true, false, true), new scriptFunctionParam('int', 'Direction', true, {
  4016. 0: '0',
  4017. 1: '1',
  4018. 2: '2',
  4019. 3: '3'
  4020. }, true)], {
  4021. docLink: 'http://geck.bethsoft.com/index.php/PlaceAtMe',
  4022. name: 'PlaceAtMe'
  4023. });
  4024. dictionary.fallout3functions['playsound'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'SoundID')], {
  4025. docLink: 'http://geck.bethsoft.com/index.php/PlaySound',
  4026. name: 'PlaySound'
  4027. });
  4028. dictionary.fallout3functions['getdisease'] = new scriptFunction('void', 'D', 0, [], {
  4029. name: 'GetDisease'
  4030. });
  4031. dictionary.fallout3functions['getvampire'] = new scriptFunction('void', 'D', 0, [], {
  4032. name: 'GetVampire'
  4033. });
  4034. dictionary.fallout3functions['getclothingvalue'] = new scriptFunction('float', 'R', 0, [], {
  4035. docLink: 'http://geck.bethsoft.com/index.php/GetClothingValue',
  4036. name: 'GetClothingValue'
  4037. });
  4038. dictionary.fallout3functions['samefaction'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  4039. docLink: 'http://geck.bethsoft.com/index.php/SameFaction',
  4040. name: 'SameFaction'
  4041. });
  4042. dictionary.fallout3functions['samerace'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  4043. docLink: 'http://geck.bethsoft.com/index.php/SameRace',
  4044. name: 'SameRace'
  4045. });
  4046. dictionary.fallout3functions['samesex'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  4047. docLink: 'http://geck.bethsoft.com/index.php/SameSex',
  4048. name: 'SameSex'
  4049. });
  4050. dictionary.fallout3functions['getdetected'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  4051. docLink: 'http://geck.bethsoft.com/index.php/GetDetected',
  4052. name: 'GetDetected'
  4053. });
  4054. dictionary.fallout3functions['getdead'] = new scriptFunction('bool', 'R', 0, [], {
  4055. docLink: 'http://geck.bethsoft.com/index.php/GetDead',
  4056. name: 'GetDead'
  4057. });
  4058. dictionary.fallout3functions['getitemcount'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID')], {
  4059. docLink: 'http://geck.bethsoft.com/index.php/GetItemCount',
  4060. name: 'GetItemCount'
  4061. }, [new scriptFunctionNote(function (functionCall) {
  4062. return (/caps001/i.test(functionCall[1]));
  4063. }, 'GetGold is more reliable than "GetItemCount" when checking how many caps an actor has in their inventory', 0)]);
  4064. dictionary.fallout3functions['getgold'] = new scriptFunction('int', 'R', 0, [], {
  4065. docLink: 'http://geck.bethsoft.com/index.php/GetGold',
  4066. name: 'GetGold'
  4067. });
  4068. dictionary.fallout3functions['getsleeping'] = new scriptFunction('bool', 'R', 0, [], {
  4069. docLink: 'http://geck.bethsoft.com/index.php/GetSleeping',
  4070. name: 'GetSleeping'
  4071. });
  4072. dictionary.fallout3functions['gettalkedtopc'] = new scriptFunction('bool', 'R', 0, [], {
  4073. docLink: 'http://geck.bethsoft.com/index.php/GetTalkedToPC',
  4074. name: 'GetTalkedToPC'
  4075. });
  4076. dictionary.fallout3functions['say'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'ForceSubtitleFlag', true), new scriptFunctionParam('ref', 'Actor', true), new scriptFunctionParam('int', 'Undocumented int', true)], {
  4077. docLink: 'http://geck.bethsoft.com/index.php/Say',
  4078. name: 'Say'
  4079. })
  4080. dictionary.fallout3functions['sayto'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'TargetActor'), new scriptFunctionParam('ref', 'TopicID'), new scriptFunctionParam('int', 'ForceSubtitleFlag', true), new scriptFunctionParam('int', 'NoTargetLook', true)], {
  4081. docLink: 'http://geck.bethsoft.com/index.php/SayTo',
  4082. name: 'SayTo'
  4083. });
  4084. dictionary.fallout3functions['getscriptvariable'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'ObjectID'), new scriptFunctionParam('string', 'VarName')], {
  4085. docLink: 'http://geck.bethsoft.com/index.php/GetScriptVariable',
  4086. name: 'GetScriptVariable'
  4087. }, [new scriptFunctionNote(function (functionCall) {
  4088. return true;
  4089. }, '"GetScriptVariable" is only available in conditions. Use "ObjectID.VarName" for remote variable access in scripts', 1)]);
  4090. dictionary.fallout3functions['startquest'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'QuestName')], {
  4091. docLink: 'http://geck.bethsoft.com/index.php/StartQuest',
  4092. name: 'StartQuest'
  4093. });
  4094. dictionary.fallout3functions['stopquest'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'QuestName')], {
  4095. docLink: 'http://geck.bethsoft.com/index.php/StopQuest',
  4096. name: 'StopQuest'
  4097. });
  4098. dictionary.fallout3functions['getquestrunning'] = new scriptFunction('bool', 'B', 0, [new scriptFunctionParam('ref', 'QuestName')], {
  4099. docLink: 'http://geck.bethsoft.com/index.php/GetQuestRunning',
  4100. name: 'GetQuestRunning',
  4101. shortName: 'GetQR',
  4102. longName: 'GetQuestRunning'
  4103. });
  4104. dictionary.fallout3functions['getqr'] = alias(dictionary.fallout3functions['getquestrunning']);
  4105. dictionary.fallout3functions['setstage'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'QuestName'), new scriptFunctionParam('int', 'StageIndex')], {
  4106. docLink: 'http://geck.bethsoft.com/index.php/SetStage',
  4107. name: 'SetStage'
  4108. });
  4109. dictionary.fallout3functions['getstage'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'QuestName')], {
  4110. docLink: 'http://geck.bethsoft.com/index.php/GetStage',
  4111. name: 'GetStage'
  4112. });
  4113. dictionary.fallout3functions['getstagedone'] = new scriptFunction('bool', 'B', 0, [new scriptFunctionParam('ref', 'QuestName'), new scriptFunctionParam('int', 'StageIndex')], {
  4114. docLink: 'http://geck.bethsoft.com/index.php/GetStageDone',
  4115. name: 'GetStageDone'
  4116. });
  4117. dictionary.fallout3functions['getfactionrankdifference'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'FactionID'), new scriptFunctionParam('ref', 'ActorID')], {
  4118. docLink: 'http://geck.bethsoft.com/index.php/GetFactionRankDifference',
  4119. name: 'GetFactionRankDifference'
  4120. });
  4121. dictionary.fallout3functions['getalarmed'] = new scriptFunction('bool', 'R', 0, [], {
  4122. docLink: 'http://geck.bethsoft.com/index.php/GetAlarmed',
  4123. name: 'GetAlarmed'
  4124. });
  4125. dictionary.fallout3functions['israining'] = new scriptFunction('bool', 'B', 0, [], {
  4126. docLink: 'http://geck.bethsoft.com/index.php/IsRaining',
  4127. name: 'IsRaining'
  4128. });
  4129. dictionary.fallout3functions['getattacked'] = new scriptFunction('bool', 'R', 0, [], {
  4130. docLink: 'http://geck.bethsoft.com/index.php/GetAttacked',
  4131. name: 'GetAttacked'
  4132. });
  4133. dictionary.fallout3functions['getiscreature'] = new scriptFunction('bool', 'R', 0, [], {
  4134. docLink: 'http://geck.bethsoft.com/index.php/GetIsCreature',
  4135. name: 'GetIsCreature'
  4136. });
  4137. dictionary.fallout3functions['getlocklevel'] = new scriptFunction('int', 'R', 0, [], {
  4138. docLink: 'http://geck.bethsoft.com/index.php/GetLockLevel',
  4139. name: 'GetLockLevel'
  4140. });
  4141. dictionary.fallout3functions['getshouldattack'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'TargetActor')], {
  4142. docLink: 'http://geck.bethsoft.com/index.php/GetShouldAttack',
  4143. name: 'GetShouldAttack'
  4144. });
  4145. dictionary.fallout3functions['getincell'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'CellID')], {
  4146. docLink: 'http://geck.bethsoft.com/index.php/GetInCell',
  4147. name: 'GetInCell'
  4148. });
  4149. dictionary.fallout3functions['getisclass'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('string', 'ClassID')], {
  4150. docLink: 'http://geck.bethsoft.com/index.php/GetIsClass',
  4151. name: 'GetIsClass'
  4152. });
  4153. dictionary.fallout3functions['getisrace'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'RaceID')], {
  4154. docLink: 'http://geck.bethsoft.com/index.php/GetIsRace',
  4155. name: 'GetIsRace'
  4156. });
  4157. dictionary.fallout3functions['getissex'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('string', 'Sex', false, {
  4158. male: 'Male',
  4159. female: 'Female'
  4160. })], {
  4161. docLink: 'http://geck.bethsoft.com/index.php/GetIsSex',
  4162. name: 'GetIsSex'
  4163. });
  4164. dictionary.fallout3functions['getinfaction'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'FactionID')], {
  4165. docLink: 'http://geck.bethsoft.com/index.php/GetInFaction',
  4166. name: 'GetInFaction'
  4167. });
  4168. dictionary.fallout3functions['getisid'] = new scriptFunction('bool', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID')], {
  4169. docLink: 'http://geck.bethsoft.com/index.php/GetIsID',
  4170. name: 'GetIsID'
  4171. });
  4172. dictionary.fallout3functions['getfactionrank'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'FactionID')], {
  4173. docLink: 'http://geck.bethsoft.com/index.php/GetFactionRank',
  4174. name: 'GetFactionRank'
  4175. });
  4176. dictionary.fallout3functions['getglobalvalue'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('string', 'VarName')], {
  4177. docLink: 'http://geck.bethsoft.com/index.php/GetGlobalValue',
  4178. name: 'GetGlobalValue'
  4179. }, [new scriptFunctionNote(function (functionCall) {
  4180. return true;
  4181. }, '"GetGlobalValue" is only available in conditions. Use "VarName" for global variable access in scripts', 1)]);
  4182. dictionary.fallout3functions['issnowing'] = new scriptFunction('bool', 'B', 0, [], {
  4183. docLink: 'http://geck.bethsoft.com/index.php/IsSnowing',
  4184. name: 'IsSnowing'
  4185. });
  4186. dictionary.fallout3functions['getdisposition'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  4187. docLink: 'http://geck.bethsoft.com/index.php/GetDisposition',
  4188. name: 'GetDisposition'
  4189. });
  4190. dictionary.fallout3functions['getrandompercent'] = new scriptFunction('int', 'B', 0, [], {
  4191. docLink: 'http://geck.bethsoft.com/index.php/GetRandomPercent',
  4192. name: 'GetRandomPercent'
  4193. });
  4194. dictionary.fallout3functions['streammusic'] = new scriptFunction('void', 'D', 0, [], {
  4195. name: 'StreamMusic'
  4196. });
  4197. dictionary.fallout3functions['getquestvariable'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'ObjectID'), new scriptFunctionParam('string', 'VarName')], {
  4198. docLink: 'http://geck.bethsoft.com/index.php/GetQuestVariable',
  4199. name: 'GetQuestVariable'
  4200. }, [new scriptFunctionNote(function (functionCall) {
  4201. return true;
  4202. }, '"GetQuestVariable" is only available in conditions. Use "ObjectID.VarName" for remote variable access in scripts', 1)]);
  4203. dictionary.fallout3functions['getlevel'] = new scriptFunction('int', 'R', 0, [], {
  4204. docLink: 'http://geck.bethsoft.com/index.php/GetLevel',
  4205. name: 'GetLevel'
  4206. });
  4207. dictionary.fallout3functions['getarmorrating'] = new scriptFunction('int', 'R', 0, [], {
  4208. docLink: 'http://geck.bethsoft.com/index.php/GetArmorRating',
  4209. name: 'GetArmorRating'
  4210. });
  4211. dictionary.fallout3functions['removeitem'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID'), new scriptFunctionParam('int', 'Count'), new scriptFunctionParam('int', 'HideMessageFlag', true)], {
  4212. docLink: 'http://geck.bethsoft.com/index.php/RemoveItem',
  4213. name: 'RemoveItem'
  4214. });
  4215. dictionary.fallout3functions['moddisposition'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ActorID'), new scriptFunctionParam('int', 'Value')], {
  4216. docLink: 'http://geck.bethsoft.com/index.php/ModDisposition',
  4217. name: 'ModDisposition'
  4218. });
  4219. dictionary.fallout3functions['getdeadcount'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  4220. docLink: 'http://geck.bethsoft.com/index.php/GetDeadCount',
  4221. name: 'GetDeadCount'
  4222. });
  4223. dictionary.fallout3functions['showmap'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'MapMarkerID'), new scriptFunctionParam('int', 'EnableFastTravel', true)], {
  4224. docLink: 'http://geck.bethsoft.com/index.php/ShowMap',
  4225. name: 'ShowMap'
  4226. });
  4227. dictionary.fallout3functions['startconversation'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ActorID'), new scriptFunctionParam('ref', 'TopicID', true), new scriptFunctionParam('ref', 'SpeakerLocation', true), new scriptFunctionParam('ref', 'TargetLocation'), new scriptFunctionParam('int', 'HeadTrackFlag', true), new scriptFunctionParam('int', 'AllowMovementFlag', true)], {
  4228. docLink: 'http://geck.bethsoft.com/index.php/StartConversation',
  4229. name: 'StartConversation'
  4230. });
  4231. dictionary.fallout3functions['drop'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID'), new scriptFunctionParam('int', 'Count')], {
  4232. docLink: 'http://geck.bethsoft.com/index.php/Drop',
  4233. name: 'Drop'
  4234. });
  4235. dictionary.fallout3functions['addtopic'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'TopicID')], {
  4236. docLink: 'http://geck.bethsoft.com/index.php/AddTopic',
  4237. name: 'AddTopic'
  4238. });
  4239. dictionary.fallout3functions['showmessage'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'MessageID'), new scriptFunctionParam('void', 'Var1', true), new scriptFunctionParam('void', 'Var2', true), new scriptFunctionParam('void', 'Var3', true), new scriptFunctionParam('void', 'Var4', true), new scriptFunctionParam('void', 'Var5', true), new scriptFunctionParam('void', 'Var6', true), new scriptFunctionParam('void', 'Var7', true), new scriptFunctionParam('void', 'Var8', true), new scriptFunctionParam('void', 'Var9', true), new scriptFunctionParam('int', 'Duration', true, false, true)], {
  4240. docLink: 'http://geck.bethsoft.com/index.php/ShowMessage',
  4241. name: 'ShowMessage'
  4242. }, [new scriptFunctionNote(function (functionCall) {
  4243. for (var i = 2; i in functionCall; i++) {
  4244. if (/^('.*?'|'.*?'|(\d*\.)?\d+)$/.test(functionCall[i]) == true)
  4245. return true;
  4246. }
  4247. return false;
  4248. }, '"ShowMessage" only accepts variables for parameters "Var1" through "Var9"', 1)]);
  4249. dictionary.fallout3functions['setalert'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'Flag')], {
  4250. docLink: 'http://geck.bethsoft.com/index.php/SetAlert',
  4251. name: 'SetAlert'
  4252. });
  4253. dictionary.fallout3functions['getisalerted'] = new scriptFunction('bool', 'R', 0, [], {
  4254. docLink: 'http://geck.bethsoft.com/index.php/GetIsAlerted',
  4255. name: 'GetIsAlerted'
  4256. });
  4257. dictionary.fallout3functions['look'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'TargetID')], {
  4258. docLink: 'http://geck.bethsoft.com/index.php/Look',
  4259. name: 'Look'
  4260. });
  4261. dictionary.fallout3functions['stoplook'] = new scriptFunction('void', 'R', 0, [], {
  4262. docLink: 'http://geck.bethsoft.com/index.php/StopLook',
  4263. name: 'StopLook'
  4264. });
  4265. dictionary.fallout3functions['evaluatepackage'] = new scriptFunction('void', 'R', 0, [], {
  4266. docLink: 'http://geck.bethsoft.com/index.php/EvaluatePackage',
  4267. name: 'EvaluatePackage',
  4268. shortName: 'EVP',
  4269. longName: 'EvaluatePackage'
  4270. });
  4271. dictionary.fallout3functions['evp'] = alias(dictionary.fallout3functions['evaluatepackage']);
  4272. dictionary.fallout3functions['sendassaultalarm'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'VictimID'), new scriptFunctionParam('ref', 'VictimFactionID', true)], {
  4273. docLink: 'http://geck.bethsoft.com/index.php/SendAssaultAlarm',
  4274. name: 'SendAssaultAlarm'
  4275. });
  4276. dictionary.fallout3functions['enableplayercontrols'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('int', 'MovementFlag', true), new scriptFunctionParam('int', 'PipboyFlag', true), new scriptFunctionParam('int', 'FightingFlag', true), new scriptFunctionParam('int', 'POVFlag', true), new scriptFunctionParam('int', 'LookingFlag', true), new scriptFunctionParam('int', 'RolloverTextFlag', true), new scriptFunctionParam('int', 'SneakingFlag', true)], {
  4277. docLink: 'http://geck.bethsoft.com/index.php/EnablePlayerControls',
  4278. name: 'EnablePlayerControls'
  4279. });
  4280. dictionary.fallout3functions['disableplayercontrols'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('int', 'MovementFlag', true), new scriptFunctionParam('int', 'PipboyFlag', true), new scriptFunctionParam('int', 'FightingFlag', true), new scriptFunctionParam('int', 'POVFlag', true), new scriptFunctionParam('int', 'LookingFlag', true), new scriptFunctionParam('int', 'RolloverTextFlag', true), new scriptFunctionParam('int', 'SneakingFlag', true)], {
  4281. docLink: 'http://geck.bethsoft.com/index.php/DisablePlayerControls',
  4282. name: 'DisablePlayerControls'
  4283. });
  4284. dictionary.fallout3functions['getplayercontrolsdisabled'] = new scriptFunction('bool', 'B', 0, [new scriptFunctionParam('int', 'MovementFlag', true), new scriptFunctionParam('int', 'PipboyFlag', true), new scriptFunctionParam('int', 'FightingFlag', true), new scriptFunctionParam('int', 'POVFlag', true), new scriptFunctionParam('int', 'LookingFlag', true), new scriptFunctionParam('int', 'RolloverTextFlag', true), new scriptFunctionParam('int', 'SneakingFlag', true)], {
  4285. docLink: 'http://geck.bethsoft.com/index.php/GetPlayerControlsDisabled',
  4286. name: 'GetPlayerControlsDisabled'
  4287. });
  4288. dictionary.fallout3functions['getheadingangle'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID')], {
  4289. docLink: 'http://geck.bethsoft.com/index.php/GetHeadingAngle',
  4290. name: 'GetHeadingAngle'
  4291. });
  4292. dictionary.fallout3functions['pickidle'] = new scriptFunction('void', 'R', 0, [], {
  4293. name: 'PickIdle'
  4294. });
  4295. dictionary.fallout3functions['isweaponout'] = new scriptFunction('int', 'R', 0, [], {
  4296. docLink: 'http://geck.bethsoft.com/index.php/IsWeaponOut',
  4297. name: 'IsWeaponOut'
  4298. });
  4299. dictionary.fallout3functions['istorchout'] = new scriptFunction('void', 'D', 0, [], {
  4300. name: 'IsTorchOut'
  4301. });
  4302. dictionary.fallout3functions['isshieldout'] = new scriptFunction('void', 'D', 0, [], {
  4303. name: 'IsShieldOut'
  4304. });
  4305. dictionary.fallout3functions['createdetectionevent'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'ActorID'), new scriptFunctionParam('int', 'SoundLevel'), new scriptFunctionParam('int', 'EventType', true)], {
  4306. docLink: 'http://geck.bethsoft.com/index.php/CreateDetectionEvent',
  4307. name: 'CreateDetectionEvent'
  4308. });
  4309. dictionary.fallout3functions['isactionref'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'RefID')], {
  4310. docLink: 'http://geck.bethsoft.com/index.php/IsActionRef',
  4311. name: 'IsActionRef'
  4312. }, [new scriptFunctionNote(function (functionCall) {
  4313. return /'^(onactivate|ontriggerenter|ontriggerleave|ontrigger)$'/.test(script.inBlock.toLowerCase())
  4314. }, '"IsActionRef" is only useful inside an "OnActivate", "OnTriggerEnter", "OnTriggerLeave", or "OnTrigger" block', 1)]);
  4315. dictionary.fallout3functions['isfacingup'] = new scriptFunction('int', 'R', 0, [], {
  4316. docLink: 'http://geck.bethsoft.com/index.php/IsFacingUp',
  4317. name: 'IsFacingUp'
  4318. });
  4319. dictionary.fallout3functions['getknockedstate'] = new scriptFunction('int', 'R', 0, [], {
  4320. docLink: 'http://geck.bethsoft.com/index.php/GetKnockedState',
  4321. name: 'GetKnockedState'
  4322. });
  4323. dictionary.fallout3functions['getweaponanimtype'] = new scriptFunction('int', 'R', 0, [], {
  4324. docLink: 'http://geck.bethsoft.com/index.php/GetWeaponAnimType',
  4325. name: 'GetWeaponAnimType'
  4326. });
  4327. dictionary.fallout3functions['isweaponskilltype'] = new scriptFunction('int', '', 0, [], {
  4328. name: 'IsWeaponSkillType'
  4329. });
  4330. dictionary.fallout3functions['getcurrentaipackage'] = new scriptFunction('int', 'R', 0, [], {
  4331. docLink: 'http://geck.bethsoft.com/index.php/GetCurrentAIPackage',
  4332. name: 'GetCurrentAIPackage'
  4333. });
  4334. dictionary.fallout3functions['iswaiting'] = new scriptFunction('int', 'R', 0, [], {
  4335. docLink: 'http://geck.bethsoft.com/index.php/IsWaiting',
  4336. name: 'IsWaiting'
  4337. });
  4338. dictionary.fallout3functions['isidleplaying'] = new scriptFunction('int', 'R', 0, [], {
  4339. docLink: 'http://geck.bethsoft.com/index.php/IsIdlePlaying',
  4340. name: 'IsIdlePlaying'
  4341. });
  4342. dictionary.fallout3functions['completequest'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'QuestID')], {
  4343. docLink: 'http://geck.bethsoft.com/index.php/CompleteQuest',
  4344. name: 'CompleteQuest'
  4345. });
  4346. dictionary.fallout3functions['lock'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'Level', 0)], {
  4347. docLink: 'http://geck.bethsoft.com/index.php/Lock',
  4348. name: 'Lock'
  4349. });
  4350. dictionary.fallout3functions['unlock'] = new scriptFunction('void', 'R', 0, [], {
  4351. docLink: 'http://geck.bethsoft.com/index.php/Unlock',
  4352. name: 'Unlock'
  4353. });
  4354. dictionary.fallout3functions['getminorcrimecount'] = new scriptFunction('int', 'R', 0, [], {
  4355. docLink: 'http://geck.bethsoft.com/index.php/GetMinorCrimeCount',
  4356. name: 'GetMinorCrimeCount'
  4357. });
  4358. dictionary.fallout3functions['getmajorcrimecount'] = new scriptFunction('int', 'R', 0, [], {
  4359. docLink: 'http://geck.bethsoft.com/index.php/GetMajorCrimeCount',
  4360. name: 'GetMajorCrimeCount'
  4361. });
  4362. dictionary.fallout3functions['getactoraggroradiusviolated'] = new scriptFunction('int', '', 0, [], {
  4363. name: 'GetActorAggroRadiusViolated'
  4364. });
  4365. dictionary.fallout3functions['getcrimeknown'] = new scriptFunction('int', '', 0, [], {
  4366. name: 'GetCrimeKnown'
  4367. });
  4368. dictionary.fallout3functions['setenemy'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'Faction1'), new scriptFunctionParam('ref', 'Faction2'), new scriptFunctionParam('int', 'F1ToF2Flag'), new scriptFunctionParam('int', 'F1ToF2Flag')], {
  4369. docLink: 'http://geck.bethsoft.com/index.php/SetEnemy',
  4370. name: 'SetEnemy'
  4371. });
  4372. dictionary.fallout3functions['setally'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'Faction1'), new scriptFunctionParam('ref', 'Faction2'), new scriptFunctionParam('int', 'F1ToF2Flag'), new scriptFunctionParam('int', 'F1ToF2Flag')], {
  4373. docLink: 'http://geck.bethsoft.com/index.php/SetAlly',
  4374. name: 'SetAlly'
  4375. });
  4376. dictionary.fallout3functions['getcrime'] = new scriptFunction('int', '', 0, [], {
  4377. name: 'GetCrime'
  4378. });
  4379. dictionary.fallout3functions['isgreetingplayer'] = new scriptFunction('int', '', 0, [], {
  4380. name: 'IsGreetingPlayer'
  4381. });
  4382. dictionary.fallout3functions['startmistersandman'] = new scriptFunction('void', '', 0, [], {
  4383. name: 'StartMisterSandman'
  4384. });
  4385. dictionary.fallout3functions['isguard'] = new scriptFunction('void', 'D', 0, [], {
  4386. docLink: 'http://geck.bethsoft.com/index.php/IsGuard',
  4387. name: 'IsGuard'
  4388. });
  4389. dictionary.fallout3functions['startcannibal'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'TargetID')], {
  4390. docLink: 'http://geck.bethsoft.com/index.php/StartCannibal',
  4391. name: 'StartCannibal'
  4392. });
  4393. dictionary.fallout3functions['hasbeeneaten'] = new scriptFunction('int', 'R', 0, [], {
  4394. docLink: 'http://geck.bethsoft.com/index.php/HasBeenEaten',
  4395. name: 'HasBeenEaten'
  4396. });
  4397. dictionary.fallout3functions['getfatiguepercentage'] = new scriptFunction('float', '', 0, [], {
  4398. name: 'GetFatiguePercentage'
  4399. });
  4400. dictionary.fallout3functions['getfatigue'] = new scriptFunction('float', '', 0, [], {
  4401. name: 'GetFatigue'
  4402. });
  4403. dictionary.fallout3functions['getpcisclass'] = new scriptFunction('int', '', 0, [], {
  4404. name: 'GetPCIsClass'
  4405. });
  4406. dictionary.fallout3functions['getpcisrace'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'RaceID')], {
  4407. docLink: 'http://geck.bethsoft.com/index.php/GetPCIsRace',
  4408. name: 'GetPCIsRace'
  4409. });
  4410. dictionary.fallout3functions['getpcissex'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('string', 'Sex', false, {
  4411. male: 'Male',
  4412. female: 'Female'
  4413. })], {
  4414. docLink: 'http://geck.bethsoft.com/index.php/GetPCIsSex',
  4415. name: 'GetPCIsSex'
  4416. });
  4417. dictionary.fallout3functions['getpcisinfaction'] = new scriptFunction('int', '', 0, [], {
  4418. name: 'GetPCIsInFaction'
  4419. });
  4420. dictionary.fallout3functions['samefactionaspc'] = new scriptFunction('int', 'R', 0, [], {
  4421. docLink: 'http://geck.bethsoft.com/index.php/SameFactionAsPC',
  4422. name: 'SameFactionAsPC'
  4423. });
  4424. dictionary.fallout3functions['sameraceaspc'] = new scriptFunction('int', 'R', 0, [], {
  4425. docLink: 'http://geck.bethsoft.com/index.php/SameRaceAsPC',
  4426. name: 'SameRaceAsPC'
  4427. });
  4428. dictionary.fallout3functions['samesexaspc'] = new scriptFunction('int', 'R', 0, [], {
  4429. docLink: 'http://geck.bethsoft.com/index.php/SameSexAsPC',
  4430. name: 'SameSexAsPC'
  4431. });
  4432. dictionary.fallout3functions['getisreference'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'RefID')], {
  4433. docLink: 'http://geck.bethsoft.com/index.php/GetIsReference',
  4434. name: 'GetIsReference'
  4435. });
  4436. dictionary.fallout3functions['setfactionrank'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'FactionID'), new scriptFunctionParam('int', 'NewRank')], {
  4437. docLink: 'http://geck.bethsoft.com/index.php/SetFactionRank',
  4438. name: 'SetFactionRank'
  4439. });
  4440. dictionary.fallout3functions['modfactionrank'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'FactionID'), new scriptFunctionParam('int', 'ModValue')], {
  4441. docLink: 'http://geck.bethsoft.com/index.php/ModFactionRank',
  4442. name: 'ModFactionRank'
  4443. });
  4444. dictionary.fallout3functions['killactor'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'KillerID', true), new scriptFunctionParam('int', 'DismemberLimb', true), new scriptFunctionParam('int', 'CauseOfDeath', true)], {
  4445. docLink: 'http://geck.bethsoft.com/index.php/KillActor',
  4446. name: 'KillActor',
  4447. shortName: 'Kill',
  4448. longName: 'KillActor'
  4449. });
  4450. dictionary.fallout3functions['kill'] = alias(dictionary.fallout3functions['killactor']);
  4451. dictionary.fallout3functions['resurrectactor'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'AnimateFlag', true)], {
  4452. docLink: 'http://geck.bethsoft.com/index.php/ResurrectActor',
  4453. name: 'ResurrectActor',
  4454. shortName: 'Resurrect',
  4455. longName: 'ResurrectActor'
  4456. });
  4457. dictionary.fallout3functions['resurrect'] = alias(dictionary.fallout3functions['resurrectactor']);
  4458. dictionary.fallout3functions['istalking'] = new scriptFunction('int', 'R', 0, [], {
  4459. docLink: 'http://geck.bethsoft.com/index.php/IsTalking',
  4460. name: 'IsTalking'
  4461. });
  4462. dictionary.fallout3functions['getwalkspeed'] = new scriptFunction('float', 'R', 0, [], {
  4463. docLink: 'http://geck.bethsoft.com/index.php/GetWalkSpeed',
  4464. name: 'GetWalkSpeed',
  4465. shortName: 'GetWalk',
  4466. longName: 'GetWalkSpeed'
  4467. });
  4468. dictionary.fallout3functions['getwalk'] = alias(dictionary.fallout3functions['getwalkspeed']);
  4469. dictionary.fallout3functions['getcurrentaiprocedure'] = new scriptFunction('int', 'R', 0, [], {
  4470. docLink: 'http://geck.bethsoft.com/index.php/GetCurrentAIProcedure',
  4471. name: 'GetCurrentAIProcedure'
  4472. });
  4473. dictionary.fallout3functions['gettrespasswarninglevel'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('int', 'ActorID')], {
  4474. docLink: 'http://geck.bethsoft.com/index.php/GetTrespassWarningLevel',
  4475. name: 'GetTrespassWarningLevel'
  4476. });
  4477. dictionary.fallout3functions['istrespassing'] = new scriptFunction('int', 'R', 0, [], {
  4478. docLink: 'http://geck.bethsoft.com/index.php/IsTrespassing',
  4479. name: 'IsTrespassing'
  4480. });
  4481. dictionary.fallout3functions['isinmyownedcell'] = new scriptFunction('int', 'R', 0, [], {
  4482. docLink: 'http://geck.bethsoft.com/index.php/IsInMyOwnedCell',
  4483. name: 'IsInMyOwnedCell'
  4484. });
  4485. dictionary.fallout3functions['getwindspeed'] = new scriptFunction('float', 'B', 0, [], {
  4486. docLink: 'http://geck.bethsoft.com/index.php/GetWindSpeed',
  4487. name: 'GetWindSpeed'
  4488. });
  4489. dictionary.fallout3functions['getcurrentweatherpercent'] = new scriptFunction('float', 'B', 0, [], {
  4490. docLink: 'http://geck.bethsoft.com/index.php/GetCurrentWeatherPercent',
  4491. name: 'GetCurrentWeatherPercent',
  4492. shortName: 'GetWeatherPct',
  4493. longName: 'GetCurrentWeatherPercent'
  4494. });
  4495. dictionary.fallout3functions['getweatherpct'] = alias(dictionary.fallout3functions['getcurrentweatherpercent']);
  4496. dictionary.fallout3functions['getiscurrentweather'] = new scriptFunction('int', 'B', 0, [new scriptFunctionParam('ref', 'WeatherID')], {
  4497. docLink: 'http://geck.bethsoft.com/index.php/GetIsCurrentWeather',
  4498. name: 'GetIsCurrentWeather',
  4499. shortName: 'GetWeather',
  4500. longName: 'GetIsCurrentWeather'
  4501. });
  4502. dictionary.fallout3functions['getweather'] = alias(dictionary.fallout3functions['getiscurrentweather']);
  4503. dictionary.fallout3functions['iscontinuingpackagepcnear'] = new scriptFunction('int', 'R', 0, [], {
  4504. docLink: 'http://geck.bethsoft.com/index.php/IsContinuingPackagePCNear',
  4505. name: 'IsContinuingPackagePCNear'
  4506. });
  4507. dictionary.fallout3functions['addscriptpackage'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'PackageID')], {
  4508. docLink: 'http://geck.bethsoft.com/index.php/AddScriptPackage',
  4509. name: 'AddScriptPackage'
  4510. });
  4511. dictionary.fallout3functions['removescriptpackage'] = new scriptFunction('void', 'R', 0, [], {
  4512. docLink: 'http://geck.bethsoft.com/index.php/RemoveScriptPackage',
  4513. name: 'RemoveScriptPackage'
  4514. });
  4515. dictionary.fallout3functions['canhaveflames'] = new scriptFunction('int', '', 0, [], {
  4516. name: 'CanHaveFlames'
  4517. });
  4518. dictionary.fallout3functions['hasflames'] = new scriptFunction('int', '', 0, [], {
  4519. name: 'HasFlames'
  4520. });
  4521. dictionary.fallout3functions['addflames'] = new scriptFunction('void', '', 0, [], {
  4522. name: 'AddFlames'
  4523. });
  4524. dictionary.fallout3functions['removeflames'] = new scriptFunction('void', '', 0, [], {
  4525. name: 'RemoveFlames'
  4526. });
  4527. dictionary.fallout3functions['getopenstate'] = new scriptFunction('int', 'R', 0, [], {
  4528. docLink: 'http://geck.bethsoft.com/index.php/GetOpenState',
  4529. name: 'GetOpenState'
  4530. });
  4531. dictionary.fallout3functions['movetomarker'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'MarkerID'), new scriptFunctionParam('float', 'OffsetX', true), new scriptFunctionParam('float', 'OffsetY', true), new scriptFunctionParam('float', 'OffsetZ', true)], {
  4532. docLink: 'http://geck.bethsoft.com/index.php/MoveToMarker',
  4533. name: 'MoveToMarker',
  4534. shortName: 'MoveTo',
  4535. longName: 'MoveToMarker'
  4536. });
  4537. dictionary.fallout3functions['moveto'] = alias(dictionary.fallout3functions['movetomarker']);
  4538. dictionary.fallout3functions['getsitting'] = new scriptFunction('int', 'R', 0, [], {
  4539. docLink: 'http://geck.bethsoft.com/index.php/GetSitting',
  4540. name: 'GetSitting'
  4541. });
  4542. dictionary.fallout3functions['getfurnituremarkerid'] = new scriptFunction('int', '', 0, [], {
  4543. name: 'GetFurnitureMarkerID'
  4544. });
  4545. dictionary.fallout3functions['getiscurrentpackage'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'PackageID')], {
  4546. docLink: 'http://geck.bethsoft.com/index.php/GetIsCurrentPackage',
  4547. name: 'GetIsCurrentPackage'
  4548. });
  4549. dictionary.fallout3functions['iscurrentfurnitureref'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'FurnitureRefID')], {
  4550. docLink: 'http://geck.bethsoft.com/index.php/IsCurrentFurnitureRef',
  4551. name: 'IsCurrentFurnitureRef'
  4552. });
  4553. dictionary.fallout3functions['iscurrentfurnitureobj'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'FurnitureID')], {
  4554. docLink: 'http://geck.bethsoft.com/index.php/IsCurrentFurnitureObj',
  4555. name: 'IsCurrentFurnitureObj'
  4556. });
  4557. dictionary.fallout3functions['setsize'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('float', 'Size')], {
  4558. docLink: 'http://geck.bethsoft.com/index.php/SetSize',
  4559. name: 'SetSize',
  4560. shortName: 'CSize',
  4561. longName: 'SetSize'
  4562. });
  4563. dictionary.fallout3functions['csize'] = alias(dictionary.fallout3functions['setsize']);
  4564. dictionary.fallout3functions['removeme'] = new scriptFunction('void', 'S', 0, [new scriptFunctionParam('ref', 'TargetContainerID', true)], {
  4565. docLink: 'http://geck.bethsoft.com/index.php/RemoveMe',
  4566. name: 'RemoveMe'
  4567. });
  4568. dictionary.fallout3functions['dropme'] = new scriptFunction('void', 'S', 0, [], {
  4569. docLink: 'http://geck.bethsoft.com/index.php/DropMe',
  4570. name: 'DropMe'
  4571. });
  4572. dictionary.fallout3functions['getfactionreaction'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'Faction1'), new scriptFunctionParam('ref', 'Faction2')], {
  4573. docLink: 'http://geck.bethsoft.com/index.php/GetFactionReaction',
  4574. name: 'GetFactionReaction'
  4575. });
  4576. dictionary.fallout3functions['setfactionreaction'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'Faction1'), new scriptFunctionParam('ref', 'Faction2'), new scriptFunctionParam('float', 'ReactionValue')], {
  4577. docLink: 'http://geck.bethsoft.com/index.php/SetFactionReaction',
  4578. name: 'SetFactionReaction'
  4579. });
  4580. dictionary.fallout3functions['modfactionreaction'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'Faction1'), new scriptFunctionParam('ref', 'Faction2'), new scriptFunctionParam('float', 'ModValue')], {
  4581. docLink: 'http://geck.bethsoft.com/index.php/ModFactionReaction',
  4582. name: 'ModFactionReaction'
  4583. });
  4584. dictionary.fallout3functions['getdayofweek'] = new scriptFunction('int', 'B', 0, [], {
  4585. docLink: 'http://geck.bethsoft.com/index.php/GetDayOfWeek',
  4586. name: 'GetDayOfWeek'
  4587. });
  4588. dictionary.fallout3functions['ignorecrime'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'Flag')], {
  4589. docLink: 'http://geck.bethsoft.com/index.php/IgnoreCrime',
  4590. name: 'IgnoreCrime'
  4591. });
  4592. dictionary.fallout3functions['gettalkedtopcparam'] = new scriptFunction('int', '', 0, [], {
  4593. name: 'GetTalkedToPCParam'
  4594. });
  4595. dictionary.fallout3functions['removeallitems'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'TargetContainerID', true), new scriptFunctionParam('int', 'RetainOwnerShipFlag', true)], {
  4596. docLink: 'http://geck.bethsoft.com/index.php/RemoveAllItems',
  4597. name: 'RemoveAllItems'
  4598. });
  4599. dictionary.fallout3functions['wakeuppc'] = new scriptFunction('void', 'B', 0, [], {
  4600. docLink: 'http://geck.bethsoft.com/index.php/WakeUpPC',
  4601. name: 'WakeUpPC'
  4602. });
  4603. dictionary.fallout3functions['ispcsleeping'] = new scriptFunction('int', 'B', 0, [], {
  4604. docLink: 'http://geck.bethsoft.com/index.php/IsPCSleeping',
  4605. name: 'IsPCSleeping'
  4606. });
  4607. dictionary.fallout3functions['ispcamurderer'] = new scriptFunction('int', 'B', 0, [], {
  4608. docLink: 'http://geck.bethsoft.com/index.php/IsPCAMurderer',
  4609. name: 'IsPCAMurderer'
  4610. });
  4611. dictionary.fallout3functions['setcombatstyle'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'CombatStyleID')], {
  4612. docLink: 'http://geck.bethsoft.com/index.php/SetCombatStyle',
  4613. name: 'SetCombatStyle',
  4614. shortName: 'SetCS',
  4615. longName: 'SetCombatStyle'
  4616. });
  4617. dictionary.fallout3functions['setcs'] = alias(dictionary.fallout3functions['setcombatstyle']);
  4618. dictionary.fallout3functions['playsound3d'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'SoundID')], {
  4619. docLink: 'http://geck.bethsoft.com/index.php/PlaySound3D',
  4620. name: 'PlaySound3D'
  4621. });
  4622. dictionary.fallout3functions['selectplayerspell'] = new scriptFunction('void', 'D', 0, [], {
  4623. name: 'SelectPlayerSpell',
  4624. shortName: 'SPSpell',
  4625. longName: 'SelectPlayerSpell'
  4626. });
  4627. dictionary.fallout3functions['spspell'] = alias(dictionary.fallout3functions['selectplayerspell']);
  4628. dictionary.fallout3functions['getdetectionlevel'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'ActorID')], {
  4629. docLink: 'http://geck.bethsoft.com/index.php/GetDetectionLevel',
  4630. name: 'GetDetectionLevel'
  4631. });
  4632. dictionary.fallout3functions['isactordetected'] = new scriptFunction('int', 'R', 0, [], {
  4633. docLink: 'http://geck.bethsoft.com/index.php/IsActorDetected',
  4634. name: 'IsActorDetected'
  4635. }, [new scriptFunctionNote(function (functionCall) {
  4636. if (0 in functionCall) {
  4637. return functionCall[0].toLowerCase in {
  4638. player: 1,
  4639. playerref: 1
  4640. }
  4641. } else
  4642. return false;
  4643. }, '"IsActorDetected" will always return 0 when called on the player', 1)]);
  4644. dictionary.fallout3functions['getequipped'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'ObjectID')], {
  4645. docLink: 'http://geck.bethsoft.com/index.php/GetEquipped',
  4646. name: 'GetEquipped'
  4647. });
  4648. dictionary.fallout3functions['wait'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'PackageID')], {
  4649. docLink: 'http://geck.bethsoft.com/index.php/Wait',
  4650. name: 'Wait'
  4651. });
  4652. dictionary.fallout3functions['stopwaiting'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'PackageID')], {
  4653. docLink: 'http://geck.bethsoft.com/index.php/StopWaiting',
  4654. name: 'StopWaiting'
  4655. });
  4656. dictionary.fallout3functions['isswimming'] = new scriptFunction('int', 'R', 0, [], {
  4657. docLink: 'http://geck.bethsoft.com/index.php/IsSwimming',
  4658. name: 'IsSwimming'
  4659. });
  4660. dictionary.fallout3functions['scripteffectelapsedseconds'] = new scriptFunction('float', 'B', 0, [], {
  4661. docLink: 'http://geck.bethsoft.com/index.php/ScriptEffectElapsedSeconds',
  4662. name: 'ScriptEffectElapsedSeconds'
  4663. }, [new scriptFunctionNote(function (functionCall) {
  4664. return script.inBlock.toLowerCase() != 'scripteffectupdate';
  4665. }, '"ScriptEffectElapsedSeconds" will only return a value other than 0 inside a "ScriptEffectUpdate" block', 1)]);
  4666. dictionary.fallout3functions['setcellpublicflag'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'CellID'), new scriptFunctionParam('int', 'Flag')], {
  4667. docLink: 'http://geck.bethsoft.com/index.php/SetCellPublicFlag',
  4668. name: 'SetCellPublicFlag',
  4669. shortName: 'SetPublic',
  4670. longName: 'SetCellPublicFlag'
  4671. });
  4672. dictionary.fallout3functions['setpublic'] = alias(dictionary.fallout3functions['setcellpublicflag']);
  4673. dictionary.fallout3functions['getpcsleephours'] = new scriptFunction('int', 'B', 0, [], {
  4674. docLink: 'http://geck.bethsoft.com/index.php/GetPCSleepHours',
  4675. name: 'GetPCSleepHours'
  4676. });
  4677. dictionary.fallout3functions['setpcsleephours'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('int', 'Hours')], {
  4678. docLink: 'http://geck.bethsoft.com/index.php/SetPCSleepHours',
  4679. name: 'SetPCSleepHours'
  4680. });
  4681. dictionary.fallout3functions['getamountsoldstolen'] = new scriptFunction('void', 'D', 0, [], {
  4682. name: 'GetAmountSoldStolen'
  4683. });
  4684. dictionary.fallout3functions['modamountsoldstolen'] = new scriptFunction('void', 'D', 0, [], {
  4685. name: 'ModAmountSoldStolen'
  4686. });
  4687. dictionary.fallout3functions['getignorecrime'] = new scriptFunction('int', 'R', 0, [], {
  4688. docLink: 'http://geck.bethsoft.com/index.php/GetIgnoreCrime',
  4689. name: 'GetIgnoreCrime'
  4690. });
  4691. dictionary.fallout3functions['getpcexpelled'] = new scriptFunction('int', 'D', 0, [], {
  4692. name: 'GetPCExpelled'
  4693. });
  4694. dictionary.fallout3functions['setpcexpelled'] = new scriptFunction('void', 'D', 0, [], {
  4695. name: 'SetPCExpelled'
  4696. });
  4697. dictionary.fallout3functions['getpcfactionmurder'] = new scriptFunction('int', '', 0, [], {
  4698. name: 'GetPCFactionMurder'
  4699. });
  4700. dictionary.fallout3functions['setpcfactionmurder'] = new scriptFunction('void', '', 0, [], {
  4701. name: 'SetPCFactionMurder'
  4702. });
  4703. dictionary.fallout3functions['getpcenemyoffaction'] = new scriptFunction('int', '', 0, [], {
  4704. name: 'GetPCEnemyOfFaction'
  4705. });
  4706. dictionary.fallout3functions['setpcenemyoffaction'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('ref', 'FactionID'), new scriptFunctionParam('in', 'Flag')], {
  4707. docLink: 'http://geck.bethsoft.com/index.php/SetPCEnemyOfFaction',
  4708. name: 'SetPCEnemyOfFaction'
  4709. });
  4710. dictionary.fallout3functions['getpcfactionattack'] = new scriptFunction('int', '', 0, [], {
  4711. name: 'GetPCFactionAttack'
  4712. });
  4713. dictionary.fallout3functions['setpcfactionattack'] = new scriptFunction('void', '', 0, [], {
  4714. name: 'SetPCFactionAttack'
  4715. });
  4716. dictionary.fallout3functions['unusedfunction21'] = new scriptFunction('void', 'D', 0, [], {
  4717. name: 'UnusedFunction21'
  4718. });
  4719. dictionary.fallout3functions['unusedfunction22'] = new scriptFunction('void', 'D', 0, [], {
  4720. name: 'UnusedFunction22'
  4721. });
  4722. dictionary.fallout3functions['getdestroyed'] = new scriptFunction('int', 'R', 0, [], {
  4723. docLink: 'http://geck.bethsoft.com/index.php/GetDestroyed',
  4724. name: 'GetDestroyed'
  4725. });
  4726. dictionary.fallout3functions['setdestroyed'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'Flag')], {
  4727. docLink: 'http://geck.bethsoft.com/index.php/SetDestroyed',
  4728. name: 'SetDestroyed'
  4729. });
  4730. dictionary.fallout3functions['getactionref'] = new scriptFunction('ref', 'R', 0, [], {
  4731. docLink: 'http://geck.bethsoft.com/index.php/GetActionRef',
  4732. name: 'GetActionRef',
  4733. shortName: 'GetAR',
  4734. longName: 'GetActionRef'
  4735. }, [new scriptFunctionNote(function (functionCall) {
  4736. return /'^(onactivate|ontriggerenter|ontriggerleave|ontrigger)$'/.test(script.inBlock.toLowerCase())
  4737. }, 'GetActionRef is only useful inside an "OnActivate", "OnTriggerEnter", "OnTriggerLeave", or "OnTrigger" block', 1)]);
  4738. dictionary.fallout3functions['getar'] = alias(dictionary.fallout3functions['getactionref']);
  4739. dictionary.fallout3functions['getself'] = new scriptFunction('ref', 'S', 0, [], {
  4740. docLink: 'http://geck.bethsoft.com/index.php/GetSelf',
  4741. name: 'GetSelf',
  4742. shortName: 'This',
  4743. longName: 'GetSelf'
  4744. }, [new scriptFunctionNote(function (functionCall) {
  4745. return true;
  4746. }, 'When called on references created dynamically (for example, via PlaceAtMe), GetSelf will always return 0', 0)]);
  4747. dictionary.fallout3functions['this'] = alias(dictionary.fallout3functions['getself']);
  4748. dictionary.fallout3functions['getcontainer'] = new scriptFunction('ref', 'S', 0, [], {
  4749. docLink: 'http://geck.bethsoft.com/index.php/GetContainer',
  4750. name: 'GetContainer'
  4751. });
  4752. dictionary.fallout3functions['getforcerun'] = new scriptFunction('int', 'R', 0, [], {
  4753. docLink: 'http://geck.bethsoft.com/index.php/GetForceRun',
  4754. name: 'GetForceRun'
  4755. });
  4756. dictionary.fallout3functions['setforcerun'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'Flag')], {
  4757. docLink: 'http://geck.bethsoft.com/index.php/SetForceRun',
  4758. name: 'SetForceRun'
  4759. });
  4760. dictionary.fallout3functions['getforcesneak'] = new scriptFunction('int', 'R', 0, [], {
  4761. name: 'GetForceSneak'
  4762. });
  4763. dictionary.fallout3functions['setforcesneak'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('int', 'Flag')], {
  4764. docLink: 'http://geck.bethsoft.com/index.php/SetForceSneak',
  4765. name: 'SetForceSneak'
  4766. });
  4767. dictionary.fallout3functions['advancepcskill'] = new scriptFunction('void');
  4768. dictionary.fallout3functions['advskill'] = alias(dictionary.fallout3functions['advancepcskill']);
  4769. dictionary.fallout3functions['advancepclevel'] = new scriptFunction('void');
  4770. dictionary.fallout3functions['advlevel'] = alias(dictionary.fallout3functions['advancepclevel']);
  4771. dictionary.fallout3functions['hasmagiceffect'] = new scriptFunction('int');
  4772. dictionary.fallout3functions['getdefaultopen'] = new scriptFunction('int');
  4773. dictionary.fallout3functions['setdefaultopen'] = new scriptFunction('void');
  4774. dictionary.fallout3functions['showclassmenu'] = new scriptFunction('void');
  4775. dictionary.fallout3functions['showracemenu'] = new scriptFunction('void');
  4776. dictionary.fallout3functions['getanimaction'] = new scriptFunction('int');
  4777. dictionary.fallout3functions['shownamemenu'] = new scriptFunction('void');
  4778. dictionary.fallout3functions['setopenstate'] = new scriptFunction('void');
  4779. dictionary.fallout3functions['unusedfunction26'] = new scriptFunction('void', 'D', 0, []);
  4780. dictionary.fallout3functions['isspelltarget'] = new scriptFunction('int');
  4781. dictionary.fallout3functions['getvatsmode'] = new scriptFunction('int');
  4782. dictionary.fallout3functions['getpersuasionnumber'] = new scriptFunction('void', 'D', 0, []);
  4783. dictionary.fallout3functions['getsandman'] = new scriptFunction('int');
  4784. dictionary.fallout3functions['getcannibal'] = new scriptFunction('int');
  4785. dictionary.fallout3functions['getisclassdefault'] = new scriptFunction('int');
  4786. dictionary.fallout3functions['getclassdefaultmatch'] = new scriptFunction('int');
  4787. dictionary.fallout3functions['getincellparam'] = new scriptFunction('int');
  4788. dictionary.fallout3functions['setinchargen'] = new scriptFunction('void');
  4789. dictionary.fallout3functions['getcombattarget'] = new scriptFunction('ref');
  4790. dictionary.fallout3functions['getpackagetarget'] = new scriptFunction('ref');
  4791. dictionary.fallout3functions['showspellmaking'] = new scriptFunction('void', 'D', 0, []);
  4792. dictionary.fallout3functions['getvatstargetheight'] = new scriptFunction('float');
  4793. dictionary.fallout3functions['setghost'] = new scriptFunction('void');
  4794. dictionary.fallout3functions['getisghost'] = new scriptFunction('int');
  4795. dictionary.fallout3functions['equipitem'] = new scriptFunction('void');
  4796. dictionary.fallout3functions['equipobject'] = alias(dictionary.fallout3functions['equipitem']);
  4797. dictionary.fallout3functions['unequipitem'] = new scriptFunction('void');
  4798. dictionary.fallout3functions['unequipobject'] = alias(dictionary.fallout3functions['unequipitem']);
  4799. dictionary.fallout3functions['setclass'] = new scriptFunction('void');
  4800. dictionary.fallout3functions['setunconscious'] = new scriptFunction('void');
  4801. dictionary.fallout3functions['getunconscious'] = new scriptFunction('int');
  4802. dictionary.fallout3functions['setrestrained'] = new scriptFunction('void');
  4803. dictionary.fallout3functions['getrestrained'] = new scriptFunction('int');
  4804. dictionary.fallout3functions['forceflee'] = new scriptFunction('void', 'D', 0, []);
  4805. dictionary.fallout3functions['flee'] = alias(dictionary.fallout3functions['forceflee']);
  4806. dictionary.fallout3functions['getisuseditem'] = new scriptFunction('int');
  4807. dictionary.fallout3functions['getisuseditemtype'] = new scriptFunction('int');
  4808. dictionary.fallout3functions['unusedfunction9'] = new scriptFunction('void', 'D', 0, []);
  4809. dictionary.fallout3functions['unusedfunction10'] = new scriptFunction('void', 'D', 0, []);
  4810. dictionary.fallout3functions['unusedfunction11'] = new scriptFunction('void', 'D', 0, []);
  4811. dictionary.fallout3functions['unusedfunction12'] = new scriptFunction('void', 'D', 0, []);
  4812. dictionary.fallout3functions['unusedfunction13'] = new scriptFunction('void', 'D', 0, []);
  4813. dictionary.fallout3functions['unusedfunction14'] = new scriptFunction('void', 'D', 0, []);
  4814. dictionary.fallout3functions['getisplayablerace'] = new scriptFunction('int');
  4815. dictionary.fallout3functions['getoffersservicesnow'] = new scriptFunction('int');
  4816. dictionary.fallout3functions['getgamesetting'] = new scriptFunction('depends');
  4817. dictionary.fallout3functions['getgs'] = alias(dictionary.fallout3functions['getgamesetting']);
  4818. dictionary.fallout3functions['stopcombatalarmonactor'] = new scriptFunction('void');
  4819. dictionary.fallout3functions['scaonactor'] = alias(dictionary.fallout3functions['stopcombatalarmonactor']);
  4820. dictionary.fallout3functions['getuseditemlevel'] = new scriptFunction('int');
  4821. dictionary.fallout3functions['getuseditemactivate'] = new scriptFunction('unknown');
  4822. dictionary.fallout3functions['setweather'] = new scriptFunction('void');
  4823. dictionary.fallout3functions['sw'] = alias(dictionary.fallout3functions['setweather']);
  4824. dictionary.fallout3functions['forcetakecover'] = new scriptFunction('void');
  4825. dictionary.fallout3functions['takecover'] = alias(dictionary.fallout3functions['forcetakecover']);
  4826. dictionary.fallout3functions['modbartergold'] = new scriptFunction('void');
  4827. dictionary.fallout3functions['setbartergold'] = new scriptFunction('void');
  4828. dictionary.fallout3functions['getbartergold'] = new scriptFunction('int');
  4829. dictionary.fallout3functions['istimepassing'] = new scriptFunction('int');
  4830. dictionary.fallout3functions['ispleasant'] = new scriptFunction('int');
  4831. dictionary.fallout3functions['iscloudy'] = new scriptFunction('int');
  4832. dictionary.fallout3functions['trapupdate'] = new scriptFunction('void');
  4833. dictionary.fallout3functions['setquestobject'] = new scriptFunction('void');
  4834. dictionary.fallout3functions['forceactorvalue'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.actorValues), new scriptFunctionParam('float', 'Value')], {
  4835. docLink: 'http://geck.bethsoft.com/index.php/ForceActorValue',
  4836. name: 'ForceActorValue',
  4837. shortName: 'ForceAV',
  4838. longName: 'ForceActorValue'
  4839. });
  4840. dictionary.fallout3functions['forceav'] = alias(dictionary.fallout3functions['forceactorvalue']);
  4841. dictionary.fallout3functions['modpcskill'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.skills), new scriptFunctionParam('float', 'Value')], {
  4842. docLink: 'http://geck.bethsoft.com/index.php/ModPCSkill',
  4843. name: 'ModPCSkill',
  4844. shortName: 'ModPCS',
  4845. longName: 'ModPCSkill'
  4846. });
  4847. dictionary.fallout3functions['modpcs'] = alias(dictionary.fallout3functions['modpcskill']);
  4848. dictionary.fallout3functions['modpcattribute'] = new scriptFunction('void', 'B', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.attributes), new scriptFunctionParam('float', 'Value')], {
  4849. docLink: 'http://geck.bethsoft.com/index.php/ModPCAttribute',
  4850. name: 'ModPCAttribute',
  4851. shortName: 'ModPCA',
  4852. longName: 'ModPCAttribute'
  4853. });
  4854. dictionary.fallout3functions['modpca'] = alias(dictionary.fallout3functions['modpcattribute']);
  4855. dictionary.fallout3functions['enablefasttravel'] = new scriptFunction('void');
  4856. dictionary.fallout3functions['enablefast'] = alias(dictionary.fallout3functions['enablefasttravel']);
  4857. dictionary.fallout3functions['getarmorratingupperbody'] = new scriptFunction('int');
  4858. dictionary.fallout3functions['getparentref'] = new scriptFunction('ref');
  4859. dictionary.fallout3functions['playbink'] = new scriptFunction('void');
  4860. dictionary.fallout3functions['getbaseactorvalue'] = new scriptFunction('int');
  4861. dictionary.fallout3functions['getbaseav'] = alias(dictionary.fallout3functions['getbaseactorvalue'])
  4862. dictionary.fallout3functions['isowner'] = new scriptFunction('int');
  4863. dictionary.fallout3functions['setownership'] = new scriptFunction('void');
  4864. dictionary.fallout3functions['iscellowner'] = new scriptFunction('int');
  4865. dictionary.fallout3functions['setcellownership'] = new scriptFunction('void');
  4866. dictionary.fallout3functions['ishorsestolen'] = new scriptFunction('void', 'D', 0, []);
  4867. dictionary.fallout3functions['setcellfullname'] = new scriptFunction('void');
  4868. dictionary.fallout3functions['setactorfullname'] = new scriptFunction('void');
  4869. dictionary.fallout3functions['isleftup'] = new scriptFunction('int');
  4870. dictionary.fallout3functions['issneaking'] = new scriptFunction('int');
  4871. dictionary.fallout3functions['isrunning'] = new scriptFunction('int');
  4872. dictionary.fallout3functions['getfriendhit'] = new scriptFunction('int');
  4873. dictionary.fallout3functions['isincombat'] = new scriptFunction('int');
  4874. dictionary.fallout3functions['setpackduration'] = new scriptFunction('void');
  4875. dictionary.fallout3functions['spdur'] = alias(dictionary.fallout3functions['setpackduration']);
  4876. dictionary.fallout3functions['playmagicshadervisuals'] = new scriptFunction('void');
  4877. dictionary.fallout3functions['pms'] = alias(dictionary.fallout3functions['playmagicshadervisuals']);
  4878. dictionary.fallout3functions['playmagiceffectvisuals'] = new scriptFunction('void');
  4879. dictionary.fallout3functions['pme'] = alias(dictionary.fallout3functions['playmagiceffectvisuals']);
  4880. dictionary.fallout3functions['stopmagicshadervisuals'] = new scriptFunction('void');
  4881. dictionary.fallout3functions['sms'] = alias(dictionary.fallout3functions['stopmagicshadervisuals']);
  4882. dictionary.fallout3functions['stopmagiceffectvisuals'] = new scriptFunction('void');
  4883. dictionary.fallout3functions['sme'] = alias(dictionary.fallout3functions['stopmagiceffectvisuals']);
  4884. dictionary.fallout3functions['resetinterior'] = new scriptFunction('void');
  4885. dictionary.fallout3functions['isanimplaying'] = new scriptFunction('int');
  4886. dictionary.fallout3functions['setactoralpha'] = new scriptFunction('void');
  4887. dictionary.fallout3functions['saa'] = dictionary.fallout3functions['setactoralpha'];
  4888. dictionary.fallout3functions['enablelinkedpathpoints'] = new scriptFunction('void');
  4889. dictionary.fallout3functions['disablelinkedpathpoints'] = new scriptFunction('void');
  4890. dictionary.fallout3functions['isininterior'] = new scriptFunction('int');
  4891. dictionary.fallout3functions['forceweather'] = new scriptFunction('void');
  4892. dictionary.fallout3functions['fw'] = alias(dictionary.fallout3functions['forceweather']);
  4893. dictionary.fallout3functions['toggleactorsai'] = new scriptFunction('void');
  4894. dictionary.fallout3functions['isactorsaioff'] = new scriptFunction('int');
  4895. dictionary.fallout3functions['iswaterobject'] = new scriptFunction('int');
  4896. dictionary.fallout3functions['unusedfunction15'] = new scriptFunction('void', 'D', 0, []);
  4897. dictionary.fallout3functions['isactorusingatorch'] = new scriptFunction('void', 'D', 0, []);
  4898. dictionary.fallout3functions['setlevel'] = new scriptFunction('void');
  4899. dictionary.fallout3functions['resetfalldamagetimer'] = new scriptFunction('void');
  4900. dictionary.fallout3functions['isxbox'] = new scriptFunction('int', 'B', 0, [], {
  4901. docLink: 'http://geck.bethsoft.com/index.php/IsXBox',
  4902. name: 'IsXBox'
  4903. }, [new scriptFunctionNote(function (functionCall) {
  4904. return true;
  4905. }, '"IsXBox" will always return 0', 1)]);
  4906. dictionary.fallout3functions['getinworldspace'] = new scriptFunction('int');
  4907. dictionary.fallout3functions['modpcmiscstat'] = new scriptFunction('void');
  4908. dictionary.fallout3functions['modpcms'] = alias(dictionary.fallout3functions['modpcmiscstat']);
  4909. dictionary.fallout3functions['getpcmiscstat'] = new scriptFunction('int');
  4910. dictionary.fallout3functions['getpcms'] = alias(dictionary.fallout3functions['getpcmiscstat']);
  4911. dictionary.fallout3functions['isactorevil'] = new scriptFunction('int');
  4912. dictionary.fallout3functions['isactoravictim'] = new scriptFunction('int');
  4913. dictionary.fallout3functions['gettotalpersuasionnumber'] = new scriptFunction('void', 'D', 0, []);
  4914. dictionary.fallout3functions['setscale'] = new scriptFunction('void');
  4915. dictionary.fallout3functions['modscale'] = new scriptFunction('void');
  4916. dictionary.fallout3functions['getidledoneonce'] = new scriptFunction('int');
  4917. dictionary.fallout3functions['killallactors'] = new scriptFunction('void');
  4918. dictionary.fallout3functions['killall'] = alias(dictionary.fallout3functions['killallactors']);
  4919. dictionary.fallout3functions['getnorumors'] = new scriptFunction('void', 'D', 0, []);
  4920. dictionary.fallout3functions['setnorumors'] = new scriptFunction('void', 'D', 0, []);
  4921. dictionary.fallout3functions['dispel'] = new scriptFunction('void');
  4922. dictionary.fallout3functions['whichservicemenu'] = new scriptFunction('int');
  4923. dictionary.fallout3functions['triggerhitshader'] = new scriptFunction('void');
  4924. dictionary.fallout3functions['ths'] = alias(dictionary.fallout3functions['triggerhitshader']);
  4925. dictionary.fallout3functions['unusedfunction16'] = new scriptFunction('void', 'D', 0, []);
  4926. dictionary.fallout3functions['reset3dstate'] = new scriptFunction('void');
  4927. dictionary.fallout3functions['isridinghorse'] = new scriptFunction('void', 'D', 0, []);
  4928. dictionary.fallout3functions['dispelallspells'] = new scriptFunction('void');
  4929. dictionary.fallout3functions['unusedfunction17'] = new scriptFunction('void', 'D', 0, []);
  4930. dictionary.fallout3functions['addachievement'] = new scriptFunction('void');
  4931. dictionary.fallout3functions['duplicateallitems'] = new scriptFunction('void');
  4932. dictionary.fallout3functions['isindangerouswater'] = new scriptFunction('int');
  4933. dictionary.fallout3functions['essentialdeathreload'] = new scriptFunction('void');
  4934. dictionary.fallout3functions['setshowquestitems'] = new scriptFunction('void');
  4935. dictionary.fallout3functions['duplicatenpcstats'] = new scriptFunction('void');
  4936. dictionary.fallout3functions['resethealth'] = new scriptFunction('void');
  4937. dictionary.fallout3functions['setignorefriendlyhits'] = new scriptFunction('void');
  4938. dictionary.fallout3functions['sifh'] = alias(dictionary.fallout3functions['setignorefriendlyhits']);
  4939. dictionary.fallout3functions['getignorefriendlyhits'] = new scriptFunction('int');
  4940. dictionary.fallout3functions['gifh'] = alias(dictionary.fallout3functions['getignorefriendlyhits']);
  4941. dictionary.fallout3functions['isplayerslastriddenhorse'] = new scriptFunction('void', 'D', 0, []);
  4942. dictionary.fallout3functions['setactorrefraction'] = new scriptFunction('void');
  4943. dictionary.fallout3functions['sar'] = alias(dictionary.fallout3functions['setactorrefraction']);
  4944. dictionary.fallout3functions['setitemvalue'] = new scriptFunction('void');
  4945. dictionary.fallout3functions['setrigidbodymass'] = new scriptFunction('void');
  4946. dictionary.fallout3functions['showviewerstrings'] = new scriptFunction('void');
  4947. dictionary.fallout3functions['svs'] = alias(dictionary.fallout3functions['showviewerstrings']);
  4948. dictionary.fallout3functions['releaseweatheroverride'] = new scriptFunction('void');
  4949. dictionary.fallout3functions['rwo'] = alias(dictionary.fallout3functions['releaseweatheroverride']);
  4950. dictionary.fallout3functions['setallreachable'] = new scriptFunction('void');
  4951. dictionary.fallout3functions['setallvisible'] = new scriptFunction('void');
  4952. dictionary.fallout3functions['setnoavoidance'] = new scriptFunction('void');
  4953. dictionary.fallout3functions['sendtrespassalarm'] = new scriptFunction('void');
  4954. dictionary.fallout3functions['setsceneiscomplex'] = new scriptFunction('void');
  4955. dictionary.fallout3functions['autosave'] = new scriptFunction('void');
  4956. dictionary.fallout3functions['startmasterfileseekdata'] = new scriptFunction('void');
  4957. dictionary.fallout3functions['dumpmasterfileseekdata'] = new scriptFunction('void');
  4958. dictionary.fallout3functions['isactor'] = new scriptFunction('int');
  4959. dictionary.fallout3functions['isessential'] = new scriptFunction('int');
  4960. dictionary.fallout3functions['preloadmagiceffect'] = new scriptFunction('void');
  4961. dictionary.fallout3functions['showdialogsubtitles'] = new scriptFunction('void');
  4962. dictionary.fallout3functions['unusedfunction27'] = new scriptFunction('void', 'D', 0, []);
  4963. dictionary.fallout3functions['isplayermovingintonewspace'] = new scriptFunction('int');
  4964. dictionary.fallout3functions['unusedfunction28'] = new scriptFunction('void', 'D', 0, []);
  4965. dictionary.fallout3functions['unusedfunction29'] = new scriptFunction('void', 'D', 0, []);
  4966. dictionary.fallout3functions['gettimedead'] = new scriptFunction('float');
  4967. dictionary.fallout3functions['getplayerhaslastriddenhorse'] = new scriptFunction('void', 'D', 0, []);
  4968. dictionary.fallout3functions['getlinkedref'] = new scriptFunction('ref');
  4969. dictionary.fallout3functions['damageobject'] = new scriptFunction('void');
  4970. dictionary.fallout3functions['do'] = alias(dictionary.fallout3functions['damageobject']);
  4971. dictionary.fallout3functions['ischild'] = new scriptFunction('int');
  4972. dictionary.fallout3functions['unusedfunction1'] = new scriptFunction('void', 'D', 0, []);
  4973. dictionary.fallout3functions['getlastplayeraction'] = new scriptFunction('int');
  4974. dictionary.fallout3functions['isplayeractionactive'] = new scriptFunction('int');
  4975. dictionary.fallout3functions['settalkingactivatoractor'] = new scriptFunction('void');
  4976. dictionary.fallout3functions['istalkingactivatoractor'] = new scriptFunction('int');
  4977. dictionary.fallout3functions['showbartermenu'] = new scriptFunction('void');
  4978. dictionary.fallout3functions['sbm'] = alias(dictionary.fallout3functions['showbartermenu']);
  4979. dictionary.fallout3functions['isinlist'] = new scriptFunction('int');
  4980. dictionary.fallout3functions['unusedfunction18'] = new scriptFunction('void', 'D', 0, []);
  4981. dictionary.fallout3functions['addperk'] = new scriptFunction('void');
  4982. dictionary.fallout3functions['rewardxp'] = new scriptFunction('void');
  4983. dictionary.fallout3functions['showhackingminigame'] = new scriptFunction('void');
  4984. dictionary.fallout3functions['shmg'] = alias(dictionary.fallout3functions['showhackingminigame']);
  4985. dictionary.fallout3functions['showsurgerymenu'] = new scriptFunction('void');
  4986. dictionary.fallout3functions['ssmg'] = alias(dictionary.fallout3functions['showsurgerymenu']);
  4987. dictionary.fallout3functions['showrepairmenu'] = new scriptFunction('void');
  4988. dictionary.fallout3functions['srm'] = alias(dictionary.fallout3functions['showrepairmenu']);
  4989. dictionary.fallout3functions['functionunused19'] = new scriptFunction('void', 'D', 0, []);
  4990. dictionary.fallout3functions['unused'] = alias(dictionary.fallout3functions['functionunused19']);
  4991. dictionary.fallout3functions['addnote'] = new scriptFunction('void');
  4992. dictionary.fallout3functions['an'] = alias(dictionary.fallout3functions['addnote']);
  4993. dictionary.fallout3functions['removenote'] = new scriptFunction('void');
  4994. dictionary.fallout3functions['rn'] = alias(dictionary.fallout3functions['removenote']);
  4995. dictionary.fallout3functions['gethasnote'] = new scriptFunction('int');
  4996. dictionary.fallout3functions['getn'] = alias(dictionary.fallout3functions['gethasnote']);
  4997. dictionary.fallout3functions['addtofaction'] = new scriptFunction('void');
  4998. dictionary.fallout3functions['addfac'] = alias(dictionary.fallout3functions['addtofaction']);
  4999. dictionary.fallout3functions['removefromfaction'] = new scriptFunction('void');
  5000. dictionary.fallout3functions['removefac'] = alias(dictionary.fallout3functions['removefromfaction']);
  5001. dictionary.fallout3functions['damageactorvalue'] = new scriptFunction('void');
  5002. dictionary.fallout3functions['damageav'] = alias(dictionary.fallout3functions['damageactorvalue']);
  5003. dictionary.fallout3functions['restoreactorvalue'] = new scriptFunction('void');
  5004. dictionary.fallout3functions['restoreav'] = alias(dictionary.fallout3functions['restoreactorvalue']);
  5005. dictionary.fallout3functions['triggerhudshudder'] = new scriptFunction('void');
  5006. dictionary.fallout3functions['hudsh'] = alias(dictionary.fallout3functions['triggerhudshudder']);
  5007. dictionary.fallout3functions['setdisposition'] = new scriptFunction('void');
  5008. dictionary.fallout3functions['setdisp'] = alias(dictionary.fallout3functions['setdisposition']);
  5009. dictionary.fallout3functions['showcomputersinterface'] = new scriptFunction('void', 'D', 0, []);
  5010. dictionary.fallout3functions['sci'] = alias(dictionary.fallout3functions['showcomputersinterface']);
  5011. dictionary.fallout3functions['setglobaltimemultiplier'] = new scriptFunction('void');
  5012. dictionary.fallout3functions['sgtm'] = alias(dictionary.fallout3functions['setglobaltimemultiplier']);
  5013. dictionary.fallout3functions['gethitlocation'] = new scriptFunction('int');
  5014. dictionary.fallout3functions['ispc1stperson'] = new scriptFunction('int');
  5015. dictionary.fallout3functions['pc1st'] = alias(dictionary.fallout3functions['ispc1stperson']);
  5016. dictionary.fallout3functions['purgecellbuffers'] = new scriptFunction('void');
  5017. dictionary.fallout3functions['pcb'] = alias(dictionary.fallout3functions['purgecellbuffers']);
  5018. dictionary.fallout3functions['pushactoraway'] = new scriptFunction('void');
  5019. dictionary.fallout3functions['setactorsai'] = new scriptFunction('void');
  5020. dictionary.fallout3functions['clearownership'] = new scriptFunction('void');
  5021. dictionary.fallout3functions['getcauseofdeath'] = new scriptFunction('int');
  5022. dictionary.fallout3functions['islimbgone'] = new scriptFunction('int');
  5023. dictionary.fallout3functions['isweaponinlist'] = new scriptFunction('int');
  5024. dictionary.fallout3functions['playidle'] = new scriptFunction('void');
  5025. dictionary.fallout3functions['applyimagespacemodifier'] = new scriptFunction('void');
  5026. dictionary.fallout3functions['imod'] = alias(dictionary.fallout3functions['applyimagespacemodifier']);
  5027. dictionary.fallout3functions['removeimagespacemodifier'] = new scriptFunction('void');
  5028. dictionary.fallout3functions['rimod'] = alias(dictionary.fallout3functions['removeimagespacemodifier']);
  5029. dictionary.fallout3functions['hasfrienddisposition'] = new scriptFunction('int');
  5030. dictionary.fallout3functions['functionunused20'] = new scriptFunction('void', 'D', 0, []);
  5031. dictionary.fallout3functions['frienddispositionboost'] = new scriptFunction('void');
  5032. dictionary.fallout3functions['setcellimagespace'] = new scriptFunction('void');
  5033. dictionary.fallout3functions['showchargenmenu'] = new scriptFunction('void');
  5034. dictionary.fallout3functions['scgm'] = alias(dictionary.fallout3functions['showchargenmenu']);
  5035. dictionary.fallout3functions['getvatsvalue'] = new scriptFunction('int');
  5036. dictionary.fallout3functions['iskiller'] = new scriptFunction('int');
  5037. dictionary.fallout3functions['iskillerobject'] = new scriptFunction('int');
  5038. dictionary.fallout3functions['getfactioncombatreaction'] = new scriptFunction('unknown');
  5039. dictionary.fallout3functions['useweapon'] = new scriptFunction('void');
  5040. dictionary.fallout3functions['evaluatespellconditions'] = new scriptFunction('void');
  5041. dictionary.fallout3functions['esc'] = alias(dictionary.fallout3functions['evaluatespellconditions']);
  5042. dictionary.fallout3functions['togglemotionblur'] = new scriptFunction('void');
  5043. dictionary.fallout3functions['tmb'] = alias(dictionary.fallout3functions['togglemotionblur']);
  5044. dictionary.fallout3functions['exists'] = new scriptFunction('int', 'R', 0, [new scriptFunctionParam('ref', 'Target', 0)], {
  5045. docLink: 'http://geck.bethsoft.com/index.php/Exists',
  5046. name: 'Exists'
  5047. }, [new scriptFunctionNote(function (functionCall) {
  5048. return true;
  5049. }, '"Exists" is a condition function only. Use "GetIsReference" to compare two references', 1)]);
  5050. dictionary.fallout3functions['getgroupmembercount'] = new scriptFunction('int');
  5051. dictionary.fallout3functions['getgrouptargetcount'] = new scriptFunction('int');
  5052. dictionary.fallout3functions['setobjectivecompleted'] = new scriptFunction('void');
  5053. dictionary.fallout3functions['setobjectivedisplayed'] = new scriptFunction('void');
  5054. dictionary.fallout3functions['getobjectivecompleted'] = new scriptFunction('int');
  5055. dictionary.fallout3functions['getobjectivedisplayed'] = new scriptFunction('int');
  5056. dictionary.fallout3functions['setimagespace'] = new scriptFunction('void');
  5057. dictionary.fallout3functions['pipboyradio'] = new scriptFunction('void');
  5058. dictionary.fallout3functions['prad'] = alias(dictionary.fallout3functions['pipboyradio']);
  5059. dictionary.fallout3functions['removeperk'] = new scriptFunction('void');
  5060. dictionary.fallout3functions['disableallactors'] = new scriptFunction('void');
  5061. dictionary.fallout3functions['disaa'] = alias(dictionary.fallout3functions['disableallactors']);
  5062. dictionary.fallout3functions['getisformtype'] = new scriptFunction('int');
  5063. dictionary.fallout3functions['getisvoicetype'] = new scriptFunction('int');
  5064. dictionary.fallout3functions['getplantedexplosive'] = new scriptFunction('unknown');
  5065. dictionary.fallout3functions['completeallobjectives'] = new scriptFunction('void');
  5066. dictionary.fallout3functions['isactortalkingthroughactivator'] = new scriptFunction('int');
  5067. dictionary.fallout3functions['gethealthpercentage'] = new scriptFunction('float');
  5068. dictionary.fallout3functions['setaudiomultithreading'] = new scriptFunction('void');
  5069. dictionary.fallout3functions['sam'] = alias(dictionary.fallout3functions['setaudiomultithreading']);
  5070. dictionary.fallout3functions['getisobjecttype'] = new scriptFunction('int');
  5071. dictionary.fallout3functions['showchargenmenuparams'] = new scriptFunction('void');
  5072. dictionary.fallout3functions['scgmp'] = alias(dictionary.fallout3functions['showchargenmenuparams']);
  5073. dictionary.fallout3functions['getdialogueemotion'] = new scriptFunction('unknown');
  5074. dictionary.fallout3functions['getdialogueemotionvalue'] = new scriptFunction('unknown');
  5075. dictionary.fallout3functions['exitgame'] = new scriptFunction('void');
  5076. dictionary.fallout3functions['exit'] = alias(dictionary.fallout3functions['exitgame']);
  5077. dictionary.fallout3functions['getiscreaturetype'] = new scriptFunction('int');
  5078. dictionary.fallout3functions['setmerchantcontainer'] = new scriptFunction('void');
  5079. dictionary.fallout3functions['removemerchantcontainer'] = new scriptFunction('void');
  5080. dictionary.fallout3functions['showwarning'] = new scriptFunction('void', 'D', 0, [new scriptFunctionParam('ref', 'Message', 0)], {
  5081. docLink: 'http://geck.bethsoft.com/index.php/ShowWarning',
  5082. name: 'ShowWarning'
  5083. });
  5084. dictionary.fallout3functions['entertrigger'] = new scriptFunction('void');
  5085. dictionary.fallout3functions['markfordelete'] = new scriptFunction('void');
  5086. dictionary.fallout3functions['additemhealthpercent'] = new scriptFunction('void');
  5087. dictionary.fallout3functions['placeatmehealthpercent'] = new scriptFunction('ref');
  5088. dictionary.fallout3functions['getinzone'] = new scriptFunction('int');
  5089. dictionary.fallout3functions['disablenavmesh'] = new scriptFunction('void');
  5090. dictionary.fallout3functions['enablenavmesh'] = new scriptFunction('void');
  5091. dictionary.fallout3functions['hasperk'] = new scriptFunction('int');
  5092. dictionary.fallout3functions['getfactionrelation'] = new scriptFunction('int');
  5093. dictionary.fallout3functions['islastidleplayed'] = new scriptFunction('int');
  5094. dictionary.fallout3functions['setnpcradio'] = new scriptFunction('void');
  5095. dictionary.fallout3functions['snr'] = alias(dictionary.fallout3functions['setnpcradio']);
  5096. dictionary.fallout3functions['setplayerteammate'] = new scriptFunction('void');
  5097. dictionary.fallout3functions['getplayerteammate'] = new scriptFunction('int');
  5098. dictionary.fallout3functions['getplayerteammatecount'] = new scriptFunction('int');
  5099. dictionary.fallout3functions['openteammatecontainer'] = new scriptFunction('void');
  5100. dictionary.fallout3functions['clearfactionplayerenemyflag'] = new scriptFunction('void');
  5101. dictionary.fallout3functions['getactorcrimeplayerenemy'] = new scriptFunction('int');
  5102. dictionary.fallout3functions['getactorfactionplayerenemy'] = new scriptFunction('int');
  5103. dictionary.fallout3functions['setplayertagskill'] = new scriptFunction('void');
  5104. dictionary.fallout3functions['isplayertagskill'] = new scriptFunction('int');
  5105. dictionary.fallout3functions['getplayergrabbedref'] = new scriptFunction('ref');
  5106. dictionary.fallout3functions['isplayergrabbedref'] = new scriptFunction('int');
  5107. dictionary.fallout3functions['placeleveledactoratme'] = new scriptFunction('ref');
  5108. dictionary.fallout3functions['unusedfunction'] = new scriptFunction('void', 'D', 0, []);
  5109. dictionary.fallout3functions['showlockpickmenu'] = new scriptFunction('void');
  5110. dictionary.fallout3functions['slpm'] = alias(dictionary.fallout3functions['showlockpickmenu']);
  5111. dictionary.fallout3functions['getbroadcaststate'] = new scriptFunction('int');
  5112. dictionary.fallout3functions['setbroadcaststate'] = new scriptFunction('void');
  5113. dictionary.fallout3functions['startradioconversation'] = new scriptFunction('void');
  5114. dictionary.fallout3functions['getdestructionstage'] = new scriptFunction('int');
  5115. dictionary.fallout3functions['cleardestruction'] = new scriptFunction('void');
  5116. dictionary.fallout3functions['castimmediateonself'] = new scriptFunction('void', 'R', 0, [new scriptFunctionParam('ref', 'Spell')], {
  5117. docLink: 'http://geck.bethsoft.com/index.php/CastImmediateOnSelf',
  5118. name: 'CastImmediateOnSelf',
  5119. shortName: 'CIOS',
  5120. longName: 'CastImmediateOnSelf'
  5121. });
  5122. dictionary.fallout3functions['cios'] = alias(dictionary.fallout3functions['castimmediateonself']);
  5123. dictionary.fallout3functions['getisalignment'] = new scriptFunction('int');
  5124. dictionary.fallout3functions['resetquest'] = new scriptFunction('void');
  5125. dictionary.fallout3functions['setquestdelay'] = new scriptFunction('void');
  5126. dictionary.fallout3functions['forceactivequest'] = new scriptFunction('void');
  5127. dictionary.fallout3functions['getthreatratio'] = new scriptFunction('unknown');
  5128. dictionary.fallout3functions['matchfacegeometry'] = new scriptFunction('void');
  5129. dictionary.fallout3functions['getisuseditemequiptype'] = new scriptFunction('int');
  5130. dictionary.fallout3functions['getplayername'] = new scriptFunction('void');
  5131. dictionary.fallout3functions['fireweapon'] = new scriptFunction('void');
  5132. dictionary.fallout3functions['showtutorialmenu'] = new scriptFunction('void');
  5133. dictionary.fallout3functions['agerace'] = new scriptFunction('void');
  5134. dictionary.fallout3functions['matchrace'] = new scriptFunction('void');
  5135. dictionary.fallout3functions['setpcyoung'] = new scriptFunction('void');
  5136. dictionary.fallout3functions['sexchange'] = new scriptFunction('void');
  5137. dictionary.fallout3functions['showspecialbookmenu'] = new scriptFunction('void');
  5138. dictionary.fallout3functions['ssbm'] = alias(dictionary.fallout3functions['showspecialbookmenu']);
  5139. dictionary.fallout3functions['getconcussed'] = new scriptFunction('unknown');
  5140. dictionary.fallout3functions['setzonerespawns'] = new scriptFunction('void');
  5141. dictionary.fallout3functions['setvatstarget'] = new scriptFunction('void');
  5142. dictionary.fallout3functions['getmapmarkervisible'] = new scriptFunction('int');
  5143. dictionary.fallout3functions['resetinventory'] = new scriptFunction('void');
  5144. dictionary.fallout3functions['showspecialbookmenuparams'] = new scriptFunction('void');
  5145. dictionary.fallout3functions['ssbmp'] = alias(dictionary.fallout3functions['showspecialbookmenuparams']);
  5146. dictionary.fallout3functions['getpermanentactorvalue'] = new scriptFunction('float', 'R', 0, [new scriptFunctionParam('string', 'StatName', false, dictionary.values.actorValues)], {
  5147. docLink: 'http://geck.bethsoft.com/index.php/GetPermanentActorValue',
  5148. name: 'GetPermanentActorValue',
  5149. shortName: 'GetPermAV',
  5150. longName: 'GetPermanentActorValue'
  5151. });
  5152. dictionary.fallout3functions['getpermav'] = alias(dictionary.fallout3functions['getpermanentactorvalue']);
  5153. dictionary.fallout3functions['getkillingblowlimb'] = new scriptFunction('int', 'R', 0, [], {
  5154. docLink: 'http://geck.bethsoft.com/index.php/GetKillingBlowLimb',
  5155. name: 'GetKillingBlowLimb'
  5156. });
  5157. dictionary.fallout3functions['showbarbermenu'] = new scriptFunction('void');
  5158. dictionary.fallout3functions['showplasticsurgeonmenu'] = new scriptFunction('void');
  5159. dictionary.fallout3functions['triggerlodapocalypse'] = new scriptFunction('void');
  5160. dictionary.fallout3functions['getweaponhealthperc'] = new scriptFunction('int');
  5161. dictionary.fallout3functions['setweaponhealthperc'] = new scriptFunction('void');
  5162. dictionary.fallout3functions['modweaponhealthperc'] = new scriptFunction('void');
  5163. dictionary.fallout3functions['getradiationlevel'] = new scriptFunction('int');
  5164. dictionary.fallout3functions['showallmapmarkers'] = new scriptFunction('void');
  5165. dictionary.fallout3functions['tmm'] = alias(dictionary.fallout3functions['showallmapmarkers']);
  5166. dictionary.fallout3functions['showchargenmenumodvalues'] = new scriptFunction('void');
  5167. dictionary.fallout3functions['scgmod'] = alias(dictionary.fallout3functions['showchargenmenumodvalues']);
  5168. dictionary.fallout3functions['resetai'] = new scriptFunction('void');
  5169. dictionary.fallout3functions['setrumble'] = new scriptFunction('void');
  5170. dictionary.fallout3functions['setnoactivationsound'] = new scriptFunction('void');
  5171. dictionary.fallout3functions['clearnoactivationsound'] = new scriptFunction('void');
  5172. dictionary.fallout3functions['getlasthitcritical'] = new scriptFunction('int');
  5173. dictionary.fallout3functions['playmusic'] = new scriptFunction('void');
  5174. dictionary.fallout3functions['setlocationspecificloadscreensonly'] = new scriptFunction('void');
  5175. dictionary.fallout3functions['resetpipboymanager'] = new scriptFunction('void');
  5176. dictionary.fallout3functions['setpctoddler'] = new scriptFunction('void');
  5177. dictionary.fallout3functions['iscombattarget'] = new scriptFunction('int');
  5178. dictionary.fallout3functions['rewardkarma'] = new scriptFunction('void');
  5179. dictionary.fallout3functions['triggerscreenblood'] = new scriptFunction('void');
  5180. dictionary.fallout3functions['tsb'] = alias(dictionary.fallout3functions['triggerscreenblood']);
  5181. dictionary.fallout3functions['getvatsrightareafree'] = new scriptFunction('int');
  5182. dictionary.fallout3functions['getvatsleftareafree'] = new scriptFunction('int');
  5183. dictionary.fallout3functions['getvatsbackareafree'] = new scriptFunction('int');
  5184. dictionary.fallout3functions['getvatsfrontareafree'] = new scriptFunction('int');
  5185. dictionary.fallout3functions['getislockbroken'] = new scriptFunction('int');
  5186. dictionary.fallout3functions['isps3'] = new scriptFunction('int', 'B', 0, [], {
  5187. docLink: 'http://geck.bethsoft.com/index.php/IsPS3',
  5188. name: 'IsPS3'
  5189. }, [new scriptFunctionNote(function (functionCall) {
  5190. return true;
  5191. }, '"IsPS3" will always return 0', 1)]);
  5192. dictionary.fallout3functions['iswin32'] = new scriptFunction('int', 'B', 0, [], {
  5193. docLink: 'http://geck.bethsoft.com/index.php/IsWin32',
  5194. name: 'IsWin32'
  5195. }, [new scriptFunctionNote(function (functionCall) {
  5196. return true;
  5197. }, '"IsWin32" will always return 1', 1)]);
  5198. dictionary.fallout3functions['getvatsrighttargetvisible'] = new scriptFunction('int');
  5199. dictionary.fallout3functions['getvatslefttargetvisible'] = new scriptFunction('int');
  5200. dictionary.fallout3functions['getvatsbacktargetvisible'] = new scriptFunction('int');
  5201. dictionary.fallout3functions['getvatsfronttargetvisible'] = new scriptFunction('int');
  5202. dictionary.fallout3functions['attachashpile'] = new scriptFunction('void');
  5203. dictionary.fallout3functions['setcriticalstage'] = new scriptFunction('void');
  5204. dictionary.fallout3functions['isincriticalstage'] = new scriptFunction('int');
  5205. dictionary.fallout3functions['removefromallfactions'] = new scriptFunction('void');
  5206. dictionary.fallout3functions['getxpfornextlevel'] = new scriptFunction('void');
  5207. dictionary.fallout3functions['showlockpickmenudebug'] = new scriptFunction('void');
  5208. dictionary.fallout3functions['slpmb'] = alias(dictionary.fallout3functions['showlockpickmenudebug']);
  5209. dictionary.fallout3functions['forcesave'] = new scriptFunction('void');
  5210. dictionary.fallout3functions['setspecialpoints'] = new scriptFunction('void');
  5211. dictionary.fallout3functions['addspecialpoints'] = new scriptFunction('void');
  5212. dictionary.fallout3functions['settagskills'] = new scriptFunction('void');
  5213. dictionary.fallout3functions['addtagskills'] = new scriptFunction('void');
  5214. dictionary.fallout3functions['sin'] = new scriptFunction('float', 'B', 0, [new scriptFunctionParam('float', 'x'), new scriptFunctionParam('int', 'arcsine flag', true)], {
  5215. docLink: 'http://geck.bethsoft.com/index.php/Sin',
  5216. name: 'sin'
  5217. });
  5218. dictionary.fallout3functions['cos'] = new scriptFunction('float', 'B', 0, [new scriptFunctionParam('float', 'x'), new scriptFunctionParam('int', 'arccosine flag', true)], {
  5219. docLink: 'http://geck.bethsoft.com/index.php/Cos',
  5220. name: 'cos'
  5221. });
  5222. dictionary.fallout3functions['tan'] = new scriptFunction('float', 'B', 0, [new scriptFunctionParam('float', 'x'), new scriptFunctionParam('int', 'arctangent flag', true)], {
  5223. docLink: 'http://geck.bethsoft.com/index.php/Tan',
  5224. name: 'tan'
  5225. });
  5226. dictionary.fallout3functions['sqrt'] = new scriptFunction('float', 'B', 0, [new scriptFunctionParam('float', 'x')], {
  5227. docLink: 'http://geck.bethsoft.com/index.php/Sqrt',
  5228. name: 'sqrt'
  5229. });
  5230. dictionary.fallout3functions['log'] = new scriptFunction('float', 'B', 0, [new scriptFunctionParam('float', 'x'), new scriptFunctionParam('float', 'base', true)], {
  5231. docLink: 'http://geck.bethsoft.com/index.php/Log',
  5232. name: 'log'
  5233. });
  5234. dictionary.fallout3functions['abs'] = new scriptFunction('float', 'B', 0, [new scriptFunctionParam('float', 'x')], {
  5235. docLink: 'http://geck.bethsoft.com/index.php/Abs',
  5236. name: 'abs'
  5237. });
  5238. dictionary.fallout3functions['getquestcompleted'] = new scriptFunction('int');
  5239. dictionary.fallout3functions['getqc'] = alias(dictionary.fallout3functions['getquestcompleted']);
  5240. dictionary.fallout3functions['forceterminalback'] = new scriptFunction('void');
  5241. dictionary.fallout3functions['pipboyradiooff'] = new scriptFunction('void');
  5242. dictionary.fallout3functions['autodisplayobjectives'] = new scriptFunction('void');
  5243. dictionary.fallout3functions['isgoredisabled'] = new scriptFunction('int');
  5244. dictionary.fallout3functions['fadesfx'] = new scriptFunction('void');
  5245. dictionary.fallout3functions['fsfx'] = alias(dictionary.fallout3functions['fadesfx']);
  5246. dictionary.fallout3functions['setminimaluse'] = new scriptFunction('void');
  5247. dictionary.fallout3functions['setpccanusepowerarmor'] = new scriptFunction('void');
  5248. dictionary.fallout3functions['showqueststages'] = new scriptFunction('void');
  5249. dictionary.fallout3functions['sqs'] = alias(dictionary.fallout3functions['showqueststages']);
  5250. dictionary.fallout3functions['getspellusagenum'] = new scriptFunction('void', 'D', 0, []);
  5251. dictionary.fallout3functions['forceradiostationupdate'] = new scriptFunction('void');
  5252. dictionary.fallout3functions['frsu'] = alias(dictionary.fallout3functions['forceradiostationupdate']);
  5253. dictionary.fallout3functions['getactorsinhigh'] = new scriptFunction('void', 'D', 0, []);
  5254. dictionary.fallout3functions['hasloaded3d'] = new scriptFunction('int');
  5255. dictionary.fallout3functions['disableallmines'] = new scriptFunction('void');
  5256. dictionary.fallout3functions['setlastextdooractivated'] = new scriptFunction('void');
  5257. dictionary.fallout3functions['killquestupdates'] = new scriptFunction('void');
  5258. dictionary.fallout3functions['kqu'] = alias(dictionary.fallout3functions['killquestupdates']);
  5259. dictionary.fallout3functions['isimagespaceactive'] = new scriptFunction('int');
  5260. dictionary.fallout3functions['remapwatertype'] = new scriptFunction('void');
  5261. dictionary.fallout3functions['additemtoleveledlist'] = new scriptFunction('void');
  5262. dictionary.fallout3functions['addcreaturetoleveledlist'] = new scriptFunction('void');
  5263. dictionary.fallout3functions['addnpctoleveledlist'] = new scriptFunction('void');
  5264. dictionary.fallout3functions['addformtoformlist'] = new scriptFunction('void');
  5265. } {
  5266. dictionary.fosefunctions['addspellns'] = new scriptFunction('void', 'R', 1.00, [new scriptFunctionParam('ref', 'spell')], {
  5267. docLink: 'http://fose.silverlock.org/fose_command_doc.html#AddSpellNS',
  5268. name: 'AddSpellNS'
  5269. });
  5270. dictionary.fosefunctions['ceil'] = new scriptFunction('float', 'B', 1.00, [new scriptFunctionParam('float', 'float')], {
  5271. docLink: 'http://fose.silverlock.org/fose_command_doc.html#Ceil',
  5272. name: 'Ceil'
  5273. });
  5274. dictionary.fosefunctions['comparenames'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'inv item'), new scriptFunctionParam('ref', 'target item', true)], {
  5275. docLink: 'http://fose.silverlock.org/fose_command_doc.html#CompareNames',
  5276. name: 'CompareNames'
  5277. });
  5278. dictionary.fosefunctions['con_closeallmenus'] = new scriptFunction('void', 'B', 1.00, [], {
  5279. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_CloseAllMenus',
  5280. name: 'con_CloseAllMenus'
  5281. });
  5282. dictionary.fosefunctions['con_getinisetting'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'settingName')], {
  5283. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_GetINISetting',
  5284. name: 'con_GetINISetting'
  5285. });
  5286. dictionary.fosefunctions['con_loadgame'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'filename'), new scriptFunctionParam('int', 'Integer', true)], {
  5287. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_LoadGame',
  5288. name: 'con_LoadGame'
  5289. });
  5290. dictionary.fosefunctions['con_quitgame'] = new scriptFunction('void', 'B', 1.00, [], {
  5291. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_QuitGame',
  5292. name: 'con_QuitGame'
  5293. });
  5294. dictionary.fosefunctions['con_refreshini'] = new scriptFunction('void', 'B', 1.00, [], {
  5295. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_RefreshINI',
  5296. name: 'con_RefreshINI'
  5297. });
  5298. dictionary.fosefunctions['con_save'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'saveName'), new scriptFunctionParam('int', 'Integer', true)], {
  5299. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_Save',
  5300. name: 'con_Save'
  5301. });
  5302. dictionary.fosefunctions['con_saveini'] = new scriptFunction('void', 'B', 1.00, [], {
  5303. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_SaveINI',
  5304. name: 'con_SaveINI'
  5305. });
  5306. dictionary.fosefunctions['con_setcamerafov'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('float', 'Float', true), new scriptFunctionParam('float', 'Float', true)], {
  5307. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_SetCameraFOV',
  5308. name: 'con_SetCameraFOV'
  5309. });
  5310. dictionary.fosefunctions['con_setgamesetting'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'settingName'), new scriptFunctionParam('string', 'newValue')], {
  5311. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_SetGameSetting',
  5312. name: 'con_SetGameSetting'
  5313. });
  5314. dictionary.fosefunctions['con_setinisetting'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'setting'), new scriptFunctionParam('string', 'newValue')], {
  5315. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_SetINISetting',
  5316. name: 'con_SetINISetting'
  5317. });
  5318. dictionary.fosefunctions['con_setvel'] = new scriptFunction('void', 'R', 1.00, [new scriptFunctionParam('string', 'Axis', false, dictionary.values.axes), new scriptFunctionParam('float', 'Float')], {
  5319. docLink: 'http://fose.silverlock.org/fose_command_doc.html#con_SetVel',
  5320. name: 'con_SetVel'
  5321. });
  5322. dictionary.fosefunctions['debugprint'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'format string'), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true)], {
  5323. docLink: 'http://fose.silverlock.org/fose_command_doc.html#DebugPrint',
  5324. name: 'DebugPrint',
  5325. shortName: 'dbprintc',
  5326. longName: 'DebugPrint'
  5327. });
  5328. dictionary.fosefunctions['dbprintc'] = alias(dictionary.fosefunctions['debugprint']);
  5329. dictionary.fosefunctions['disablecontrol'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  5330. docLink: 'http://fose.silverlock.org/fose_command_doc.html#DisableControl',
  5331. name: 'DisableControl',
  5332. shortName: 'dc',
  5333. longName: 'DisableControl'
  5334. });
  5335. dictionary.fosefunctions['dc'] = alias(dictionary.fosefunctions['disablecontrol']);
  5336. dictionary.fosefunctions['disablekey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  5337. docLink: 'http://fose.silverlock.org/fose_command_doc.html#DisableKey',
  5338. name: 'DisableKey',
  5339. shortName: 'dk',
  5340. longName: 'DisableKey'
  5341. });
  5342. dictionary.fosefunctions['dk'] = alias(dictionary.fosefunctions['disablekey']);
  5343. dictionary.fosefunctions['enablecontrol'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  5344. docLink: 'http://fose.silverlock.org/fose_command_doc.html#EnableControl',
  5345. name: 'EnableControl',
  5346. shortName: 'ec',
  5347. longName: 'EnableControl'
  5348. });
  5349. dictionary.fosefunctions['ec'] = alias(dictionary.fosefunctions['enablecontrol']);
  5350. dictionary.fosefunctions['enablekey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  5351. docLink: 'http://fose.silverlock.org/fose_command_doc.html#EnableKey',
  5352. name: 'EnableKey',
  5353. shortName: 'ek',
  5354. longName: 'EnableKey'
  5355. });
  5356. dictionary.fosefunctions['ek'] = alias(dictionary.fosefunctions['enablekey']);
  5357. dictionary.fosefunctions['exp'] = new scriptFunction('float', 'B', 1.00, [new scriptFunctionParam('float', 'float')], {
  5358. docLink: 'http://fose.silverlock.org/fose_command_doc.html#Exp',
  5359. name: 'Exp'
  5360. });
  5361. dictionary.fosefunctions['floor'] = new scriptFunction('float', 'B', 1.00, [new scriptFunctionParam('float', 'float')], {
  5362. docLink: 'http://fose.silverlock.org/fose_command_doc.html#Floor',
  5363. name: 'Floor',
  5364. shortName: 'flr',
  5365. longName: 'Floor'
  5366. });
  5367. dictionary.fosefunctions['flr'] = alias(dictionary.fosefunctions['floor']);
  5368. dictionary.fosefunctions['fmod'] = new scriptFunction('float', 'B', 1.00, [new scriptFunctionParam('float', 'x'), new scriptFunctionParam('float', 'n'), new scriptFunctionParam('float', 'offset', true)], {
  5369. docLink: 'http://fose.silverlock.org/fose_command_doc.html#fmod',
  5370. name: 'fmod'
  5371. });
  5372. dictionary.fosefunctions['getaltcontrol'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  5373. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetAltControl',
  5374. name: 'GetAltControl'
  5375. });
  5376. dictionary.fosefunctions['getarmorarmorrating'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5377. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetArmorAR',
  5378. name: 'GetArmorAR',
  5379. shortName: 'GetArmorAR',
  5380. longName: 'GetArmorArmorRating'
  5381. });
  5382. dictionary.fosefunctions['getarmorar'] = alias(dictionary.fosefunctions['getarmorarmorrating']);
  5383. dictionary.fosefunctions['getattackdamage'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5384. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetAttackDamage',
  5385. name: 'GetAttackDamage',
  5386. shortName: 'GetDamage',
  5387. longName: 'GetAttackDamage'
  5388. });
  5389. dictionary.fosefunctions['getdamage'] = alias(dictionary.fosefunctions['getattackdamage']);
  5390. dictionary.fosefunctions['getbaseobject'] = new scriptFunction('ref', 'R', 1.00, [], {
  5391. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetBaseObject',
  5392. name: 'GetBaseObject',
  5393. shortName: 'gbo',
  5394. longName: 'GetBaseObject'
  5395. });
  5396. dictionary.fosefunctions['gbo'] = alias(dictionary.fosefunctions['getbaseobject']);
  5397. dictionary.fosefunctions['getcontrol'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  5398. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetControl',
  5399. name: 'GetControl'
  5400. });
  5401. dictionary.fosefunctions['getcrosshairref'] = new scriptFunction('ref', 'B', 1.00, [], {
  5402. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetCrosshairRef',
  5403. name: 'GetCrosshairRef'
  5404. });
  5405. dictionary.fosefunctions['getdebugmode'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'modIndex', true)], {
  5406. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetDebugMode',
  5407. name: 'GetDebugMode',
  5408. shortName: 'GetDBMode',
  5409. longName: 'GetDebugMode'
  5410. });
  5411. dictionary.fosefunctions['getdbmode'] = alias(dictionary.fosefunctions['getdebugmode']);
  5412. dictionary.fosefunctions['getequippedcurrenthealth'] = new scriptFunction('float', 'R', 1.00, [new scriptFunctionParam('int', 'equipmentSlot')], {
  5413. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetEquippedCurrentHealth',
  5414. name: 'GetEquippedCurrentHealth',
  5415. shortName: 'GetEqCurHealth',
  5416. longName: 'GetEquippedCurrentHealth'
  5417. });
  5418. dictionary.fosefunctions['geteqcurhealth'] = alias(dictionary.fosefunctions['getequippedcurrenthealth']);
  5419. dictionary.fosefunctions['getequippedobject'] = new scriptFunction('ref', 'R', 1.00, [new scriptFunctionParam('int', 'atIndex')], {
  5420. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetEquippedObject',
  5421. name: 'GetEquippedObject',
  5422. shortName: 'GetEqObj',
  5423. longName: 'GetEquippedObject'
  5424. });
  5425. dictionary.fosefunctions['geteqobj'] = alias(dictionary.fosefunctions['getequippedobject']);
  5426. dictionary.fosefunctions['getequiptype'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5427. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetEquipType',
  5428. name: 'GetEquipType'
  5429. });
  5430. dictionary.fosefunctions['getfirstref'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('int', 'form type', true), new scriptFunctionParam('int', 'cell depth', true), new scriptFunctionParam('int', 'include taken refs', true)], {
  5431. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetFirstRef',
  5432. name: 'GetFirstRef'
  5433. });
  5434. dictionary.fosefunctions['getfirstrefincell'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('ref', 'cell'), new scriptFunctionParam('int', 'form type', true), new scriptFunctionParam('int', 'cell depth', true), new scriptFunctionParam('int', 'include taken refs', true)], {
  5435. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetFirstRefInCell',
  5436. name: 'GetFirstRefInCell'
  5437. });
  5438. dictionary.fosefunctions['getfosebeta'] = new scriptFunction('int', 'B', 1.00, [], {
  5439. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetFOSEBeta',
  5440. name: 'GetFOSEBeta'
  5441. });
  5442. dictionary.fosefunctions['getfoserevision'] = new scriptFunction('int', 'B', 1.00, [], {
  5443. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetFOSERevision',
  5444. name: 'GetFOSERevision'
  5445. });
  5446. dictionary.fosefunctions['getfoseversion'] = new scriptFunction('int', 'B', 1.00, [], {
  5447. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetFOSEVersion',
  5448. name: 'GetFOSEVersion'
  5449. });
  5450. dictionary.fosefunctions['getgameloaded'] = new scriptFunction('int', 'B', 1.00, [], {
  5451. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetGameLoaded',
  5452. name: 'GetGameLoaded'
  5453. });
  5454. dictionary.fosefunctions['getgamerestarted'] = new scriptFunction('int', 'B', 1.00, [], {
  5455. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetGameRestarted',
  5456. name: 'GetGameRestarted'
  5457. });
  5458. dictionary.fosefunctions['getbasehealth'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5459. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetHealth',
  5460. name: 'GetBaseHealth',
  5461. shortName: 'GetHealth',
  5462. longName: 'GetBaseHealth'
  5463. });
  5464. dictionary.fosefunctions['gethealth'] = alias(dictionary.fosefunctions['getbasehealth']);
  5465. dictionary.fosefunctions['gethotkeyitem'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('int', 'hotkey')], {
  5466. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetHotkeyItem',
  5467. name: 'GetHotkeyItem'
  5468. });
  5469. dictionary.fosefunctions['getkeypress'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'index')], {
  5470. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetKeyPress',
  5471. name: 'GetKeyPress',
  5472. shortName: 'gkp',
  5473. longName: 'GetKeyPress'
  5474. });
  5475. dictionary.fosefunctions['gkp'] = alias(dictionary.fosefunctions['getkeypress']);
  5476. dictionary.fosefunctions['getlinkeddoor'] = new scriptFunction('ref', 'R', 1.00, [], {
  5477. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetLinkedDoor',
  5478. name: 'GetLinkedDoor'
  5479. });
  5480. dictionary.fosefunctions['getmodindex'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('string', 'modName')], {
  5481. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetModIndex',
  5482. name: 'GetModIndex'
  5483. });
  5484. dictionary.fosefunctions['getmousebuttonpress'] = new scriptFunction('FixMe', 'B', 1.00, [new scriptFunctionParam('int', 'index')], {
  5485. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetMouseButtonPress',
  5486. name: 'GetMouseButtonPress',
  5487. shortName: 'gmbp',
  5488. longName: 'GetMouseButtonPress'
  5489. });
  5490. dictionary.fosefunctions['gmbp'] = alias(dictionary.fosefunctions['getmousebuttonpress']);
  5491. dictionary.fosefunctions['getnextref'] = new scriptFunction('ref', 'B', 1.00, [], {
  5492. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNextRef',
  5493. name: 'GetNextRef'
  5494. });
  5495. dictionary.fosefunctions['getnumericgamesetting'] = new scriptFunction('IntegerOrFloat', 'B', 1.00, [new scriptFunctionParam('string', 'settingName')], {
  5496. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumericGameSetting',
  5497. name: 'GetNumericGameSetting'
  5498. });
  5499. dictionary.fosefunctions['getnumericinisetting'] = new scriptFunction('IntegerOrFloat', 'B', 1.00, [new scriptFunctionParam('string', 'settingName')], {
  5500. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumericINISetting',
  5501. name: 'GetNumericINISetting'
  5502. });
  5503. dictionary.fosefunctions['getnumkeyspressed'] = new scriptFunction('int', 'B', 1.00, [], {
  5504. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumKeysPressed',
  5505. name: 'GetNumKeysPressed',
  5506. shortName: 'gnkp',
  5507. longName: 'GetNumKeysPressed'
  5508. });
  5509. dictionary.fosefunctions['gnkp'] = alias(dictionary.fosefunctions['getnumkeyspressed']);
  5510. dictionary.fosefunctions['getnumloadedmods'] = new scriptFunction('int', 'B', 1.00, [], {
  5511. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumLoadedMods',
  5512. name: 'GetNumLoadedMods'
  5513. });
  5514. dictionary.fosefunctions['getnummousebuttonspressed'] = new scriptFunction('int', 'B', 1.00, [], {
  5515. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumMouseButtonsPressed',
  5516. name: 'GetNumMouseButtonsPressed',
  5517. shortName: 'gnmbp',
  5518. longName: 'GetNumMouseButtonsPressed'
  5519. });
  5520. dictionary.fosefunctions['gnmbp'] = alias(dictionary.fosefunctions['getnummousebuttonspressed']);
  5521. dictionary.fosefunctions['getnumrefs'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'form type', true), new scriptFunctionParam('int', 'cell depth', true), new scriptFunctionParam('int', 'include taken refs', true)], {
  5522. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumRefs',
  5523. name: 'GetNumRefs'
  5524. });
  5525. dictionary.fosefunctions['getnumrefsincell'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'cell'), new scriptFunctionParam('int', 'form type', true), new scriptFunctionParam('int', 'cell depth', true), new scriptFunctionParam('int', 'include taken refs', true)], {
  5526. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetNumRefsInCell',
  5527. name: 'GetNumRefsInCell'
  5528. });
  5529. dictionary.fosefunctions['getobjecteffect'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5530. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetObjectEffect',
  5531. name: 'GetObjectEffect',
  5532. shortName: 'GetEnchantment',
  5533. longName: 'GetObjectEffect'
  5534. });
  5535. dictionary.fosefunctions['getenchantment'] = alias(dictionary.fosefunctions['getobjecteffect']);
  5536. dictionary.fosefunctions['getopenkey'] = new scriptFunction('ref', 'R', 1.00, [], {
  5537. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetOpenKey',
  5538. name: 'GetOpenKey',
  5539. shortName: 'GetKey',
  5540. longName: 'GetOpenKey'
  5541. });
  5542. dictionary.fosefunctions['getkey'] = alias(dictionary.fosefunctions['getopenkey']);
  5543. dictionary.fosefunctions['getparentcell'] = new scriptFunction('ref', 'R', 1.00, [], {
  5544. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetParentCell',
  5545. name: 'GetParentCell',
  5546. shortName: 'gpc',
  5547. longName: 'GetParentCell'
  5548. });
  5549. dictionary.fosefunctions['gpc'] = alias(dictionary.fosefunctions['getparentcell']);
  5550. dictionary.fosefunctions['getparentworldspace'] = new scriptFunction('ref', 'R', 1.00, [], {
  5551. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetParentWorldspace',
  5552. name: 'GetParentWorldspace',
  5553. shortName: 'gpw',
  5554. longName: 'GetParentWorldspace'
  5555. });
  5556. dictionary.fosefunctions['gpw'] = alias(dictionary.fosefunctions['getparentworldspace']);
  5557. dictionary.fosefunctions['getrepairlist'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5558. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetRepairList',
  5559. name: 'GetRepairList',
  5560. shortName: 'grl',
  5561. longName: 'GetRepairList'
  5562. });
  5563. dictionary.fosefunctions['grl'] = alias(dictionary.fosefunctions['getrepairlist']);
  5564. dictionary.fosefunctions['getscript'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5565. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetScript',
  5566. name: 'GetScript'
  5567. });
  5568. dictionary.fosefunctions['getsourcemodindex'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5569. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetSourceModIndex',
  5570. name: 'GetSourceModIndex'
  5571. });
  5572. dictionary.fosefunctions['getteleportcell'] = new scriptFunction('ref', 'R', 1.00, [], {
  5573. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetTeleportCell',
  5574. name: 'GetTeleportCell'
  5575. });
  5576. dictionary.fosefunctions['getobjecttype'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5577. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetType',
  5578. name: 'GetObjectType',
  5579. shortName: 'GetType',
  5580. longName: 'GetObjectType'
  5581. });
  5582. dictionary.fosefunctions['gettype'] = alias(dictionary.fosefunctions['getobjecttype']);
  5583. dictionary.fosefunctions['getuifloat'] = new scriptFunction('float', 'B', 1.00, [new scriptFunctionParam('string', 'traitName')], {
  5584. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetUIFloat',
  5585. name: 'GetUIFloat'
  5586. });
  5587. dictionary.fosefunctions['getitemvalue'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5588. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetValue',
  5589. name: 'GetItemValue',
  5590. shortName: 'GetValue',
  5591. longName: 'GetItemValue'
  5592. });
  5593. dictionary.fosefunctions['getvalue'] = alias(dictionary.fosefunctions['getitemvalue']);
  5594. dictionary.fosefunctions['getweaponactionpoints'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5595. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponActionPoints',
  5596. name: 'GetWeaponActionPoints',
  5597. shortName: 'GetAP',
  5598. longName: 'GetWeaponActionPoints'
  5599. });
  5600. dictionary.fosefunctions['getap'] = alias(dictionary.fosefunctions['getweaponactionpoints']);
  5601. dictionary.fosefunctions['getweaponaimarc'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5602. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAimArm',
  5603. name: 'GetWeaponAimArm',
  5604. shortName: 'GetAimArc',
  5605. longName: 'GetWeaponAimArm'
  5606. });
  5607. dictionary.fosefunctions['getaimarc'] = alias(dictionary.fosefunctions['getweaponaimarc']);
  5608. dictionary.fosefunctions['getweaponammo'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5609. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAmmo',
  5610. name: 'GetWeaponAmmo',
  5611. shortName: 'GetAmmo',
  5612. longName: 'GetWeaponAmmo'
  5613. });
  5614. dictionary.fosefunctions['getammo'] = alias(dictionary.fosefunctions['getweaponammo']);
  5615. dictionary.fosefunctions['getweaponammouse'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5616. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAmmoUse',
  5617. name: 'GetWeaponAmmoUse',
  5618. shortName: 'GetAmmoUse',
  5619. longName: 'GetWeaponAmmoUse'
  5620. });
  5621. dictionary.fosefunctions['getammouse'] = alias(dictionary.fosefunctions['getweaponammouse']);
  5622. dictionary.fosefunctions['getweaponanimattackmult'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5623. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAnimAttackMult',
  5624. name: 'GetWeaponAnimAttackMult',
  5625. shortName: 'GetAnimAttackMult',
  5626. longName: 'GetWeaponAnimAttackMult'
  5627. });
  5628. dictionary.fosefunctions['getanimattackmult'] = alias(dictionary.fosefunctions['getweaponanimattackmult']);
  5629. dictionary.fosefunctions['getweaponanimjamtime'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5630. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAnimJamTime',
  5631. name: 'GetWeaponAnimJamTime',
  5632. shortName: 'GetAnimJamTime',
  5633. longName: 'GetWeaponAnimJamTime'
  5634. });
  5635. dictionary.fosefunctions['getanimjamtime'] = alias(dictionary.fosefunctions['getweaponanimjamtime']);
  5636. dictionary.fosefunctions['getweaponanimmult'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5637. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAnimMult',
  5638. name: 'GetWeaponAnimMult',
  5639. shortName: 'GetAnimMult',
  5640. longName: 'GetWeaponAnimMult'
  5641. });
  5642. dictionary.fosefunctions['getanimmult'] = alias(dictionary.fosefunctions['getweaponanimmult']);
  5643. dictionary.fosefunctions['getweaponanimreloadtime'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5644. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAnimReloadTime',
  5645. name: 'GetWeaponAnimReloadTime',
  5646. shortName: 'GetAnimReloadTime',
  5647. longName: 'GetWeaponAnimReloadTime'
  5648. });
  5649. dictionary.fosefunctions['getanimreloadtime'] = alias(dictionary.fosefunctions['getweaponanimreloadtime']);
  5650. dictionary.fosefunctions['getweaponanimshotspersec'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5651. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAnimShotsPerSec',
  5652. name: 'GetWeaponAnimShotsPerSec',
  5653. shortName: 'GetAnimShotsPerSec',
  5654. longName: 'GetWeaponAnimShotsPerSec'
  5655. });
  5656. dictionary.fosefunctions['getanimshotspersec'] = alias(dictionary.fosefunctions['getweaponanimshotspersec']);
  5657. dictionary.fosefunctions['getweaponattackanimation'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5658. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponAttackAnimation',
  5659. name: 'GetWeaponAttackAnimation',
  5660. shortName: 'GetAttackAnim',
  5661. longName: 'GetWeaponAttackAnimation'
  5662. });
  5663. dictionary.fosefunctions['getattackanim'] = alias(dictionary.fosefunctions['getweaponattackanimation']);
  5664. dictionary.fosefunctions['getweaponbasevatschance'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5665. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponBaseVATSChance',
  5666. name: 'GetWeaponBaseVATSChance',
  5667. shortName: 'GetVATSChance',
  5668. longName: 'GetWeaponBaseVATSChance'
  5669. });
  5670. dictionary.fosefunctions['getvatschance'] = alias(dictionary.fosefunctions['getweaponbasevatschance']);
  5671. dictionary.fosefunctions['getweaponcliprounds'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5672. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponClipRounds',
  5673. name: 'GetWeaponClipRounds',
  5674. shortName: 'GetClipSize',
  5675. longName: 'GetWeaponClipRounds'
  5676. });
  5677. dictionary.fosefunctions['getclipsize'] = alias(dictionary.fosefunctions['getweaponcliprounds']);
  5678. dictionary.fosefunctions['getweaponcritchance'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5679. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponCritChance',
  5680. name: 'GetWeaponCritChance',
  5681. shortName: 'GetCritPerc',
  5682. longName: 'GetWeaponCritChance'
  5683. });
  5684. dictionary.fosefunctions['getcritperc'] = alias(dictionary.fosefunctions['getweaponcritchance']);
  5685. dictionary.fosefunctions['getweaponcritdamage'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5686. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponCritDamage',
  5687. name: 'GetWeaponCritDamage',
  5688. shortName: 'GetCritDam',
  5689. longName: 'GetWeaponCritDamage'
  5690. });
  5691. dictionary.fosefunctions['getcritdam'] = alias(dictionary.fosefunctions['getweaponcritdamage']);
  5692. dictionary.fosefunctions['getweaponcriteffect'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5693. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponCritEffect',
  5694. name: 'GetWeaponCritEffect',
  5695. shortName: 'GetCritEffect',
  5696. longName: 'GetWeaponCritEffect'
  5697. });
  5698. dictionary.fosefunctions['getcriteffect'] = alias(dictionary.fosefunctions['getweaponcriteffect']);
  5699. dictionary.fosefunctions['getweaponfiredelaymax'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5700. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponFireDelayMax',
  5701. name: 'GetWeaponFireDelayMax',
  5702. shortName: 'GetFireDelayMax',
  5703. longName: 'GetWeaponFireDelayMax'
  5704. });
  5705. dictionary.fosefunctions['getfiredelaymax'] = alias(dictionary.fosefunctions['getweaponfiredelaymax']);
  5706. dictionary.fosefunctions['getweaponfiredelaymin'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5707. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponFireDelayMin',
  5708. name: 'GetWeaponFireDelayMin',
  5709. shortName: 'GetFireDelayMin',
  5710. longName: 'GetWeaponFireDelayMin'
  5711. });
  5712. dictionary.fosefunctions['getfiredelaymin'] = alias(dictionary.fosefunctions['getweaponfiredelaymin']);
  5713. dictionary.fosefunctions['getweaponfirerate'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5714. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponFireRate',
  5715. name: 'GetWeaponFireRate',
  5716. shortName: 'GetFireRate',
  5717. longName: 'GetWeaponFireRate'
  5718. });
  5719. dictionary.fosefunctions['getfirerate'] = alias(dictionary.fosefunctions['getweaponfirerate']);
  5720. dictionary.fosefunctions['getweaponhandgrip'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5721. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponHandGrip',
  5722. name: 'GetWeaponHandGrip',
  5723. shortName: 'GetHandGrip',
  5724. longName: 'GetWeaponHandGrip'
  5725. });
  5726. dictionary.fosefunctions['gethandgrip'] = alias(dictionary.fosefunctions['getweaponhandgrip']);
  5727. dictionary.fosefunctions['getweaponhasscope'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5728. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponHasScope',
  5729. name: 'GetWeaponHasScope'
  5730. });
  5731. dictionary.fosefunctions['getweaponisautomatic'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5732. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponIsAutomatic',
  5733. name: 'GetWeaponIsAutomatic',
  5734. shortName: 'GetIsAutomatic',
  5735. longName: 'GetWeaponIsAutomatic'
  5736. });
  5737. dictionary.fosefunctions['getisautomatic'] = alias(dictionary.fosefunctions['getweaponisautomatic']);
  5738. dictionary.fosefunctions['getweaponlimbdamagemult'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5739. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponLimbDamageMult',
  5740. name: 'GetWeaponLimbDamageMult',
  5741. shortName: 'GetLimbDamageMult',
  5742. longName: 'GetWeaponLimbDamageMult'
  5743. });
  5744. dictionary.fosefunctions['getlimbdamagemult'] = alias(dictionary.fosefunctions['getweaponlimbdamagemult']);
  5745. dictionary.fosefunctions['getweaponmaxrange'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5746. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponMaxRange',
  5747. name: 'GetWeaponMaxRange',
  5748. shortName: 'GetMaxRange',
  5749. longName: 'GetWeaponMaxRange'
  5750. });
  5751. dictionary.fosefunctions['getmaxrange'] = alias(dictionary.fosefunctions['getweaponmaxrange']);
  5752. dictionary.fosefunctions['getweaponminrange'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5753. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponMinRange',
  5754. name: 'GetWeaponMinRange',
  5755. shortName: 'GetMinRange',
  5756. longName: 'GetWeaponMinRange'
  5757. });
  5758. dictionary.fosefunctions['getminrange'] = alias(dictionary.fosefunctions['getweaponminrange']);
  5759. dictionary.fosefunctions['getweaponminspread'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5760. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponMinSpread',
  5761. name: 'GetWeaponMinSpread',
  5762. shortName: 'GetMinSpread',
  5763. longName: 'GetWeaponMinSpread'
  5764. });
  5765. dictionary.fosefunctions['getminspread'] = alias(dictionary.fosefunctions['getweaponminspread']);
  5766. dictionary.fosefunctions['getweaponnumprojectiles'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5767. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponNumProjectiles',
  5768. name: 'GetWeaponNumProjectiles',
  5769. shortName: 'GetNumProj',
  5770. longName: 'GetWeaponNumProjectiles'
  5771. });
  5772. dictionary.fosefunctions['getnumproj'] = alias(dictionary.fosefunctions['getweaponnumprojectiles']);
  5773. dictionary.fosefunctions['getweaponprojectile'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5774. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponProjectile',
  5775. name: 'GetWeaponProjectile',
  5776. shortName: 'GetWeapProj',
  5777. longName: 'GetWeaponProjectile'
  5778. });
  5779. dictionary.fosefunctions['getweapproj'] = alias(dictionary.fosefunctions['getweaponprojectile']);
  5780. dictionary.fosefunctions['getweaponreach'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5781. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponReach',
  5782. name: 'GetWeaponReach',
  5783. shortName: 'GetReach',
  5784. longName: 'GetWeaponReach'
  5785. });
  5786. dictionary.fosefunctions['getreach'] = alias(dictionary.fosefunctions['getweaponreach']);
  5787. dictionary.fosefunctions['getweaponreloadanim'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5788. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponReloadAnim',
  5789. name: 'GetWeaponReloadAnim',
  5790. shortName: 'GetReloadAnim',
  5791. longName: 'GetWeaponReloadAnim'
  5792. });
  5793. dictionary.fosefunctions['getreloadanim'] = alias(dictionary.fosefunctions['getweaponreloadanim']);
  5794. dictionary.fosefunctions['getweaponresisttype'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5795. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponResistType',
  5796. name: 'GetWeaponResistType',
  5797. shortName: 'GetWeaponResist',
  5798. longName: 'GetWeaponResistType'
  5799. });
  5800. dictionary.fosefunctions['getweaponresist'] = alias(dictionary.fosefunctions['getweaponresisttype']);
  5801. dictionary.fosefunctions['getweaponrumbleduration'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5802. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponRumbleDuration',
  5803. name: 'GetWeaponRumbleDuration',
  5804. shortName: 'GetRumbleDuration',
  5805. longName: 'GetWeaponRumbleDuration'
  5806. });
  5807. dictionary.fosefunctions['getrumbleduration'] = alias(dictionary.fosefunctions['getweaponrumbleduration']);
  5808. dictionary.fosefunctions['getweaponrumbleleftmotor'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5809. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponRumbleLeftMotor',
  5810. name: 'GetWeaponRumbleLeftMotor',
  5811. shortName: 'GetRumbleLeft',
  5812. longName: 'GetWeaponRumbleLeftMotor'
  5813. });
  5814. dictionary.fosefunctions['getrumbleleft'] = alias(dictionary.fosefunctions['getweaponrumbleleftmotor']);
  5815. dictionary.fosefunctions['getweaponrumblerightmotor'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5816. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponRumbleRightMotor',
  5817. name: 'GetWeaponRumbleRightMotor',
  5818. shortName: 'GetRumbleRight',
  5819. longName: 'GetWeaponRumbleRightMotor'
  5820. });
  5821. dictionary.fosefunctions['getrumbleright'] = alias(dictionary.fosefunctions['getweaponrumblerightmotor']);
  5822. dictionary.fosefunctions['getweaponrumblewavelength'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5823. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponRumbleWaveLength',
  5824. name: 'GetWeaponRumbleWaveLength',
  5825. shortName: 'GetRumbleWaveLen',
  5826. longName: 'GetWeaponRumbleWaveLength'
  5827. });
  5828. dictionary.fosefunctions['getrumblewavelen'] = alias(dictionary.fosefunctions['getweaponrumblewavelength']);
  5829. dictionary.fosefunctions['getweaponsightfov'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5830. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponSightFOV',
  5831. name: 'GetWeaponSightFOV',
  5832. shortName: 'GetSightFOV',
  5833. longName: 'GetWeaponSightFOV'
  5834. });
  5835. dictionary.fosefunctions['getsightfov'] = alias(dictionary.fosefunctions['getweaponsightfov']);
  5836. dictionary.fosefunctions['getweaponsightusage'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5837. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponSightUsage',
  5838. name: 'GetWeaponSightUsage',
  5839. shortName: 'GetSightUsage',
  5840. longName: 'GetWeaponSightUsage'
  5841. });
  5842. dictionary.fosefunctions['getsightusage'] = alias(dictionary.fosefunctions['getweaponsightusage']);
  5843. dictionary.fosefunctions['getweaponskill'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5844. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponSkill',
  5845. name: 'GetWeaponSkill'
  5846. });
  5847. dictionary.fosefunctions['getweaponspread'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5848. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponSpread',
  5849. name: 'GetWeaponSpread',
  5850. shortName: 'GetSpread',
  5851. longName: 'GetWeaponSpread'
  5852. });
  5853. dictionary.fosefunctions['getspread'] = alias(dictionary.fosefunctions['getweaponspread']);
  5854. dictionary.fosefunctions['getweapontype'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5855. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeaponType',
  5856. name: 'GetWeaponType',
  5857. shortName: 'GetWeapType',
  5858. longName: 'GetWeaponType'
  5859. });
  5860. dictionary.fosefunctions['getweaptype'] = alias(dictionary.fosefunctions['getweapontype']);
  5861. dictionary.fosefunctions['getweight'] = new scriptFunction('float', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5862. docLink: 'http://fose.silverlock.org/fose_command_doc.html#GetWeight',
  5863. name: 'GetWeight'
  5864. });
  5865. dictionary.fosefunctions['goto'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'labelID')], {
  5866. docLink: 'http://fose.silverlock.org/fose_command_doc.html#Goto',
  5867. name: 'Goto'
  5868. });
  5869. dictionary.fosefunctions['holdkey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  5870. docLink: 'http://fose.silverlock.org/fose_command_doc.html#HoldKey',
  5871. name: 'HoldKey',
  5872. shortName: 'hk',
  5873. longName: 'HoldKey'
  5874. });
  5875. dictionary.fosefunctions['hk'] = alias(dictionary.fosefunctions['holdkey']);
  5876. dictionary.fosefunctions['isclonedform'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5877. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsClonedForm',
  5878. name: 'IsClonedForm',
  5879. shortName: 'IsCloned',
  5880. longName: 'IsClonedForm'
  5881. });
  5882. dictionary.fosefunctions['iscloned'] = alias(dictionary.fosefunctions['isclonedform']);
  5883. dictionary.fosefunctions['iscontrol'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  5884. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsControl',
  5885. name: 'IsControl'
  5886. });
  5887. dictionary.fosefunctions['iscontroldisabled'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  5888. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsControlDisabled',
  5889. name: 'IsControlDisabled'
  5890. });
  5891. dictionary.fosefunctions['iscontrolpressed'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  5892. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsControlPressed',
  5893. name: 'IsControlPressed'
  5894. });
  5895. dictionary.fosefunctions['isformvalid'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'refVar', true)], {
  5896. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsFormValid',
  5897. name: 'IsFormValid'
  5898. });
  5899. dictionary.fosefunctions['iskeydisabled'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  5900. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsKeyDisabled',
  5901. name: 'IsKeyDisabled'
  5902. });
  5903. dictionary.fosefunctions['iskeypressed'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  5904. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsKeyPressed',
  5905. name: 'IsKeyPressed'
  5906. });
  5907. dictionary.fosefunctions['ismodloaded'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('string', 'modName')], {
  5908. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsModLoaded',
  5909. name: 'IsModLoaded'
  5910. });
  5911. dictionary.fosefunctions['ispowerarmor'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5912. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsPowerArmor',
  5913. name: 'IsPowerArmor',
  5914. shortName: 'IsPA',
  5915. longName: 'IsPowerArmor'
  5916. });
  5917. dictionary.fosefunctions['ispa'] = alias(dictionary.fosefunctions['ispowerarmor']);
  5918. dictionary.fosefunctions['isreference'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'reference')], {
  5919. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsReference',
  5920. name: 'IsReference'
  5921. });
  5922. dictionary.fosefunctions['isscripted'] = new scriptFunction('int', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  5923. docLink: 'http://fose.silverlock.org/fose_command_doc.html#IsScripted',
  5924. name: 'IsScripted'
  5925. });
  5926. dictionary.fosefunctions['label'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'labelID')], {
  5927. docLink: 'http://fose.silverlock.org/fose_command_doc.html#Label',
  5928. name: 'Label'
  5929. });
  5930. dictionary.fosefunctions['leftshift'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'int'), new scriptFunctionParam('int', 'int')], {
  5931. docLink: 'http://fose.silverlock.org/fose_command_doc.html#LeftShift',
  5932. name: 'LeftShift'
  5933. });
  5934. dictionary.fosefunctions['listaddform'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('ref', 'form'), new scriptFunctionParam('int', 'index', true)], {
  5935. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListAddForm',
  5936. name: 'ListAddForm'
  5937. });
  5938. dictionary.fosefunctions['listaddreference'] = new scriptFunction('int', 'R', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('int', 'index', true)], {
  5939. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListAddReference',
  5940. name: 'ListAddReference',
  5941. shortName: 'ListAddRef',
  5942. longName: 'ListAddReference'
  5943. });
  5944. dictionary.fosefunctions['listaddref'] = alias(dictionary.fosefunctions['listaddreference']);
  5945. dictionary.fosefunctions['listgetcount'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'form list')], {
  5946. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListGetCount',
  5947. name: 'ListGetCount'
  5948. });
  5949. dictionary.fosefunctions['listgetformindex'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('ref', 'form')], {
  5950. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListGetFormIndex',
  5951. name: 'ListGetFormIndex'
  5952. });
  5953. dictionary.fosefunctions['listgetnthform'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('int', 'index')], {
  5954. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListGetNthForm',
  5955. name: 'ListGetNthForm'
  5956. });
  5957. dictionary.fosefunctions['listremoveform'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('ref', 'form')], {
  5958. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListRemoveForm',
  5959. name: 'ListRemoveForm'
  5960. });
  5961. dictionary.fosefunctions['listremoventhform'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('int', 'index', true)], {
  5962. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListRemoveNthForm',
  5963. name: 'ListRemoveNthForm',
  5964. shortName: 'ListRemoveNth',
  5965. longName: 'ListRemoveNthForm'
  5966. });
  5967. dictionary.fosefunctions['listremoventh'] = alias(dictionary.fosefunctions['listremoventhform']);
  5968. dictionary.fosefunctions['listreplaceform'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('ref', 'replaceWith'), new scriptFunctionParam('ref', 'formToReplace')], {
  5969. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListReplaceForm',
  5970. name: 'ListReplaceForm'
  5971. });
  5972. dictionary.fosefunctions['listreplacenthform'] = new scriptFunction('ref', 'B', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('ref', 'replaceWith'), new scriptFunctionParam('int', 'formIndex', true)], {
  5973. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ListReplaceNthForm',
  5974. name: 'ListReplaceNthForm',
  5975. shortName: 'ListReplaceNth',
  5976. longName: 'ListReplaceNthForm'
  5977. });
  5978. dictionary.fosefunctions['listreplacenth'] = alias(dictionary.fosefunctions['listreplacenthform']);
  5979. dictionary.fosefunctions['log10'] = new scriptFunction('float', 'B', 1.00, [new scriptFunctionParam('float', 'float')], {
  5980. docLink: 'http://fose.silverlock.org/fose_command_doc.html#Log10',
  5981. name: 'Log10'
  5982. });
  5983. dictionary.fosefunctions['logicaland'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'int'), new scriptFunctionParam('int', 'int')], {
  5984. docLink: 'http://fose.silverlock.org/fose_command_doc.html#LogicalAnd',
  5985. name: 'LogicalAnd'
  5986. });
  5987. dictionary.fosefunctions['logicalnot'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'int')], {
  5988. docLink: 'http://fose.silverlock.org/fose_command_doc.html#LogicalNot',
  5989. name: 'LogicalNot'
  5990. });
  5991. dictionary.fosefunctions['logicalor'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'int'), new scriptFunctionParam('int', 'int')], {
  5992. docLink: 'http://fose.silverlock.org/fose_command_doc.html#LogicalOr',
  5993. name: 'LogicalOr'
  5994. });
  5995. dictionary.fosefunctions['logicalxor'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'int'), new scriptFunctionParam('int', 'int')], {
  5996. docLink: 'http://fose.silverlock.org/fose_command_doc.html#LogicalXor',
  5997. name: 'LogicalXor'
  5998. });
  5999. dictionary.fosefunctions['menuholdkey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  6000. docLink: 'http://fose.silverlock.org/fose_command_doc.html#MenuHoldKey',
  6001. name: 'MenuHoldKey',
  6002. shortName: 'mhk',
  6003. longName: 'MenuHoldKey'
  6004. });
  6005. dictionary.fosefunctions['mhk'] = alias(dictionary.fosefunctions['menuholdkey']);
  6006. dictionary.fosefunctions['menureleasekey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  6007. docLink: 'http://fose.silverlock.org/fose_command_doc.html#MenuReleaseKey',
  6008. name: 'MenuReleaseKey',
  6009. shortName: 'mrk',
  6010. longName: 'MenuReleaseKey'
  6011. });
  6012. dictionary.fosefunctions['mrk'] = alias(dictionary.fosefunctions['menureleasekey']);
  6013. dictionary.fosefunctions['menutapkey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  6014. docLink: 'http://fose.silverlock.org/fose_command_doc.html#MenuTapKey',
  6015. name: 'MenuTapKey',
  6016. shortName: 'mtk',
  6017. longName: 'MenuTapKey'
  6018. });
  6019. dictionary.fosefunctions['mtk'] = alias(dictionary.fosefunctions['menutapkey']);
  6020. dictionary.fosefunctions['printactivetile'] = new scriptFunction('void', 'B', 1.00, [], {
  6021. docLink: 'http://fose.silverlock.org/fose_command_doc.html#PrintActiveTile',
  6022. name: 'PrintActiveTile'
  6023. });
  6024. dictionary.fosefunctions['printtoconsole'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'format string'), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true), new scriptFunctionParam('float', 'variable', true)], {
  6025. docLink: 'http://fose.silverlock.org/fose_command_doc.html#PrintToConsole',
  6026. name: 'PrintToConsole',
  6027. shortName: 'printc',
  6028. longName: 'PrintToConsole'
  6029. });
  6030. dictionary.fosefunctions['printc'] = alias(dictionary.fosefunctions['printtoconsole']);
  6031. dictionary.fosefunctions['releasekey'] = new scriptFunction('FixMe', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  6032. docLink: 'http://fose.silverlock.org/fose_command_doc.html#ReleaseKey',
  6033. name: 'ReleaseKey',
  6034. shortName: 'rk',
  6035. longName: 'ReleaseKey'
  6036. });
  6037. dictionary.fosefunctions['rk'] = alias(dictionary.fosefunctions['releasekey']);
  6038. dictionary.fosefunctions['removescript'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'item', true)], {
  6039. docLink: 'http://fose.silverlock.org/fose_command_doc.html#RemoveScript',
  6040. name: 'RemoveScript'
  6041. });
  6042. dictionary.fosefunctions['rightshift'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'int'), new scriptFunctionParam('int', 'int')], {
  6043. docLink: 'http://fose.silverlock.org/fose_command_doc.html#RightShift',
  6044. name: 'RightShift'
  6045. });
  6046. dictionary.fosefunctions['setaltcontrol'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode'), new scriptFunctionParam('int', 'scanCode')], {
  6047. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetAltControl',
  6048. name: 'SetAltControl'
  6049. });
  6050. dictionary.fosefunctions['setattackdamage'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'damage'), new scriptFunctionParam('ref', 'item', true)], {
  6051. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetAttackDamage',
  6052. name: 'SetAttackDamage',
  6053. shortName: 'SetDamage',
  6054. longName: 'SetAttackDamage'
  6055. });
  6056. dictionary.fosefunctions['setdamage'] = alias(dictionary.fosefunctions['setattackdamage']);
  6057. dictionary.fosefunctions['setbaseitemvalue'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('ref', 'form'), new scriptFunctionParam('int', 'newValue')], {
  6058. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetBaseItemValue',
  6059. name: 'SetBaseItemValue',
  6060. shortName: 'SetValue',
  6061. longName: 'SetBaseItemValue'
  6062. });
  6063. dictionary.fosefunctions['setvalue'] = alias(dictionary.fosefunctions['setbaseitemvalue']);
  6064. dictionary.fosefunctions['setcontrol'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode'), new scriptFunctionParam('int', 'scanCode')], {
  6065. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetControl',
  6066. name: 'SetControl'
  6067. });
  6068. dictionary.fosefunctions['setdebugmode'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'bEnableDebugMessages'), new scriptFunctionParam('int', 'modIndex', true)], {
  6069. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetDebugMode',
  6070. name: 'SetDebugMode',
  6071. shortName: 'DBMode',
  6072. longName: 'SetDebugMode'
  6073. });
  6074. dictionary.fosefunctions['dbmode'] = alias(dictionary.fosefunctions['setdebugmode']);
  6075. dictionary.fosefunctions['setequippedcurrenthealth'] = new scriptFunction('void', 'R', 1.00, [new scriptFunctionParam('float', 'val'), new scriptFunctionParam('int', 'equipmentSlot')], {
  6076. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetEquippedCurrentHealth',
  6077. name: 'SetEquippedCurrentHealth',
  6078. shortName: 'SetEqCurHealth',
  6079. longName: 'SetEquippedCurrentHealth'
  6080. });
  6081. dictionary.fosefunctions['seteqcurhealth'] = alias(dictionary.fosefunctions['setequippedcurrenthealth']);
  6082. dictionary.fosefunctions['setobjecthealth'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'newHealth'), new scriptFunctionParam('ref', 'form', true)], {
  6083. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetHealth',
  6084. name: 'SetObjectHealth',
  6085. shortName: 'SetHealth',
  6086. longName: 'SetObjectHealth'
  6087. });
  6088. dictionary.fosefunctions['sethealth'] = alias(dictionary.fosefunctions['setobjecthealth']);
  6089. dictionary.fosefunctions['setiscontrol'] = new scriptFunction('int', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode'), new scriptFunctionParam('int', 'isControl')], {
  6090. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetIsControl',
  6091. name: 'SetIsControl'
  6092. });
  6093. dictionary.fosefunctions['setispowerarmor'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'path type'), new scriptFunctionParam('ref', 'item', true)], {
  6094. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetIsPowerArmor',
  6095. name: 'SetIsPowerArmor',
  6096. shortName: 'SetIsPA',
  6097. longName: 'SetIsPowerArmor'
  6098. });
  6099. dictionary.fosefunctions['setispa'] = alias(dictionary.fosefunctions['setispowerarmor']);
  6100. dictionary.fosefunctions['setname'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('string', 'name'), new scriptFunctionParam('ref', 'item', true)], {
  6101. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetName',
  6102. name: 'SetName'
  6103. });
  6104. dictionary.fosefunctions['setnumericgamesetting'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'settingName'), new scriptFunctionParam('float', 'float')], {
  6105. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetNumericGameSetting',
  6106. name: 'SetNumericGameSetting'
  6107. });
  6108. dictionary.fosefunctions['setnumericinisetting'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'settingName'), new scriptFunctionParam('float', 'newValue')], {
  6109. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetNumericINISetting',
  6110. name: 'SetNumericINISetting'
  6111. });
  6112. dictionary.fosefunctions['setopenkey'] = new scriptFunction('void', 'R', 1.00, [new scriptFunctionParam('ref', 'item')], {
  6113. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetOpenKey',
  6114. name: 'SetOpenKey',
  6115. shortName: 'SetKey',
  6116. longName: 'SetOpenKey'
  6117. });
  6118. dictionary.fosefunctions['setkey'] = alias(dictionary.fosefunctions['setopenkey']);
  6119. dictionary.fosefunctions['setrepairlist'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('ref', 'form list'), new scriptFunctionParam('ref', 'target item', true)], {
  6120. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetRepairList',
  6121. name: 'SetRepairList'
  6122. });
  6123. dictionary.fosefunctions['setscript'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'scriptInRef'), new scriptFunctionParam('ref', 'item', true)], {
  6124. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetScript',
  6125. name: 'SetScript'
  6126. });
  6127. dictionary.fosefunctions['setuifloat'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'traitName'), new scriptFunctionParam('float', 'newValue')], {
  6128. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetUIFloat',
  6129. name: 'SetUIFloat'
  6130. });
  6131. dictionary.fosefunctions['setuistring'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('string', 'traitName'), new scriptFunctionParam('string', 'newValue')], {
  6132. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetUIString',
  6133. name: 'SetUIString'
  6134. });
  6135. dictionary.fosefunctions['setweaponactionpoints'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  6136. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponActionPoints',
  6137. name: 'SetWeaponActionPoints',
  6138. shortName: 'SetAP',
  6139. longName: 'SetWeaponActionPoints'
  6140. });
  6141. dictionary.fosefunctions['setap'] = alias(dictionary.fosefunctions['setweaponactionpoints']);
  6142. dictionary.fosefunctions['setweaponaimarc'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'aimArc'), new scriptFunctionParam('ref', 'item', true)], {
  6143. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponAimArc',
  6144. name: 'SetWeaponAimArc',
  6145. shortName: 'SetAimArc',
  6146. longName: 'SetWeaponAimArc'
  6147. });
  6148. dictionary.fosefunctions['setaimarc'] = alias(dictionary.fosefunctions['setweaponaimarc']);
  6149. dictionary.fosefunctions['setweaponammo'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'NewAmmoInRef'), new scriptFunctionParam('ref', 'target item', true)], {
  6150. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponAmmo',
  6151. name: 'SetWeaponAmmo',
  6152. shortName: 'SetAmmo',
  6153. longName: 'SetWeaponAmmo'
  6154. });
  6155. dictionary.fosefunctions['setammo'] = alias(dictionary.fosefunctions['setweaponammo']);
  6156. dictionary.fosefunctions['setweaponammouse'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'path type'), new scriptFunctionParam('ref', 'item', true)], {
  6157. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponAmmoUse',
  6158. name: 'SetWeaponAmmoUse',
  6159. shortName: 'SetAmmoUse',
  6160. longName: 'SetWeaponAmmoUse'
  6161. });
  6162. dictionary.fosefunctions['setammouse'] = alias(dictionary.fosefunctions['setweaponammouse']);
  6163. dictionary.fosefunctions['setweaponanimattackmult'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  6164. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponAnimAttackMult',
  6165. name: 'SetWeaponAnimAttackMult',
  6166. shortName: 'SetAnimAttackMult',
  6167. longName: 'SetWeaponAnimAttackMult'
  6168. });
  6169. dictionary.fosefunctions['setanimattackmult'] = alias(dictionary.fosefunctions['setweaponanimattackmult']);
  6170. dictionary.fosefunctions['setweaponanimmult'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  6171. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponAnimMult',
  6172. name: 'SetWeaponAnimMult',
  6173. shortName: 'SetAnimMult',
  6174. longName: 'SetWeaponAnimMult'
  6175. });
  6176. dictionary.fosefunctions['setanimmult'] = alias(dictionary.fosefunctions['setweaponanimmult']);
  6177. dictionary.fosefunctions['setweaponattackanimation'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'attackAnimation'), new scriptFunctionParam('ref', 'item', true)], {
  6178. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponAttackAnimation',
  6179. name: 'SetWeaponAttackAnimation',
  6180. shortName: 'SetAttackAnim',
  6181. longName: 'SetWeaponAttackAnimation'
  6182. });
  6183. dictionary.fosefunctions['setattackanim'] = alias(dictionary.fosefunctions['setweaponattackanimation']);
  6184. dictionary.fosefunctions['setweaponbasevatschance'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'newVATSChance'), new scriptFunctionParam('ref', 'item', true)], {
  6185. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponBaseVATSChance',
  6186. name: 'SetWeaponBaseVATSChance',
  6187. shortName: 'SetVATSChance',
  6188. longName: 'SetWeaponBaseVATSChance'
  6189. });
  6190. dictionary.fosefunctions['setvatschance'] = alias(dictionary.fosefunctions['setweaponbasevatschance']);
  6191. dictionary.fosefunctions['setweaponcliprounds'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'path type'), new scriptFunctionParam('ref', 'item', true)], {
  6192. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponClipRounds',
  6193. name: 'SetWeaponClipRounds',
  6194. shortName: 'SetClipSize',
  6195. longName: 'SetWeaponClipRounds'
  6196. });
  6197. dictionary.fosefunctions['setclipsize'] = alias(dictionary.fosefunctions['setweaponcliprounds']);
  6198. dictionary.fosefunctions['setweaponcritchance'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  6199. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponCritChance',
  6200. name: 'SetWeaponCritChance',
  6201. shortName: 'SetCritPerc',
  6202. longName: 'SetWeaponCritChance'
  6203. });
  6204. dictionary.fosefunctions['setcritperc'] = alias(dictionary.fosefunctions['setweaponcritchance']);
  6205. dictionary.fosefunctions['setweaponcritdamage'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'path type'), new scriptFunctionParam('ref', 'item', true)], {
  6206. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponCritDamage',
  6207. name: 'SetWeaponCritDamage'
  6208. });
  6209. dictionary.fosefunctions['setweaponcriteffect'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'magic item'), new scriptFunctionParam('ref', 'item', true)], {
  6210. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponCritEffect',
  6211. name: 'SetWeaponCritEffect',
  6212. shortName: 'SetCritEffect',
  6213. longName: 'SetWeaponCritEffect'
  6214. });
  6215. dictionary.fosefunctions['setcriteffect'] = alias(dictionary.fosefunctions['setweaponcriteffect']);
  6216. dictionary.fosefunctions['setweaponhandgrip'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'handGrip'), new scriptFunctionParam('ref', 'item', true)], {
  6217. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponHandGrip',
  6218. name: 'SetWeaponHandGrip',
  6219. shortName: 'SetHandGrip',
  6220. longName: 'SetWeaponHandGrip'
  6221. });
  6222. dictionary.fosefunctions['sethandgrip'] = alias(dictionary.fosefunctions['setweaponhandgrip']);
  6223. dictionary.fosefunctions['setweaponisautomatic'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'isAutomatic'), new scriptFunctionParam('ref', 'item', true)], {
  6224. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponIsAutomatic',
  6225. name: 'SetWeaponIsAutomatic',
  6226. shortName: 'SetIsAutomatic',
  6227. longName: 'SetWeaponIsAutomatic'
  6228. });
  6229. dictionary.fosefunctions['setisautomatic'] = alias(dictionary.fosefunctions['setweaponisautomatic']);
  6230. dictionary.fosefunctions['setweaponlimbdamagemult'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'limbDamageMult'), new scriptFunctionParam('ref', 'item', true)], {
  6231. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponLimbDamageMult',
  6232. name: 'SetWeaponLimbDamageMult',
  6233. shortName: 'SetLimbDamageMult',
  6234. longName: 'SetWeaponLimbDamageMult'
  6235. });
  6236. dictionary.fosefunctions['setlimbdamagemult'] = alias(dictionary.fosefunctions['setweaponlimbdamagemult']);
  6237. dictionary.fosefunctions['setweaponmaxrange'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  6238. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponMaxRange',
  6239. name: 'SetWeaponMaxRange',
  6240. shortName: 'SetMaxRange',
  6241. longName: 'SetWeaponMaxRange'
  6242. });
  6243. dictionary.fosefunctions['setmaxrange'] = alias(dictionary.fosefunctions['setweaponmaxrange']);
  6244. dictionary.fosefunctions['setweaponminrange'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  6245. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponMinRange',
  6246. name: 'SetWeaponMinRange',
  6247. shortName: 'SetMinRange',
  6248. longName: 'SetWeaponMinRange'
  6249. });
  6250. dictionary.fosefunctions['setminrange'] = alias(dictionary.fosefunctions['setweaponminrange']);
  6251. dictionary.fosefunctions['setweaponminspread'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  6252. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponMinSpread',
  6253. name: 'SetWeaponMinSpread',
  6254. shortName: 'SetMinSpread',
  6255. longName: 'SetWeaponMinSpread'
  6256. });
  6257. dictionary.fosefunctions['setminspread'] = alias(dictionary.fosefunctions['setweaponminspread']);
  6258. dictionary.fosefunctions['setweaponnumprojectiles'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'numProjectiles'), new scriptFunctionParam('ref', 'item', true)], {
  6259. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponNumProjectiles',
  6260. name: 'SetWeaponNumProjectiles',
  6261. shortName: 'SetNumProj',
  6262. longName: 'SetWeaponNumProjectiles'
  6263. });
  6264. dictionary.fosefunctions['setnumproj'] = alias(dictionary.fosefunctions['setweaponnumprojectiles']);
  6265. dictionary.fosefunctions['setweaponprojectile'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'NewProjectileInRef'), new scriptFunctionParam('ref', 'target item', true)], {
  6266. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponProjectile',
  6267. name: 'SetWeaponProjectile',
  6268. shortName: 'SetProjectile',
  6269. longName: 'SetWeaponProjectile'
  6270. });
  6271. dictionary.fosefunctions['setprojectile'] = alias(dictionary.fosefunctions['setweaponprojectile']);
  6272. dictionary.fosefunctions['setweaponreach'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'reach'), new scriptFunctionParam('ref', 'item', true)], {
  6273. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponReach',
  6274. name: 'SetWeaponReach',
  6275. shortName: 'SetReach',
  6276. longName: 'SetWeaponReach'
  6277. });
  6278. dictionary.fosefunctions['setreach'] = alias(dictionary.fosefunctions['setweaponreach']);
  6279. dictionary.fosefunctions['setweaponreloadanim'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'reloadAnim'), new scriptFunctionParam('ref', 'item', true)], {
  6280. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponReloadAnim',
  6281. name: 'SetWeaponReloadAnim',
  6282. shortName: 'SetReloadAnim',
  6283. longName: 'SetWeaponReloadAnim'
  6284. });
  6285. dictionary.fosefunctions['setreloadanim'] = alias(dictionary.fosefunctions['setweaponreloadanim']);
  6286. dictionary.fosefunctions['setweaponsightfov'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  6287. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponSightFOV',
  6288. name: 'SetWeaponSightFOV',
  6289. shortName: 'SetSightFOV',
  6290. longName: 'SetWeaponSightFOV'
  6291. });
  6292. dictionary.fosefunctions['setsightfov'] = alias(dictionary.fosefunctions['setweaponsightfov']);
  6293. dictionary.fosefunctions['setweaponsightusage'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'sightUsage'), new scriptFunctionParam('ref', 'item', true)], {
  6294. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponSightUsage',
  6295. name: 'SetWeaponSightUsage',
  6296. shortName: 'SetSightUsage',
  6297. longName: 'SetWeaponSightUsage'
  6298. });
  6299. dictionary.fosefunctions['setsightusage'] = alias(dictionary.fosefunctions['setweaponsightusage']);
  6300. dictionary.fosefunctions['setweaponspread'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  6301. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponSpread',
  6302. name: 'SetWeaponSpread',
  6303. shortName: 'SetSpread',
  6304. longName: 'SetWeaponSpread'
  6305. });
  6306. dictionary.fosefunctions['setspread'] = alias(dictionary.fosefunctions['setweaponspread']);
  6307. dictionary.fosefunctions['setweapontype'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('int', 'weaponType'), new scriptFunctionParam('ref', 'item', true)], {
  6308. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeaponType',
  6309. name: 'SetWeaponType'
  6310. });
  6311. dictionary.fosefunctions['setweight'] = new scriptFunction('void', 'E', 1.00, [new scriptFunctionParam('float', 'float'), new scriptFunctionParam('ref', 'item', true)], {
  6312. docLink: 'http://fose.silverlock.org/fose_command_doc.html#SetWeight',
  6313. name: 'SetWeight'
  6314. });
  6315. dictionary.fosefunctions['tapcontrol'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'controlCode')], {
  6316. docLink: 'http://fose.silverlock.org/fose_command_doc.html#TapControl',
  6317. name: 'TapControl',
  6318. shortName: 'tc',
  6319. longName: 'TapControl'
  6320. });
  6321. dictionary.fosefunctions['tc'] = alias(dictionary.fosefunctions['tapcontrol']);
  6322. dictionary.fosefunctions['tapkey'] = new scriptFunction('void', 'B', 1.00, [new scriptFunctionParam('int', 'scanCode')], {
  6323. docLink: 'http://fose.silverlock.org/fose_command_doc.html#TapKey',
  6324. name: 'TapKey',
  6325. shortName: 'tk',
  6326. longName: 'TapKey'
  6327. });
  6328. dictionary.fosefunctions['tk'] = alias(dictionary.fosefunctions['tapkey']);
  6329. dictionary.fosefunctions['tempcloneform'] = new scriptFunction('ref', 'E', 1.00, [new scriptFunctionParam('ref', 'formToClone', true)], {
  6330. docLink: 'http://fose.silverlock.org/fose_command_doc.html#TempCloneForm',
  6331. name: 'TempCloneForm'
  6332. });
  6333. dictionary.fosefunctions['getcurrenthealth'] = new scriptFunction('float', 'R', 1.2, []);
  6334. dictionary.fosefunctions['setcurrenthealth'] = new scriptFunction('void', 'E', 1.2, [new scriptFunctionParam('float', 'health'), new scriptFunctionParam('ref', 'form', true)]);
  6335. dictionary.fosefunctions['rand'] = new scriptFunction('float', 'B', 1.2, [new scriptFunctionParam('float', 'min'), new scriptFunctionParam('float', 'max')]);
  6336. dictionary.fosefunctions['getnumitems'] = new scriptFunction('int', 'R', 1.2, []);
  6337. dictionary.fosefunctions['getinventoryobject'] = new scriptFunction('ref', 'R', 1.2, [new scriptFunctionParam('int', 'idx')]);
  6338. } {
  6339. dictionary.newvegasfunctions = combineObjects([dictionary.fallout3functions]);
  6340. } {
  6341. dictionary.nvsefunctions = combineObjects([dictionary.fosefunctions]);
  6342. }
  6343. dictionary.functions = combineObjects([dictionary.fallout3functions, dictionary.fosefunctions]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement