Mod Help - Getting a Compass's code

First, some background. My Extended Compass mod will have a GUI editor that will allow Compass creation via GUI. I can do this fine with the current GUI creation and alias creating, but the problem is they wont be saved, as aliases are not remembered between sessions, which would mean the user would have to re-make the compass every launch, which is obviously not acceptable. I decided that the GUI aspect would be a separate download, as I've concluded it will require a source modification.
What it will entail is a new function, "writeECdata()", which will get the code that makes up a compass, and write it to a file (ecdata.cfg), which will be loaded on startup like config.cfg and autoexec.cfg. However, I'm unaware of how to GET the code that makes up a compass. (For the following examples, the compass's name is "Talk") I've tried a few tricks like "echo (getalias Talk)", and "echo Talk", but they only return blank lines. I think it's because it's trying to return the compass itself, and not it's code, which is why it's only returning a blank line.
Is there a way, be it CubeScript or inside the game code to get the value of a Compass? For clarification, I need the code that makes the compass, ie:
Help greatly appreciated.
What it will entail is a new function, "writeECdata()", which will get the code that makes up a compass, and write it to a file (ecdata.cfg), which will be loaded on startup like config.cfg and autoexec.cfg. However, I'm unaware of how to GET the code that makes up a compass. (For the following examples, the compass's name is "Talk") I've tried a few tricks like "echo (getalias Talk)", and "echo Talk", but they only return blank lines. I think it's because it's trying to return the compass itself, and not it's code, which is why it's only returning a blank line.
Is there a way, be it CubeScript or inside the game code to get the value of a Compass? For clarification, I need the code that makes the compass, ie:
- {l Code}: {l Select All Code}
newcompass Talk "textures/voices" [
compass "Thanks!" [say "^fgThanks!"]
compass "Hello!" [say "^fgHello! :D"]
compass "Balance Teams!" [say "^fyPress F7 ^fcto Balance the Teams! ^frAUTOBALANCE IS BROKEN!"]
compass "Switched for Balance" [me "^fvhas switched to balance teams"]
]
Help greatly appreciated.