Also note that
You need to declare it outside, then assign the initial value inside a function.
Code: ags
(I also don't see a EnemyStats::Init function, but I guess you omitted it when posting your code?)
Quote from: error messagecannot assign initial value to global pointeris caused by putting that line outside a function.
You need to declare it outside, then assign the initial value inside a function.
EnemyStats* HumanWeak; export HumanWeak;
void game_start() {
HumanWeak = EnemyStats.Create(30, 1, 4, 10, 1);
}
(I also don't see a EnemyStats::Init function, but I guess you omitted it when posting your code?)