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.