I'm trying to have a script check flags to see if I have already cast certain spells. Every time I try to assign or compare the variables I get error messages about type mismatches or not being able to assign data into that variable type.
I have been trying one of these two methods:
world.getVariable( "zSpellAff_armor" ) = "true";
if ( world.getVariable( "zSpellAff_armor" ).isEqual( "true" ) )...
world.getVariable( "zSpellAff_armor" ) = 1;
if ( world.getVariable( "zSpellAff_armor" ) == 1 )...
What am I doing wrong with both of these, and how can I fix it?
I have been trying one of these two methods:
world.getVariable( "zSpellAff_armor" ) = "true";
if ( world.getVariable( "zSpellAff_armor" ).isEqual( "true" ) )...
world.getVariable( "zSpellAff_armor" ) = 1;
if ( world.getVariable( "zSpellAff_armor" ) == 1 )...
What am I doing wrong with both of these, and how can I fix it?