ozziefire Posted June 24, 2011 Share Posted June 24, 2011 I'm guessing there's some way to use a GECK message to display script variables for debugging use but haven't been able to find it? Any help appreciated :) Link to comment Share on other sites More sharing options...
davidlallen Posted June 24, 2011 Share Posted June 24, 2011 The ShowMessage command takes arguments which can be script variables, and you can use "printf" type formatting to display them such as "%d" for ints, or "%f" for floats. Searching on the geck wiki no longer works after the breakin, but you can start here: http://geck.bethsoft.com/index.php/ShowMessage Link to comment Share on other sites More sharing options...
ozziefire Posted June 24, 2011 Author Share Posted June 24, 2011 (edited) Cool thanks for the info, So I would put in the ShowMessage window something like: The number is: %.0f intMyNumber to display the text "The Number is:" then an integer called "intMyNumber" Edited June 24, 2011 by ozziefire Link to comment Share on other sites More sharing options...
tunaisafish Posted June 24, 2011 Share Posted June 24, 2011 In the message object window you'd put..."The number is: %.0f" Then in your script you can decide which number to display.ShowMessage MyMessageObject intMyNumber Link to comment Share on other sites More sharing options...
SmileyCat Posted June 24, 2011 Share Posted June 24, 2011 It would also be good to note that you can only use nine variables in one messagebox. Link to comment Share on other sites More sharing options...
ozziefire Posted June 25, 2011 Author Share Posted June 25, 2011 Thanks guys that's some mega helpful info and will make my debugging a bit simpler on mods :) Link to comment Share on other sites More sharing options...
Recommended Posts