Title.
I created a new macro and added its case to AutoVar, and then used it in my pory script. But it gave me an error because of == true.
- if(islevelcapactive == true) {
+ if(islevelcapactive) {
setvar(B_LEVEL_CAP_VARIABLE, 17)
}
Error if used == true:
data/maps/CastbellePath/scripts.pory: Assembler messages:
data/maps/CastbellePath/scripts.pory:246: Error: non-constant expression in ".if" statement
data/maps/CastbellePath/scripts.pory:81: Info: macro invoked from here
Title.
I created a new macro and added its case to AutoVar, and then used it in my pory script. But it gave me an error because of
== true.Error if used
== true: