The sequential order of the preference settings is significant. Define preferences that use other preferences first, i.e. setWEBCOPYRIGHT beforeWIKIWEBMASTER since %WEBCOPYRIGHT% uses the %WIKIWEBMASTER% variable.
You can introduce new preferences variables and use them in your topics and templates. There is no need to change the TWiki engine (Perl scripts).