@deWiTTERS
Just an idea…
If you implementing this you perhaps should give any identifier an internal id. That way you could give us a list of all known identifiers. The engine could help us not only to find all the places where they are used without the need to parse any code afterwards, but even let us rename them without the problem to destroy something. Whenever you view screenplay for editing, the engine first can replace the internal ids to names and the other way round after saving the edited screenplay. On the top of this we could (if you would support this) easily switch the way, how we enter variable names. Instead of ‘hero number of “cookies”‘ we just could use “cookies”% (or something like that) to refer to a decimal number variable, which will be way shorter.