The compiler’s internal stack is exhausted due to too many levels of nested statements. Rearrange your code so it is not nested so deeply. For example, move the inner levels of nested statements into a separate procedure.
Maybe you’ve done so already, but that might be worth a try?
I don’t understand fully your objective: you want to actually develop on a retro environment, or do you like AGT as language ?
Personally I think Magx is a sensible evolution of AGT, and IMVHO a better language, esp. when dealing with metacommands.
Best regards from Italy,
I’m just modifying the existing code since that’s all I’m capable of at this point.
As of right now:
Added the hardwired verb SITUATE. This can only be used with the preposition ON, otherwise you get a warning and PUT is used. This costs two extra turns.
Two new meta-commands enable AGT to temporarily or lastingly change text color, good for color effects and “SanctuaryRPG Black” images.
Numerous changes to existing messages to cover more bases or for a better look.
A new meta-command allowing one to distinguish which preposition was used. Thus putting something on the altar will do one thing while putting it behind or under is not allowed or will have different effects.
AGT can now place things using (preposition the whatever). This goes beyond the POSITION attribute. If you search behind the bookcase (see #4) you can find a key and looking over the room the key is there (behind the bookcase).
Creatures and worn items can now act as light sources.
A quirk where so long as items can fit in a box any number can go in has been fixed.
A similar quirk involving weight has also been dealt with.
More than two same-nouns can now exist and even be in the same place because now AGT can distinguish objects- so now you can carry a gold, silver, and iron key into a room to use on three locks on one door.
Tricks going far beyond the weird enemy creature limitations confirmed. Those “limitations” do not exist if you do not want them to.
AGT itself can switch things on and off.
All of this enables AGT to do things it could not do before.