Is there a way...

Post » Wed Apr 28, 2010 8:45 am

In some languages, you can run the program and have it echo things like the results of computations and such. How is this done here? the scripts compile, yet dont work, I walk through them, they look ok, yet dont work.

so I need to see it actually run and echo what its doing, and somehow add a pause or 2 in it so that it doesnt overwrite the echos or just scroll off, so to speak.
User avatar
Louise Dennis
 
Posts: 3489
Joined: Fri Mar 02, 2007 9:23 pm

Post » Wed Apr 28, 2010 6:56 am

PrintToConsole "Text"

Place it wherever there's a line you want to check, with something descriptive, and it should give you feed back in the Console window:

Begin ; Do somethingPrintToConsole "First Section Complete"If ( Condition )PrintToConsole "Condition 1 True"ElsePrintToConsole "Condition 1 Not True"EndIfEnd


http://cs.elderscrolls.com/constwiki/index.php/PrintToConsole
User avatar
Alexx Peace
 
Posts: 3432
Joined: Thu Jul 20, 2006 5:55 pm

Post » Wed Apr 28, 2010 2:54 am

PrintToConsole only works with OBSE though, if you don't use it you need to use messages. That's worse because you can only have one message on screen at once, but the messages show up one after the other unless you use multiple messages in one frame.

message "Block 1 works"

If your mod requires OBSE anyway then printtoconsole is definitely the way to go.
User avatar
Charlotte Buckley
 
Posts: 3532
Joined: Fri Oct 27, 2006 11:29 am

Post » Wed Apr 28, 2010 2:19 am

PrintToConsole only works with OBSE though, if you don't use it you need to use messages. That's worse because you can only have one message on screen at once, but the messages show up one after the other unless you use multiple messages in one frame.

message "Block 1 works"

If your mod requires OBSE anyway then printtoconsole is definitely the way to go.



thanks, I have obse, just cant get this script to work. can the console be scrolled up or printed out to text?
User avatar
Schel[Anne]FTL
 
Posts: 3384
Joined: Thu Nov 16, 2006 6:53 pm


Return to IV - Oblivion