ImageSpace modifier functions are broken?

Post » Mon Jun 18, 2012 8:07 pm

The following is a snippet from a quest script I have running:

If (InebriationLevel>0 && InebriationLevel<3)Drunk1.Apply(1.0)Set = trueDebug.MessageBox("Drunk level 1")EndIf

I receive the debug message box, but the imagespace modifier is never applied to the screen.

I applied it using the old console commands in-game and it displayed fine.

Given that the script is happening and the modifier works fine, I don't see much other place for it to be going wrong than with the Apply() function.

I've tried compiling it with the intensity float argument at 1.0, 0.5, 0.0, and a few times without an intensity argument, as the wiki shows both versions of the function as being valid.

Any ideas?
User avatar
SEXY QUEEN
 
Posts: 3417
Joined: Mon Aug 13, 2007 7:54 pm

Post » Mon Jun 18, 2012 10:12 pm

Yes... the ImageSpace Modifier is not properly defined in the properties of your script. Make sure the following exists:

ImageSpaceModifier Property Drunk1 Auto
And that in the properties of your script, you AUTO-FILL the property so that it resolves to the ImageSpaceModifier.

-MM
User avatar
Rudi Carter
 
Posts: 3365
Joined: Fri Sep 01, 2006 11:09 pm

Post » Mon Jun 18, 2012 8:57 pm

I put it all in an effect script as opposed to a quest script, and it immediately worked.

I had the property all set up right, I guess it just doesn't like doing it in quest scripts?
User avatar
Chantel Hopkin
 
Posts: 3533
Joined: Sun Dec 03, 2006 9:41 am

Post » Tue Jun 19, 2012 5:54 am

I see no reason why it shouldn't work when set properly.
In fact I tested some ISMs before from quest script and they worked fine.
As for the properties, most of the time, it's not enough to add only a declaration to the code, but such property needs to point to particular reference in properties window - it's always worth to check whether everything is set correctly there.
User avatar
Sharra Llenos
 
Posts: 3399
Joined: Wed Jan 17, 2007 1:09 pm

Post » Tue Jun 19, 2012 4:15 am

Yup, just as I said. Also, you must COMPILE the script after you add any property declerations before AUTOFILL will work. And AUTOFILL will only work if the name of the ImageSpaceModifier variable, or whatever for that matter, matches exactly the Editor ID for that type. If it doesn't you'll have to manually associate the property with the intended editor id.
User avatar
Yvonne
 
Posts: 3577
Joined: Sat Sep 23, 2006 3:05 am


Return to V - Skyrim