A script issue

Post » Sat May 28, 2011 4:23 pm

This script is set on an Activator and it goes like this:

begin OnActivateset test to 1endbegin GameModeif(test == 1)      set test to 0      set count to count + 1endif


Now, this isn't the whole script, as the script contains a lot of disables/enables base on the count, but the thing is, the script doesn't seem to notice the "set test to 0" line, as the code in the game mode block sort of seems to continue to run, despite not fulfilling the condition.
User avatar
Mashystar
 
Posts: 3460
Joined: Mon Jul 16, 2007 6:35 am

Post » Sat May 28, 2011 8:27 pm

if(test == 1)



Is it like this in the script? Leave space between the if and the test == 1

Like

if (test == 1)

instead of

if(test == 1)

Just tested and without the space the script will compile, but I don't know whether it will work correctly.
User avatar
Stacy Hope
 
Posts: 3391
Joined: Thu Jun 22, 2006 6:23 am

Post » Sat May 28, 2011 3:06 pm

Nah, it's not that. I'll look into it a bit more, but if the problem persists I'll copy the whole script, though it is rather long.

Edit: Found the problem ://
In 900 lines of script one line screwed it up. Thank god I was lucky enough to find it this fast.
User avatar
Epul Kedah
 
Posts: 3545
Joined: Tue Oct 09, 2007 3:35 am


Return to IV - Oblivion