Quote:

So you mean like counting the "(" and ")"?
Ok, this is possible but there are to many functions, skills and variables to ignore.



simply check for every keyword in your text string array if it's allowed or not. then cut it out. it doesn't matter if there are ten or ten thousand keywords, the work is done by the pc, the script stays the same.

Quote:

It would really better to set the allowed functions, skills and variables instead of the disallowed.
This would make it also better for updateing the scripts. It's less work and you can't forget to ignore skills or variables like "_health" with those the gamers would be able to cheat in the game.



it's the same vice versa. check for the allowed keywords and delete everything else.

joey.