12-31-2009, 08:00 PM
|
#1 (permalink)
|
|
The Contributor
Join Date: Nov 2007
Location: Nashville, TN
Posts: 66
Thanks: 20
|
call function and change variables?
I want to make a character builder for a tabletop game system I enjoy but when making a character there are selections you need to make that effect a series of skills. Is there a way to do something like this below well?
Code:
if picks_background {
$var1 = "x";
$var2 = "y";
}
How do you return those variables correctly? The thing is there might be anywhere from 10 to 20 things effected by selecting a specific background. A different background might not even have the same variables listed, it might have var6 and var9 instead.
__________________
I am not a programmer, nor do I play one on tv.
|
|
|
|