I was attempting to use structs for an RPG I started building, and following the manual. The managed struct itself is defined in the header, and has the factory module from the examples in the manual. I used the factory module to create an instance, but I've had trouble getting it out of GlobalScript and into rooms.
When I have an import call in the header, I get the error 'Local variable cannot have the same name as an import'. When I attempt to run the factory in the header or room where I need the instance, I get the error 'cannot assign initial value to global pointer'.
How would I go about making this work?
When I have an import call in the header, I get the error 'Local variable cannot have the same name as an import'. When I attempt to run the factory in the header or room where I need the instance, I get the error 'cannot assign initial value to global pointer'.
How would I go about making this work?