Im getting the typical errors, like undefinded varaiables.
That would be because icon and layer are undefined variables. You must type-cast long_sword first (Tell the compiler what sort of variable long_sword is);
Most likely, you're trying to create a *new* long_sword, so you'd need to do something like so:
That would be because icon and layer are undefined variables. You must type-cast long_sword first (Tell the compiler what sort of variable long_sword is);
Most likely, you're trying to create a *new* long_sword, so you'd need to do something like so:
var/path_to_longsword/long_sword = new()