Jump to content

Mod Tool/Scripting: Difference between revisions

m
no edit summary
(variables)
mNo edit summary
Line 52: Line 52:
  ' global var
  ' global var
  MyVar7 = 3 + 0.3
  MyVar7 = 3 + 0.3
 
  sub test
  sub test
  ' local var
  ' local var
Line 61: Line 61:
  ' local var
  ' local var
  MyVar9  = 3
  MyVar9  = 3
  MyVar10 = 4 + MyVar9
  MyVar10 = 4 + MyVar7
  end function
  end function


Line 90: Line 90:


As the information is a string you need to convert it back to what it was meant originally e.g. with cBool and cInt. For more conversion see [http://www.w3schools.com/vbscript/vbscript_ref_functions.asp HERE]
As the information is a string you need to convert it back to what it was meant originally e.g. with cBool and cInt. For more conversion see [http://www.w3schools.com/vbscript/vbscript_ref_functions.asp HERE]


=====Arrays=====
=====Arrays=====
8,323

edits