For example:
Code: Select all
if($weapon[6] == 52){
$attack=50;
$defense=50;
}elseif($weapon[6] == 51){
$attack=40;
$defense=40;
}elseif($weapon[6] == 50){ ...etc
So basically what I want to do is associate some numbers with different $attack and $defense values, so the script will jump straight to the assigned value. If that's even possible.
When I searched the forum I found a bit about associative arrays. I think that might be my solution but I'm not sure.
I'll keep researching this, but any point in the right direction will be very helpful.
Thanks,
-C