Shadowram Posted December 15, 2009 Posted December 15, 2009 I'm trying to make a function that will declare a new variable for me based on data I pass to it via another variable.Example:Func Cast($spell,$cooldown)If $spell = "FixCar" I want to somehow have the function create a variable called $FixCar, without mentioning "FixCar" anywhere but Cast("FixCar",2600). The reason for this, is I want the Cast Function to be able to track cooldowns based on the string contained in $spell.Is this possible? I apologize in advance if this is a simple question, or the answer is somewhere else. I can't find it / figure it out. Thanks in advance for any help.
jvanegmond Posted December 15, 2009 Posted December 15, 2009 The function is Assign. github.com/jvanegmond
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now