View Single Post
  #1  
Old 11-18-2005, 01:55 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Creating a variable from a string?

Is it possible to create a new variable from a string?

For example, if I have:
NPC Code:
function onPlayerEnters() {
this.txt = "owner=Yen";
}



Can I make it read this.txt and carry out the string as a function?
In this case, it would set the string 'owner' to 'Yen'
Reply With Quote