#Recompiling Flow Script on Restored Outfits Dialogue gets errors.

1 messages · Page 1 of 1 (latest)

stuck igloo
#

[Script Compiler] (0074:0009) Referenced undeclared variable 'sVar1'

[Script Compiler] (0074:0009) Failed to compile function call argument: None sVar1

[Script Compiler] (0020:0000) Failed to emit procedure body

My .msg files compile great but don't work without the .flow filed compiling correctly.

https://gamebanana.com/mods/414644

GameBanana

Restored previously unused outfit dialogue functionality... A Persona 5 Royal (PC) (P5R (PC)) Mod in the Other/Misc category, submitted by chlorophylls

chilly orbit
#

You need to declare the sVar1

#

Put

int sVar1;

Somewhere inside a class

#

It is undeclared because the program does not know if it is INTEGER type or String type or Double type or whatever

stuck igloo
#

Yeah, I can understand that's what it's asking for. I'm just clueless on where to put it since I'm not trying to make new variables or anything, just change some speech.

I have no idea how the original variables work tbh.

gilded sigil
#

I believe, for MessageScript, variable declarations need to go inside of {filename}.msg.h in the same folder as your {filename}.msg. Do you have the .h file in the same directory from when you originally compiled the .BMD into .msg?

#

Unless you're working from what was originally a .BF file, in which case the line ZArkadia mentioned needs to go in the .flow, which should also be in the same directory as your .msg.