View Single Post
  #19  
Old 01-07-2006, 01:49 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 Inverness
I would prefer it if you could somehow reenable eval() and put some kind of safety on it to prevent bad stuff that I hear about it, or enable for Hosted servers maybe, since i've believe they have passed the level where they would abuse something like that?
I want to attach conditions to npc topics in the database but can't since it is not possible to read conditions from a string, which is what is limiting me at the moment.
Well, what I've seen of eval(), I would disagree. There are other approaches. However, it would be very very nice if there were a function that would accept a string something like "1 + 3" or "0 == 0" or "0==0 + 3" and return a value. Like anything the assignment operator would take. Actually, would be quite nice for a simple calculator script, not only this script. Also, while on string stuff, does tokenize() have the ability to return delimiters in gscript2? I haven't played with it at that extent much at all.
Reply With Quote