Here's my code.
(the part in the header)
Code: ags
(the part in the body)
Code: ags Code: ags
'HumanWeak' is the instance I'm trying to get globally, but I can't figure it out (as previously stated). Most of this is readapted from the code examples in the manual.
(the part in the header)
//make struct
managed struct EnemyStats {
int hp;
int atk;
int def;
int xpyield;
int nameid;
import static EnemyStats* Create(int hp, int atk, int def, int xpyield, int nameid);
};
(the part in the body)
// i dont even know anymore
static EnemyStats::Create(int hp, int atk, int def, int xpyield, int nameid);
{
EnemyStats* e = new EnemyStats;
e.Init(hp, atk, def, xpyield, nameid);
return e;
}
// the actual stats builder
EnemyStats* HumanWeak = HumanWeak.Create(30, 1, 4, 10, 1);
'HumanWeak' is the instance I'm trying to get globally, but I can't figure it out (as previously stated). Most of this is readapted from the code examples in the manual.