View Single Post
  #22  
Old 01-08-2006, 06:45 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Stefan
There has never been an eval() function.
I don't think that adding such type of function would be really good, it would be much better to think of better ways of doing what you want to do. It would only be a hack.
Why not letting the joining npc provide a function which is called by your code? Since level makers are doing copy&paste anyway it shouldn't be a problem. I don't think providing a boolean evaluation inside the onCreated function is easier than to copy the check-function.
geez stefan, you're making this hard. now you have me wanting to make my own custom tokenizers for parsing calculation scripts in gscript and everything. btw, pls give tokenize() the option to return the delimiters. it would increase my love for you tenfold. Perhaps even having whole string delimiters rather than simply characters.
Reply With Quote